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=PallyConClient.DrmType.WIDEVINE.value,
    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", "Song ID")

# Package media file to HLS format
client.package_to_hls("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-1.0.3.tar.gz (9.0 MB view details)

Uploaded Source

Built Distribution

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

python_pallycon-1.0.3-py3-none-any.whl (9.1 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for python-pallycon-1.0.3.tar.gz
Algorithm Hash digest
SHA256 31faad24710adb88dc4ad13063cfd26ce6abb75c99417c493b2238f747944f12
MD5 6c88393fe6cb6f57ce3ad75dfa9f434e
BLAKE2b-256 47bccaf7bb24418039460a8bda8211be3371bd6e4c83f6fd469f15e2a203b0a7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for python_pallycon-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3438c7dbe70728194beb50842cf2958fc82284b00b8e864953f9fca8dbf371a2
MD5 82e72509fbe1d8f3208489844cf9ac8d
BLAKE2b-256 ff5f4317fed0f839c6eebf2af4de3aa179d1f58ee8d52df31f045756d67c78d9

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