与Amazon S3同步Anaconda环境
conda-s3-sync的Python项目详细描述
与Amazon S3同步Anaconda环境
安装
运行pip install conda-s3-sync,或python ./setup.py
用法
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
应使用iam角色或通常的环境设置aws凭据 变量(例如AWS_ACCESS_KEY_ID、AWS_SECRET_ACCESS_KEY和 AWS_DEFAULT_REGION)。
操作
执行时,当前可用的Python环境列表 本地系统将被收集,导出到S3的环境也将被收集。 任何一方丢失的环境都将通过 导出本地环境并将生成的yaml描述推送到s3,或者从远程描述创建一个新环境。
同样,如果环境同时存在于本地和远程, 同步是从最近修改的同步执行到 最近修改最少。
本地修改时间在 env_path/conda-meta/history文件修改时间
远程修改时间作为自定义元数据项存储在S3对象中, 因为aws不允许设置自定义的LastModifiedtime。
许可证(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.