Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doverunner Tnp Job API samples (Python)

Prerequisites

  • Python 3.9 or higher
  • Install dependencies from requirements.txt:
    pip install -r requirements.txt
  • Doverunner TnP service account (Site ID, Email ID, Access Key required)

Overview

This repository provides Python-based server-side sample code for integrating with the Doverunner TnP (Transcoding & Packaging) service Job API.

It demonstrates:

  • How to obtain an authentication token using HTTP Basic Authentication
  • How to create and configure a Job with:
    • Input files (video/audio/subtitles)
    • Output definitions
    • Transcoding options (Audio/Video)
    • DRM and Forensic Watermarking settings
    • Packaging formats (HLS, DASH, CMAF)

Project Structure

  • doverunner/tnp: Core domain models and API constants used for Job request
  • doverunner/tests: pytest-based test for API integration tests (e.g., test_tnp_api.py)
  • README.md: Project description and usage guide

How to Run

  1. Clone this repository:

    git clone https://github.com/doverunner/tnp-request-sample-python.git
    cd tnp-request-sample-python
  2. Install dependencies:

     pip install -r requirements.txt
  3. Set your credentials in test_tnp_api.py:

    SITE_ID = "<Your SiteID>"
    EMAIL_ID = "<Your EmailID>"
    ACCESS_KEY = "<Your AccessKey>"
    AUTH_TOKEN = "<Bearer valid-token>"
  4. Run tests to verify:

    pytest doverunner/tests/

If successful, the console should display logs showing the authentication token retrieval and job creation result.

Documentation

About

Doverunner Tnp integration samples for Python

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages