Adept-0.0.2
توضیحات
Simple binding for Adept
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | Adept-0.0.2 |
| نام | Adept |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Phil Howell |
| ایمیل نویسنده | phil@fictivekin.com |
| آدرس صفحه اصلی | https://github.com/fictivekin/adept-python |
| آدرس اینترنتی | https://pypi.org/project/Adept/ |
| مجوز | MIT |
## Adept
### Installation
`pip install git+ssh://git@github.com/fictivekin/adept-python.git`
### Using the package
Import the Adept class from the package, pass through your account credentials
```
from adept import Adept
a = Adept(
accound_id='9b5dd41deff8ae7e3767fc6566cb25ff3ca66438',
account_key='251692b3899f1e30fe4b7037185488aad37c46f8',
cloudfront_hostname='some.cloudfront.host.com'
)
```
You can then generate a URL for given image operations on an S3 asset (and specified bucket) or image URL.
An example using an S3 asset:
```
operations = ['maxwidth-400', 'cropcenter-400x300']
a.generate_url(
bucket='gimmebar-assets',
asset_key='526fc2761c899.jpg',
operations=operations,
)
```
نحوه نصب
نصب پکیج whl Adept-0.0.2:
pip install Adept-0.0.2.whl
نصب پکیج tar.gz Adept-0.0.2:
pip install Adept-0.0.2.tar.gz