Skip to main content

The python SDK for Pallycon

Project description

python-pallycon

The Python SDK for Pallycon

Installation

$ pip install python-pallycon

Usage

from pallycon import PallyConClient

# Initialise the client
client = PallyConClient(
    site_id="TUTO",
    site_key="lU5D8s3PWoLls3PWFWkClULlFWk5D8oC",
    access_key="LT2FVJDp2Xr018zf4Di6lzvNOv3DKP20",
    drm_type="Widevine",
    user_id="test-user",
    content_id="bigbuckbunny",
    license_rule={
        "playback_policy": {"limit": True, "persistent": False, "duration": 3600}
    },
)

# Get the license token
license_token = client.license_token

# Package media file to DASH format
client.package_to_dash("Test Song.mp4", "Test Song")

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

python-pallycon-0.0.3.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

python_pallycon-0.0.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file python-pallycon-0.0.3.tar.gz.

File metadata

  • Download URL: python-pallycon-0.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for python-pallycon-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0bf5befa54ef58fda3d7731f3ca505ff7cfc248ff4455cf7bda553bdbf750bde
MD5 9ac65a2616061bc575526a777ff018df
BLAKE2b-256 7c582a078d3526db62fead6704b9b742dc8063b3188a53dd193d9cfc5be0bdae

See more details on using hashes here.

File details

Details for the file python_pallycon-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: python_pallycon-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for python_pallycon-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b27b784909bc987506b109b76fd87d73cc5d41bd5317de9a96e8ca38c9aae5aa
MD5 34c01c951749d712a99255750d80601e
BLAKE2b-256 7a9061353b7eac147b0d2c2b80f2ac1dd30e663f359eecdc29d456d55b412725

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