Metadata-Version: 2.1
Name: preferred-pictures
Version: 0.3
Summary: A client for the PreferredPictures API that makes integration easy
Home-page: https://github.com/preferred-pictures/python
Author: Preferred.pictures
Author-email: contact@preferred.pictures
License: MIT
Download-URL: https://github.com/preferred-pictures/python/archive/v_03.tar.gz
Keywords: preferred.pictures,optimization
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Environment :: Web Environment
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown

# PreferredPictures Python Client Library

The [PreferredPictures](https://preferred.pictures) Python library provides a convenient way to call the
[PreferredPictures](https://preferred.pictures) API for applications written in Python.

[View the full documentation about the PreferredPicture's API](https://docs.preferred.pictures/api-sdks/api)

[Learn more about what PreferredPictures can do.](https://docs.preferred.pictures/)

## Installation

```
$ pip install preferred_pictures
```

## Usage

The package needs to be configured with your account's identity and
secret key, which is available in the PreferredPictures interface.

```python

from preferred_pictures import Client

pp = Client("testidentity", "secret123456")
url = pp.create_choose_url(["red", "green", "blue"], "test-tournament", )

# The URL returend will appear to be something like:
#
# https://api.preferred-pictures.com/choose-url?choices%5B%5D=red&choices%5B%5D=green&choices%5B%5D=blue&tournament=test-tournament&expiration=1597011644&uid=362511d6-997f-452b-afee-8e46331da04a&ttl=600&identity=testidentity&signature=7c6d305405b4518876543435ce5657ee820cad0601359fa173a854dc0dfd6ea1
#
```

## License

This client uses the MIT license.


