Skip to main content

Just a VdoCipher api wrapper for python.

Project description

vdocipher.py

Just a VdoCipher api wrapper for python.

Installing

$ pip install vdocipher.py

Using

import vdocipher 

# First, we need to authenticate our api
vdocipher.authenticate('VDOCIPHER_API_SECRET')

# Examples:

# obtaining a list of videos
videos = vdocipher.Video().get_list()

# uploading a video
new_video = vdocipher.Video(title='title').upload('file')

# obtaining a video
video = vdocipher.Video(id=1).get()

# search for videos
videos = vdocipher.Video().query('some_text')

# removing a video
vdocipher.Video(id=1).delete()

# obtaining OTP

otp = OTP().create(videoid='your_video_id')

# or
otp = Video(title='test video').upload('file').create_otp()

# opt with anotations

 annotate = Annotate(
            annotation_type='text' # Set type parameter as "rtext" for Dynamic watermark
            text='Name: {name}, email: {email}, IP: {ip}', # You can add user identifiable information
            alpha='0.60',
            x='10',
            y='10',
            color='0xFF0000',
            size='15',
            interval='5000',
            skip='200'
        )
 annotate_list = [annotate]
 otp = vdocipher.OTP(annotations=annotate_list).create(videoid='your_video_id')

 # generating OTP for offline use

 duration = 15 * 24 * 3600 
 rule = LicenseRules(
     can_persist=True,
     rental_duration=duration
 )
 otp = vdocipher.OTP(license_rules=rule).create(videoid='your_video_id')

Installing dev requirements

$ git clone https://github.com/puzzlsoftwarehouse/vdocipher.py.git
$ cd vdocipher.py
$ python -m venv .venv
$ source .venv/bin/activate
$ pip install .[dev]

build and publish

$ python setup.py sdist bdist_wheel
$ twine upload -r pypi dist/*

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

vdocipher.py-0.4.5.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

vdocipher.py-0.4.5-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file vdocipher.py-0.4.5.tar.gz.

File metadata

  • Download URL: vdocipher.py-0.4.5.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for vdocipher.py-0.4.5.tar.gz
Algorithm Hash digest
SHA256 670c20bcf09e5f335fd81c88cb30d065ab23beaab7bf11881604d5d5a84a7a9f
MD5 da3b249be28c549aa9164316ed2cab6f
BLAKE2b-256 6617f7abafdfba65ee7d44be99b2bbdd76d647c3f460fda3a3a7d40d7137a924

See more details on using hashes here.

File details

Details for the file vdocipher.py-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: vdocipher.py-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for vdocipher.py-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9e7b20bc506532d424b93832adc9aa462a8f5d7c740063068e3d93200f4fbcd7
MD5 afaddc634d631d578b5f7bf67dde84e3
BLAKE2b-256 e1ab21778fba806cf46400317841d3a3b3c70991cd6d4c8004ea0ffc6c2987bf

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