Skip to content

Commit f98eaf9

Browse files
committed
Fixes for merge conflicts
1 parent fcff143 commit f98eaf9

File tree

15 files changed

+583
-1850
lines changed

15 files changed

+583
-1850
lines changed

.bandit.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.flake8

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/CODEOWNERS

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
<<<<<<< HEAD
2-
# Default owners for all files in this repository
3-
=======
41
# Default owner(s) of all files in this repository
5-
>>>>>>> c5f3eb1 (Cookie initialy baked by NetworkToCode Cookie Drift Manager Tool)
62
* @glennmatthews @michalis1 @jdrew82

.pydocstyle.ini

Lines changed: 0 additions & 5 deletions
This file was deleted.

.yamllint.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
---
22
extends: "default"
33
rules:
4-
<<<<<<< HEAD
5-
comments: "enable"
6-
=======
74
comments:
85
min-spaces-from-content: 1
9-
>>>>>>> c5f3eb1 (Cookie initialy baked by NetworkToCode Cookie Drift Manager Tool)
106
empty-values: "enable"
117
indentation:
128
indent-sequences: "consistent"
139
line-length: "disable"
1410
quoted-strings:
1511
quote-type: "double"
16-
<<<<<<< HEAD
17-
=======
1812
ignore: |
1913
.venv/
20-
>>>>>>> c5f3eb1 (Cookie initialy baked by NetworkToCode Cookie Drift Manager Tool)

Dockerfile

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
1-
<<<<<<< HEAD
2-
ARG PYTHON_VER
3-
4-
FROM python:${PYTHON_VER}-slim
5-
6-
RUN apt-get update && apt-get install -y --no-install-recommends \
7-
build-essential \
8-
redis \
9-
&& rm -rf /var/lib/apt/lists/*
10-
11-
RUN pip install --upgrade pip \
12-
&& pip install poetry==1.5.1
13-
14-
15-
WORKDIR /local
16-
COPY pyproject.toml /local
17-
COPY poetry.lock /local
18-
19-
RUN poetry config virtualenvs.create false \
20-
&& poetry install --no-interaction --no-ansi --no-root
21-
22-
COPY . /local
23-
RUN poetry install --no-interaction --no-ansi
24-
=======
251
ARG PYTHON_VER="3.10"
262

273
FROM python:${PYTHON_VER}-slim
@@ -48,4 +24,3 @@ COPY . /local
4824

4925
# Install the app
5026
RUN poetry install --with dev --all-extras
51-
>>>>>>> c5f3eb1 (Cookie initialy baked by NetworkToCode Cookie Drift Manager Tool)

LICENSE

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
<<<<<<< HEAD
2-
Copyright 2020-2023 Network to Code <[email protected]>
3-
Network to Code, LLC
4-
5-
Licensed under the Apache License, Version 2.0 (the "License");
6-
you may not use this file except in compliance with the License.
7-
8-
You may obtain a copy of the License at
9-
10-
http://www.apache.org/licenses/LICENSE-2.0
11-
=======
121
Apache Software License 2.0
132

143
Copyright (c) 2025, Network to Code, LLC
@@ -18,7 +7,6 @@ you may not use this file except in compliance with the License.
187
You may obtain a copy of the License at
198

209
http://www.apache.org/licenses/LICENSE-2.0
21-
>>>>>>> c5f3eb1 (Cookie initialy baked by NetworkToCode Cookie Drift Manager Tool)
2210

2311
Unless required by applicable law or agreed to in writing, software
2412
distributed under the License is distributed on an "AS IS" BASIS,

README.md

Lines changed: 22 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
<<<<<<< HEAD
21
# DiffSync
32

43
DiffSync is a utility library that can be used to compare and synchronize different datasets.
54

65
For example, it can be used to compare a list of devices from 2 inventory systems and, if required, synchronize them in either direction.
76

8-
# Primary Use Cases
7+
## Primary Use Cases
98

109
DiffSync is at its most useful when you have multiple sources or sets of data to compare and/or synchronize, and especially if any of the following are true:
1110

@@ -14,7 +13,7 @@ DiffSync is at its most useful when you have multiple sources or sets of data to
1413
- If various types of data in your data set naturally form a tree-like or parent-child relationship with other data.
1514
- If the different data sets have some attributes in common and other attributes that are exclusive to one or the other.
1615

17-
# Overview of DiffSync
16+
## Overview of DiffSync
1817

1918
DiffSync acts as an intermediate translation layer between all of the data sets you are diffing and/or syncing. In practical terms, this means that to use DiffSync, you will define a set of data models as well as the “adapters” needed to translate between each base data source and the data model. In Python terms, the adapters will be subclasses of the `Adapter` class, and each data model class will be a subclass of the `DiffSyncModel` class.
2019

@@ -29,7 +28,7 @@ You can also ask DiffSync to “sync” one data set onto the other, and it will
2928

3029
![DiffSync Sync](https://raw.githubusercontent.com/networktocode/diffsync/develop/docs/images/diffsync_sync.png "DiffSync Sync")
3130

32-
# Simple Example
31+
## Simple Example
3332

3433
```python
3534
A = DiffSyncSystemA()
@@ -51,74 +50,43 @@ A.sync_to(B)
5150

5251
> You may wish to peruse the `diffsync` [GitHub topic](https://github.com/topics/diffsync) for examples of projects using this library.
5352
54-
# Documentation
53+
## Documentation
5554

56-
The documentation is available [on Read The Docs](https://diffsync.readthedocs.io/en/latest/index.html).
55+
Full documentation for this library can be found over on the [Diffsync Docs](https://diffsync.readthedocs.io/) website:
5756

58-
# Installation
57+
- [User Guide](https://diffsync.readthedocs.io/user/app_overview/) - Overview, Using the Library, Getting Started.
58+
- [Administrator Guide](https://diffsync.readthedocs.io/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the Library.
59+
- [Developer Guide](https://diffsync.readthedocs.io/dev/contributing/) - Extending the Library, Code Reference, Contribution Guide.
60+
- [Release Notes / Changelog](https://diffsync.readthedocs.io/admin/release_notes/).
61+
- [Frequently Asked Questions](https://diffsync.readthedocs.io/user/faq/).
5962

60-
### Option 1: Install from PyPI.
63+
## Installation
6164

62-
```
63-
$ pip install diffsync
65+
### Option 1: Install from PyPI
66+
67+
```shell
68+
pip install diffsync
6469
```
6570

6671
### Option 2: Install from a GitHub branch, such as main as shown below.
72+
73+
```shell
74+
pip install git+https://github.com/networktocode/diffsync.git@main
6775
```
68-
$ pip install git+https://github.com/networktocode/diffsync.git@main
69-
```
7076

71-
# Contributing
77+
## Contributing
78+
7279
Pull requests are welcomed and automatically built and tested against multiple versions of Python through GitHub Actions.
7380

7481
The project is following Network to Code software development guidelines and is leveraging the following:
7582

76-
- Black, Pylint, Bandit, flake8, and pydocstyle, mypy for Python linting, formatting and type hint checking.
83+
- Ruff, mypy for Python linting, formatting and type hint checking.
7784
- pytest, coverage, and unittest for unit tests.
7885

7986
You can ensure your contribution adheres to these checks by running `invoke tests` from the CLI.
8087
The command `invoke build` builds a docker container with all the necessary dependencies (including the redis backend) locally to facilitate the execution of these tests.
8188

82-
# Questions
83-
Please see the [documentation](https://diffsync.readthedocs.io/en/latest/index.html) for detailed documentation on how to use `diffsync`. For any additional questions or comments, feel free to swing by the [Network to Code slack channel](https://networktocode.slack.com/) (channel #networktocode). Sign up [here](http://slack.networktocode.com/)
84-
=======
85-
# Diffsync
86-
87-
<!--
88-
Developer Note - Remove Me!
89-
90-
The README will have certain links/images broken until the PR is merged into `develop`. Update the GitHub links with whichever branch you're using (main etc.) if different.
91-
92-
The logo of the project is a placeholder (docs/images/icon-diffsync.png) - please replace it with your app icon, making sure it's at least 200x200px and has a transparent background!
93-
94-
To avoid extra work and temporary links, make sure that publishing docs (or merging a PR) is done at the same time as setting up the docs site on RTD, then test everything.
95-
-->
96-
97-
<p align="center">
98-
<img src="https://raw.githubusercontent.com/networktocode/diffsync/develop/docs/images/icon-Diffsync.png" class="logo" height="200px">
99-
<br>
100-
<a href="https://github.com/networktocode/diffsync/actions"><img src="https://github.com/networktocode/diffsync/actions/workflows/ci.yml/badge.svg?branch=main"></a>
101-
<a href="https://diffsync.readthedocs.io/en/latest/"><img src="https://readthedocs.org/projects/diffsync/badge/"></a>
102-
<a href="https://pypi.org/project/diffsync/"><img src="https://img.shields.io/pypi/v/diffsync"></a>
103-
<a href="https://pypi.org/project/diffsync/"><img src="https://img.shields.io/pypi/dm/diffsync"></a>
104-
<br>
105-
</p>
106-
107-
## Overview
108-
109-
> Developer Note: Add a long (2-3 paragraphs) description of what the library does, what problems it solves, etc.
110-
111-
## Documentation
112-
113-
Full documentation for this library can be found over on the [Diffsync Docs](https://diffsync.readthedocs.io/) website:
114-
115-
- [User Guide](https://diffsync.readthedocs.io/user/app_overview/) - Overview, Using the Library, Getting Started.
116-
- [Administrator Guide](https://diffsync.readthedocs.io/admin/install/) - How to Install, Configure, Upgrade, or Uninstall the Library.
117-
- [Developer Guide](https://diffsync.readthedocs.io/dev/contributing/) - Extending the Library, Code Reference, Contribution Guide.
118-
- [Release Notes / Changelog](https://diffsync.readthedocs.io/admin/release_notes/).
119-
- [Frequently Asked Questions](https://diffsync.readthedocs.io/user/faq/).
120-
121-
### Contributing to the Documentation
89+
## Contributing to the Documentation
12290

12391
You can find all the Markdown source for the App documentation under the [`docs`](https://github.com/networktocode/diffsync/tree/develop/docs) folder in this repository. For simple edits, a Markdown capable editor is sufficient: clone the repository and edit away.
12492

@@ -129,4 +97,3 @@ Any PRs with fixes or improvements are very welcome!
12997
## Questions
13098

13199
For any questions or comments, please check the [FAQ](https://diffsync.readthedocs.io/en/latest/user/faq/) first. Feel free to also swing by the [Network to Code Slack](https://networktocode.slack.com/) (channel `#networktocode`), sign up [here](http://slack.networktocode.com/) if you don't have an account.
132-
>>>>>>> c5f3eb1 (Cookie initialy baked by NetworkToCode Cookie Drift Manager Tool)

diffsync/api.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

diffsync/cli.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)