OSSCMD | command line tool for uploading | Cloud Storage library
kandi X-RAY | OSSCMD Summary
kandi X-RAY | OSSCMD Summary
OSSCMD is a Python library typically used in Storage, Cloud Storage, Amazon S3 applications. OSSCMD has no bugs, it has no vulnerabilities, it has build file available and it has low support. You can download it from GitHub.
OSScmd is a command line tool for uploading, retrieving and managing data in Aliyun OSS. (Chinese README) 查看INSTALL文件查看具体的安装方法 (运行 python setup.py install, Linux下可能需要管理员权限,如在ubuntu下, cd 到setup.py所在目录,然后输入:sudo python setup.py install,这样就可以像使用Linux 自带的其他命令一样使用osscmd命令). osscmd提供了访问和OSS的命令行接口,提供了包括 1: 一些基本的命令如ls,la,sign(用secret key对任意字符串签名) 2: 对bucket的基本操作,包括create,delete,setacl,getacl,head 3: 上传文件(object),文件夹到OSS 4: 下载文件(object),文件夹到本地 5: 删除OSS上object或者某个子目录 6: 提供同步功能,同步文件或文件夹到OSS(OSS同步到本地暂不支持) 7: OSS端的拷贝(cp)和移动(mv)操作等等 8: 丰富的命令行选项 9: 具体可以通过运行命令osscmd --help看到具体的帮助信息 命令. 1: 首次运行osscmd命令需要进行配置,主要配置oss的secret_key和access_id保存到配置文件 命令:osscmd --configure. 2: 列举bucket或文件夹ls osscmd ls:显示所有的bucket osscmd ls oss://bucket-name/[prefix]: 列出指定目录下当前层的object osscmd ls -r oss://bucket-name/[prefix]: 递归的显示此目录下所有的object osscmd la:显示所有bucket下所有的objcet,每个bucket每次至多显示1000个object. 3:创建bucket osscmd mb oss://bucket-name osscmd mb oss://bucket-name --acl-public:创建一个public的bucket osscmd mb oss://bucket-name --acl-private:创建一个private的bucket. 3:删除bucket osscmd rb oss://bucket-name 如果bucket不为空需要指定-r --recursive选项,否则删除失败. 4:查看和修改某个bucket的acl osscmd getacl oss://bucket-name/[prefix]:获取指定bucket的acl,prefix会被忽略 osscmd setacl oss://bucket-name/ --acl-public:设置指定bucket的acl,目前不提供 设置public-read-write权限. 5:上传文件或目录qianhui@cs.zju.edu.cn osscmd put localfile oss://bucket-name/[prefix] 上传一个文件到OSS osscmd put -r localdir oss://bucket-name/[prefix] 上传一个目录到OSS 上传目录是如果加了—dry-run(-n)那么命令行会显示这要上传的文件列表, 但是不会进行实际的上传操作,改选项同样适用于get,del,sync等操作. 6:下载文件或目录 osscmd get oss://bucket-name/file localdir/file2:将oss上的file文件下载到 本地保存为file2,如果不指定第二个参数,则保存到当前目录,如果第二个参数 是一个目录,则将文件下载到指定目录下,文件名认为file osscmd get -r oss://bucket-name/[prefix] localdir:将oss上的指定bucket下某个 子目录(前缀)下载到本地目录,localdir必须是一个目录 osscmd get -r --dry-run oss://bucket-name/[prefix] localdir:--dry-run的作用参见4. 7:删除文件或目录 osscmd del oss://bucket-name/file:删除指定bucket下的某个file文件 osscmd del -r oss://bucket-name/[prefix]:如果删除是一个子目录(不止一个文件),必须 指定-r(--recursive)选项. 8:获取某个bucket或object的信息 osscmd info oss://bucket-name/[file]. 9:在OSS端执行copy和move操作 osscmd cp oss://bucket1/[prefix] oss://bucket2/[prefix]:将bucket1下某个文件或子目录 拷贝到bucket2的某个子目录下,如果拷贝不是一个文件,必须指定-r(--recursive选项) osscmd cp oss://bucket1/[prefix] oss://bucket2/[prefix]:功能通cp相同,只是copy好后,将 源文件或目录删除 可以指定-n(--dry-run)选项先查看此次操作的会移动的文件. 10:同步功能 osscmd sync localdir oss://bucket-name/[prefix]:同步到oss端,通过比对文件的大小和md5值 确定是否需要上传文件,如果大小和md5一直则不上传,同样可以使用-n(--dry-run)选项查看上传的 文件和不执行实际的操作 osscmd sync oss://bucket-name/[prefix] localdir:将OSS端的文件数据同步到本地,仍然是通过比较 两端两个文件(如果存在)的size和md5值,如果指定—no-check-md5选项,则不检查md5值. 11:用secret key对任意字符串签名 osscmd sign string.
OSScmd is a command line tool for uploading, retrieving and managing data in Aliyun OSS. (Chinese README) 查看INSTALL文件查看具体的安装方法 (运行 python setup.py install, Linux下可能需要管理员权限,如在ubuntu下, cd 到setup.py所在目录,然后输入:sudo python setup.py install,这样就可以像使用Linux 自带的其他命令一样使用osscmd命令). osscmd提供了访问和OSS的命令行接口,提供了包括 1: 一些基本的命令如ls,la,sign(用secret key对任意字符串签名) 2: 对bucket的基本操作,包括create,delete,setacl,getacl,head 3: 上传文件(object),文件夹到OSS 4: 下载文件(object),文件夹到本地 5: 删除OSS上object或者某个子目录 6: 提供同步功能,同步文件或文件夹到OSS(OSS同步到本地暂不支持) 7: OSS端的拷贝(cp)和移动(mv)操作等等 8: 丰富的命令行选项 9: 具体可以通过运行命令osscmd --help看到具体的帮助信息 命令. 1: 首次运行osscmd命令需要进行配置,主要配置oss的secret_key和access_id保存到配置文件 命令:osscmd --configure. 2: 列举bucket或文件夹ls osscmd ls:显示所有的bucket osscmd ls oss://bucket-name/[prefix]: 列出指定目录下当前层的object osscmd ls -r oss://bucket-name/[prefix]: 递归的显示此目录下所有的object osscmd la:显示所有bucket下所有的objcet,每个bucket每次至多显示1000个object. 3:创建bucket osscmd mb oss://bucket-name osscmd mb oss://bucket-name --acl-public:创建一个public的bucket osscmd mb oss://bucket-name --acl-private:创建一个private的bucket. 3:删除bucket osscmd rb oss://bucket-name 如果bucket不为空需要指定-r --recursive选项,否则删除失败. 4:查看和修改某个bucket的acl osscmd getacl oss://bucket-name/[prefix]:获取指定bucket的acl,prefix会被忽略 osscmd setacl oss://bucket-name/ --acl-public:设置指定bucket的acl,目前不提供 设置public-read-write权限. 5:上传文件或目录qianhui@cs.zju.edu.cn osscmd put localfile oss://bucket-name/[prefix] 上传一个文件到OSS osscmd put -r localdir oss://bucket-name/[prefix] 上传一个目录到OSS 上传目录是如果加了—dry-run(-n)那么命令行会显示这要上传的文件列表, 但是不会进行实际的上传操作,改选项同样适用于get,del,sync等操作. 6:下载文件或目录 osscmd get oss://bucket-name/file localdir/file2:将oss上的file文件下载到 本地保存为file2,如果不指定第二个参数,则保存到当前目录,如果第二个参数 是一个目录,则将文件下载到指定目录下,文件名认为file osscmd get -r oss://bucket-name/[prefix] localdir:将oss上的指定bucket下某个 子目录(前缀)下载到本地目录,localdir必须是一个目录 osscmd get -r --dry-run oss://bucket-name/[prefix] localdir:--dry-run的作用参见4. 7:删除文件或目录 osscmd del oss://bucket-name/file:删除指定bucket下的某个file文件 osscmd del -r oss://bucket-name/[prefix]:如果删除是一个子目录(不止一个文件),必须 指定-r(--recursive)选项. 8:获取某个bucket或object的信息 osscmd info oss://bucket-name/[file]. 9:在OSS端执行copy和move操作 osscmd cp oss://bucket1/[prefix] oss://bucket2/[prefix]:将bucket1下某个文件或子目录 拷贝到bucket2的某个子目录下,如果拷贝不是一个文件,必须指定-r(--recursive选项) osscmd cp oss://bucket1/[prefix] oss://bucket2/[prefix]:功能通cp相同,只是copy好后,将 源文件或目录删除 可以指定-n(--dry-run)选项先查看此次操作的会移动的文件. 10:同步功能 osscmd sync localdir oss://bucket-name/[prefix]:同步到oss端,通过比对文件的大小和md5值 确定是否需要上传文件,如果大小和md5一直则不上传,同样可以使用-n(--dry-run)选项查看上传的 文件和不执行实际的操作 osscmd sync oss://bucket-name/[prefix] localdir:将OSS端的文件数据同步到本地,仍然是通过比较 两端两个文件(如果存在)的size和md5值,如果指定—no-check-md5选项,则不检查md5值. 11:用secret key对任意字符串签名 osscmd sign string.
Support
Quality
Security
License
Reuse
Support
OSSCMD has a low active ecosystem.
It has 26 star(s) with 10 fork(s). There are 2 watchers for this library.
It had no major release in the last 6 months.
OSSCMD has no issues reported. There are 1 open pull requests and 0 closed requests.
It has a neutral sentiment in the developer community.
The latest version of OSSCMD is current.
Quality
OSSCMD has 0 bugs and 0 code smells.
Security
OSSCMD has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
OSSCMD code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
OSSCMD does not have a standard license declared.
Check the repository for any license declaration and review the terms closely.
Without a license, all rights are reserved, and you cannot use the library in your applications.
Reuse
OSSCMD releases are not available. You will need to build from source code and install.
Build file is available. You can build the component from source.
It has 1693 lines of code, 141 functions and 13 files.
It has high code complexity. Code complexity directly impacts maintainability of the code.
Top functions reviewed by kandi - BETA
kandi has reviewed OSSCMD and discovered the below as its top functions. This is intended to give you an instant insight into OSSCMD implemented functionality, and help decide if they suit your requirements.
- Put an object from a file
- Create a sign value for a normal auth
- Creates a connection to a PUT object
- Get object to a file
- Performs an object operation
- Retrieve an object
- Ununicode a string
- Convert string to unicode
- Decode a given string
- Return a list of all my buckets
- List all my buckets
- Get a list of objects in a bucket
- List all keys in a bucket
- Creates a bucket
- Update a bucket
- Put an object in a bucket
- Put an object from a string
- Get the contents of a bucket
- Perform a bucket operation
- Upload a large file to a bucket
- Create an object group
- Delete a bucket
- Send an object to a bucket
- Deletes an object from a bucket
- Get the index of an object group
Get all kandi verified functions for this library.
OSSCMD Key Features
No Key Features are available at this moment for OSSCMD.
OSSCMD Examples and Code Snippets
No Code Snippets are available at this moment for OSSCMD.
Community Discussions
Trending Discussions on OSSCMD
QUESTION
C++ Windows: Handle application external crash into the program
Asked 2018-May-01 at 08:57
I have the following function to execute an external program:
...ANSWER
Answered 2018-Apr-30 at 19:33This isn't an "exception"; it's a crash.
You can't catch a crash.
The way to proceed is to run your program under your debugger. It will then provide you with the information you require to find, diagnose and correct the problem.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install OSSCMD
You can download it from GitHub.
You can use OSSCMD like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
You can use OSSCMD like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page