Skip to main content

Synchronize the content of two different repositories.

Project description

The ansys-tools-repo-sync library is intended to synchronize the content of two different repositories.

What does this library do?

For instance, due to intellectual properties concerns, it might not be possible to expose publicly the entire content of a private repository. Its owner could decide to have a second repository, a public one. Part of the content for this public repo would come from the private repository.

ansys-tools-repo-sync allows you to do so by copying a folder and its content from one repo to the other. In addition, it is possible to filter the type extension file authorized to be copied.

doc/images/repo_sync.png

How to use it?

A common usage for this tool consist to integrate it in one of your CI/CD pipeline or workflow. Firstly, the tool must be installed.

pip install ansys.tools.repo.synchronize

Then, it can be used in the considered workflow with the appropriate arguments.

pip install ansys-tools-repo-sync

Run it as follow:

python -c "from ansys.tools.repo_sync import synchronize"; synchronize(
manifest=os.path.join(ASSETS_DIRECTORY, "manifest.txt"),
token=TOKEN,
repository="ansys-tools-repo-sync",
organization="ansys",
protos_path=os.path.join("assets", "ansys", "api", "test", "v0"),
dry_run=True,
)"

Issues

To post issues, questions, and code, go to ansys-tools-repo-sync Issues.

License

ansys-tools-repo-sync is licensed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansys-tools-repo-sync-0.1.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

ansys_tools_repo_sync-0.1.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file ansys-tools-repo-sync-0.1.2.tar.gz.

File metadata

  • Download URL: ansys-tools-repo-sync-0.1.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.2 importlib-metadata/4.6.4 keyring/23.1.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.0

File hashes

Hashes for ansys-tools-repo-sync-0.1.2.tar.gz
Algorithm Hash digest
SHA256 51c140354f24439afcf965c6285bbdd33ab555afc8158f3f1e44dcb8acd2a98b
MD5 347254ff306534e8478abf8f480f9711
BLAKE2b-256 41c2902281619ad5cc35c4332dd04491b1df124bbacda5520f97048d94a083b5

See more details on using hashes here.

File details

Details for the file ansys_tools_repo_sync-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ansys_tools_repo_sync-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.2 importlib-metadata/4.6.4 keyring/23.1.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.0

File hashes

Hashes for ansys_tools_repo_sync-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c060a514293365d16d54efd3fb1c90bf2fca17e05c361b45f90a2599a1dbaa5
MD5 9698b2d52a1657b73d37834fa732a704
BLAKE2b-256 309dd6abdb431ce3fefe71378cb9c32f1c3a741a5371ddca7dabb8b6107e69e6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page