Pycloud189
An easy to use Python3 package that interact with the cloud189 cloud disk service.
Installation
Install with pip
pip install pycloud189
Quick Start
- Add
pycloud189.api.cloudpan189 import Cloudpan189to the beginning of your code. - Initialize a new Cloudpan189 object using
api = Cloudpan189(). - Then specify the
cloudpan189-goexecute file locate folder path call for exampleapi.setCloudpan189GoDirPath('/Users/tickstep/cloudpan189-go-v0.0.5-darwin-macos-amd64'). If you do not has thecloudpan189-gofile you can download it freely from here. - Now everything is get ready, you can do all the thing that cloud189 supports such as: login, ls, upload, download, etc.
Example
Here is a example code show how to do
from pycloud189.api.cloudpan189 import Cloudpan189
if __name__ == '__main__':
api = Cloudpan189()
# set the 'cloudpan189-go' execute file dir path
api.setCloudpan189GoDirPath('/Users/tickstep/cloudpan189-go-v0.0.5-darwin-macos-amd64')
# of course, we need login first
# if you do not has an account, register one from https://cloud.189.cn
if not api.isLogin():
print(api.login('usernmae@189.cn', 'password'))
# version
print(api.version())
# get list file of current work dir
print(api.ls(''))
# change word dir
print(api.cd('/folder2020'))
# show current work dir
print(api.pwd())
# upload file
print(api.upload('/Users/tickstep/Downloads/testfile2020.txt', '/folder2020'))
# download file
print(api.download('/folder2020/testfile2020.txt'))
Change logs
Metadata
Release files for pycloud189 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycloud189-0.0.4.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycloud189-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.7 kB
Release files / pycloud189-0.0.4.tar.gz
| Download URL | pycloud189-0.0.4.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d073a748a58fbffd04edf8f3de02c0c5b13c7cda5421b15c9fea6bbc3a48d75a
|
|
BLAKE2b-256 checksum How to use checksums |
f2cce36c13053085a0352f50bdcb9826d8c7ff5137f380fb1b02a045cec01bd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.3
|
Release files / pycloud189-0.0.4-py3-none-any.whl
| Download URL | pycloud189-0.0.4-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b36452bae7c5b27682a876899f6b77da5167e74afbe18672c96e8b0e9dfc7c3
|
|
BLAKE2b-256 checksum How to use checksums |
5279eca68577dc59d1d21c6020453a027b8c539f5009f5d7feba8742ff152512
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.3
|