Skip to main content

Synchronize Anaconda environments to/from Amazon S3

Project description

Synchronize Anaconda environments to/from Amazon S3

Installation

Run pip install conda-s3-sync, or python ./setup.py

Usage

positional arguments:
  BUCKET[/PATH]        Bucket and path of S3 location to synchronize to/from

optional arguments:
  -h, --help           show this help message and exit
  --path-filter REGEX  Regular expression of env paths to include
  --conda-bin PATH     Path to conda-binary
  --include-root-env   Include root Anaconda environment in addition to any
                       custom envs

AWS credentials should be set up using IAM roles, or the usual environment variables (such as AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_DEFAULT_REGION).

Operation

Upon execution, the list of currently available Anaconda environments in the local system will be gathered, as will the environments exported to S3. Any environments that are found missing on either side will be synchronized, by exporting the local environment and pushing the resulting YAML description to S3, or by creating a new environment from the remote description.

Similarly, if environments are present both locally and remotely, synchronization is performed from the one modified most recently to the one modified least recently.

Local modification time is determined (and persisted) in the env_path/conda-meta/history file modification time.

Remote modification time is stored as a custom metadata entry in the S3 objects, as AWS does not allow setting a custom LastModified time.

License (MIT)

Copyright (C) 2017 Cobli

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

conda-s3-sync-0.2.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

conda_s3_sync-0.2.0-py2.py3-none-any.whl (8.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file conda-s3-sync-0.2.0.tar.gz.

File metadata

File hashes

Hashes for conda-s3-sync-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d0d57522449e7e42477227ce4a764306773f441207fd3d81a1aeabe64f091c6c
MD5 8b7f3f7882b049a64d76f15bc269832b
BLAKE2b-256 7ce5f7be30b0e4d76b24e9d3720bdcac0d71340aea7e49fecf39460d4d1691b1

See more details on using hashes here.

File details

Details for the file conda_s3_sync-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for conda_s3_sync-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9c046e8bb6dfcee7792c653609edb66b112a67af2b81ec37b112a95fd9c0542b
MD5 0394dd39f9a159a65bcb605bfc059449
BLAKE2b-256 35855c7d33ea0ce326a190292be8466e99e1b6065e85c123726ed365245ace80

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