crushfs-0.4.3
توضیحات
Python 3 client for CrushFS (sync and async)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | crushfs-0.4.3 |
| نام | crushfs |
| نسخه کتابخانه | 0.4.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | David Poirier |
| ایمیل نویسنده | david@pxcrush.net |
| آدرس صفحه اصلی | https://github.com/crushfs/crushfs-python-client |
| آدرس اینترنتی | https://pypi.org/project/crushfs/ |
| مجوز | - |
# crushfs
Python 3 client for CrushFS (sync and async)
## Async usage (depends on aiohttp)
```python
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)
```python
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()
```
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
| - | requests |
نحوه نصب
نصب پکیج whl crushfs-0.4.3:
pip install crushfs-0.4.3.whl
نصب پکیج tar.gz crushfs-0.4.3:
pip install crushfs-0.4.3.tar.gz