基于Gevent的多线程工具,用于与OpenStack Swift和Rackspace Cloud Files交互
项目描述
OpenStack Swift线程操作实用工具,用于上传、下载和删除
需求
posthaste目前需要gevent,它反过来又需要greenlet和libevent。
“新”的Gevent(截至本文写作,1.0 RC 2)减轻了libevent依赖,从而简化了使用工具的过程。更多信息可以在Github上找到。
用法
usage: posthaste [-h] [--version] -c CONTAINER [-r REGION] [--internal] [-t THREADS] [-u USERNAME] [-p PASSWORD] [-i {rackspace,keystone}] [-a AUTH_URL] [-v] {delete,upload,download} ... Gevent-based, multithreaded tool for interacting with OpenStack Swift and Rackspace Cloud Files positional arguments: {delete,upload,download} delete Delete files from specified container upload Upload files to specified container download Download files to specified directory from the specified container optional arguments: -h, --help show this help message and exit --version show program's version number and exit -c CONTAINER, --container CONTAINER The name container to operate on -r REGION, --region REGION Region where the specified container exists. Defaults to OS_REGION_NAME environment variable with a fallback to DFW --internal Use the internalURL (ServiceNet) for communication and operations -t THREADS, --threads THREADS Number of concurrent threads used for deletion. Default 10 -u USERNAME, --username USERNAME Username to authenticate with. Defaults to OS_USERNAME environment variable -p PASSWORD, --password PASSWORD API Key or password to authenticate with. Defaults to OS_PASSWORD environment variable -i {rackspace,keystone}, --identity {rackspace,keystone} Identitiy type to auth with. Defaults to OS_AUTH_SYSTEM environment variable with a fallback to rackspace -a AUTH_URL, --auth-url AUTH_URL Auth URL to use. Defaults to OS_AUTH_URL environment variable with a fallback to https://identity.api.rackspacecloud.com/v2.0 -v, --verbose Enable verbosity. Supply multiple times for additional verbosity. 1) Show Thread Start/Finish, 2) Show Object Name.
示例
posthaste -c example -r DFW -u $OS_USERNAME -p $OS_PASSWORD -t 100 upload /path/to/some/dir/
posthaste -c example -r DFW -u $OS_USERNAME -p $OS_PASSWORD -t 100 download /path/to/some/dir/
posthaste -c example -r DFW -u $OS_USERNAME -p $OS_PASSWORD -t 100 delete
项目详情
关闭
posthaste-0.2.2.tar.gz的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 1f270009b1a5f9cce50ab029e9b32efad62eaf675cbcef8a0dd0f50f2ef3174c |
|
MD5 | c4db113d1a4da8d37273e03c062dd35c |
|
BLAKE2b-256 | d4693b09030cc5ca28b294983692c2822778ff3e642b1ebf832b076ed6e4a62f |