Skip to main content

A client for the PreferredPictures API that makes integration easy

Project description

PreferredPictures Python Client Library

The PreferredPictures Python library provides a convenient way to call the PreferredPictures API for applications written in Python.

View the full documentation about the PreferredPicture's API

Learn more about what PreferredPictures can do.

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.

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.

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

preferred_pictures-0.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

preferred_pictures-0.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file preferred_pictures-0.3.tar.gz.

File metadata

  • Download URL: preferred_pictures-0.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5

File hashes

Hashes for preferred_pictures-0.3.tar.gz
Algorithm Hash digest
SHA256 d646c83282e66b2ceb9d2eddc0bdffa488602a8427e969aee1566c4e9b319aa5
MD5 e30375f08a7fcf52f013547e9b3127c0
BLAKE2b-256 05625bdcdefa4ddc8e61ed45bc7db12ad259a658f681e5ba142e1f0a5f265d6f

See more details on using hashes here.

File details

Details for the file preferred_pictures-0.3-py3-none-any.whl.

File metadata

  • Download URL: preferred_pictures-0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5

File hashes

Hashes for preferred_pictures-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cfba1e16fb14c4ff5d39a3c3b7eb9ce065eb50048d8c91a188dbd403bd29fe14
MD5 5c5b8d8e55656a6a9b6cfe7cc9b5fb15
BLAKE2b-256 e11ddac536fcdbf71e33d99e56921e78d7292f1a64c711da4b2a6182f8805899

See more details on using hashes here.

Supported by

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