与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_IDAWS_SECRET_ACCESS_KEYAWS_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.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
忽略java@RestController(“/xxx”)映射   eclipse获取Java项目中所有构建错误的最快方法是什么?   java活动到为底部导航栏保存片段的活动永远不会到达片段,而是到由FrameLayout保存片段的活动   从SpringBoot 2.2.2 t SpringBoot 2.3.7迁移时,创建名为“tomcatServletWebServerFactory”的bean时发生java错误   java如何删除声音片段?   从客户机实现的角度来看,我可以比较Java可调用和角度可观测(RxJS)吗   C++中的java命名空间私有成员   Java中的字数计数给出错误的输出   java我应该为简单的switch语句使用多态性吗?   sql如何修复java中连接到数据库的网络协议错误(SQLNonTransient)   java如何在Kotlin中使用Lambda handleHavyContent()   javascript在安卓上以react native with JAVA执行dns srv请求   javacom。投递箱。果心NetworkIOException:软件导致的连接中止   Java中的“单代”垃圾收集器是什么?   java如何使用RecyclerView onCreate   java使用spring高效地扫描两个包的类路径   两个数组的java笛卡尔积   货币Java NumberFormat实例创建   java Spring引导到第三方的基本身份验证   JPA/Hibernate中带有JoinColumn的复合主键的java AnnotationException