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-sync

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

Run it as follows:

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.dev0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

ansys.tools.repo_sync-0.1.dev0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file ansys.tools.repo_sync-0.1.dev0.tar.gz.

File metadata

  • Download URL: ansys.tools.repo_sync-0.1.dev0.tar.gz
  • Upload date:
  • Size: 5.7 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.dev0.tar.gz
Algorithm Hash digest
SHA256 09a781605d7f1a8e21613d3abdd7536c6d719faf19007c0960e901b6666ef7be
MD5 0f62ef0347f1c9487f70078bde0d286a
BLAKE2b-256 6f34860a0a9e1570a298c437ea640dd7f3ef696b2f60736228ba30bfe091e43b

See more details on using hashes here.

File details

Details for the file ansys.tools.repo_sync-0.1.dev0-py3-none-any.whl.

File metadata

  • Download URL: ansys.tools.repo_sync-0.1.dev0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 02a8c85fc3a2fb437ddec5b809f9a6d077ef79e1f86aaf3559201eaeddac51d8
MD5 9dbca8254f87fd16eb17dd2eb0b86d8c
BLAKE2b-256 e24bbc2a1b0f12377f291efb9063961d582fe2e5f42ff76b95870ee516a61b15

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