Skip to main content

Simple binding for Adept

Project description

## 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,
)
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Adept-0.0.2.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file Adept-0.0.2.tar.gz.

File metadata

  • Download URL: Adept-0.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Adept-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3d256e7f91a15be361b945faada19b29781eb5ac01b57bb8df2dfab767c96f1a
MD5 41a225ba9f4bdd4e7f5cbcb415fad6b4
BLAKE2b-256 98a0a90ab6f62a1c4bccc9086d78604cf7e831c9f6c15910a156f7a792d55fa6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page