Python 3 client for CrushFS (sync and async)
Project description
crushfs
Python 3 client for CrushFS (sync and async)
Async usage (depends on aiohttp)
import asyncio
import crushfs
WAREHOUSE='mywarehouse'
SIGNER='me'
SECRET='letmein'
PATH='/apath/afile'
async def async_test():
client = crushfs.AsyncClient(
warehouse=WAREHOUSE, signer=SIGNER, secret=SECRET)
response = await client.download_object(path=PATH)
print(len(response.data))
asyncio.run(async_test())
Sync usage (depends on requests)
import crushfs
WAREHOUSE='mywarehouse'
SIGNER='me'
SECRET='letmein'
PATH='/apath/afile'
def sync_test():
client = crushfs.SyncClient(
warehouse=WAREHOUSE, signer=SIGNER, secret=SECRET)
response = client.download_object(path=PATH)
print(len(response.data))
sync_test()
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
crushfs-0.4.3.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file crushfs-0.4.3.tar.gz
.
File metadata
- Download URL: crushfs-0.4.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c24a0339b76e4acd70e0b413bbb90918a071c9b5dcfc9f3c30c657f14a2ae8b |
|
MD5 | 3e9a7dce48e09921238febd8c291cd4f |
|
BLAKE2b-256 | 9fd2bccd95427968359e327942c839da55af47c899a8a85294fee49444fac972 |
File details
Details for the file crushfs-0.4.3-py3-none-any.whl
.
File metadata
- Download URL: crushfs-0.4.3-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b7180d8930113dd00ef5cf89d9344c8761eca86324c36b008d36baa00c8532a |
|
MD5 | 97c7d30d45e36c1aaf98727e9a317c68 |
|
BLAKE2b-256 | 5fad38bd6973aa331cd77021cf08a071e6b811cb5c50ce857b344def973b5754 |