python filesystem sdk
Project description
filesystem-pysdk
python filesystem sdk: filesystem project
I. Brief
a python client for filesystem.
support user, bucket, file manager.
II. Quick tutorial
1. create a client
import filesystem_pysdk
client, err = filesystem_pysdk.new_client("user", "auth", "api_host", "web_host")
2. user manager
- create a user
import filesystem_pysdk
client.add_user(filesystem_pysdk.User("user1"))
- delete a user
client.delete_user("user1")
3. bucket manager
- create a new bucket
import filesystem_pysdk
client.add_bucket(filesystem_pysdk.Bucket(name="bucket1"))
- delete a bucket
client.delete_user(name="bucket1")
4. file manager
- upload file
import filesystem_pysdk
with open("client.py", "rb") as f:
client.upload_file(filesystem_pysdk.File("bucket1", "test/client.py", 0),
f)
- download file
import filesystem_pysdk
res = client.download_file(filesystem_pysdk.File("bucket1", "test/client.py"))
with open("client_download.py", "wb") as f:
f.write(res)
- file move
import filesystem_pysdk
client.move_file(filesystem_pysdk.File("bucket1", "test/a.py"),
filesystem_pysdk.File("bucket1", "test/b.py"))
- file copy
import filesystem_pysdk
client.move_file(filesystem_pysdk.File("bucket1", "test/a.py"),
filesystem_pysdk.File("bucket1", "test/b.py"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file filesystem_pysdk-2.0.0.tar.gz.
File metadata
- Download URL: filesystem_pysdk-2.0.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c9985a2036c11e8e450f0df57fa2ea97180f84cef6ead1836bca2fc13030e53
|
|
| MD5 |
2ed979746b55113bbbb75ec37086a7f6
|
|
| BLAKE2b-256 |
c4d8c3ccff44ba8cdb77d6c27e8a1b33cd2e5e080cb876c7d6317ee3ba3ca12d
|
File details
Details for the file filesystem_pysdk-2.0.0-py3-none-any.whl.
File metadata
- Download URL: filesystem_pysdk-2.0.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04030d82dda8fcb72550fc7688bad337f47f7f38e3fd28bd024063b94039981d
|
|
| MD5 |
8f3ce8fa8f6064981ad57b5c3ee22918
|
|
| BLAKE2b-256 |
a0081e5b7c7a0db5e1f96a257ecc56320df8f577457a7972edc25a4b93fc0880
|