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()
# adding a video subtitle
subtitle = vdocipher.Video(id=1).upload_subtitle('file')
# 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
Release history Release notifications | RSS feed
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.6.tar.gz
(6.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vdocipher.py-0.4.6.tar.gz.
File metadata
- Download URL: vdocipher.py-0.4.6.tar.gz
- Upload date:
- Size: 6.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f101190b38ce67687f3208c59124a55696294aa8823d963ae6cc3b643c8e79b
|
|
| MD5 |
53e5f9729ec83a5e334285c5740ae36f
|
|
| BLAKE2b-256 |
be4071cdc9dd64ab11b252bfa061ed1671ade3d5a48b9b6a162c01ed0a63ef8d
|
File details
Details for the file vdocipher.py-0.4.6-py3-none-any.whl.
File metadata
- Download URL: vdocipher.py-0.4.6-py3-none-any.whl
- Upload date:
- Size: 9.9 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73dbc87dd7e710a0a6da08c4fde4b9cb99838992d584b03b3efe1d2a8ff84502
|
|
| MD5 |
298cfc32e921d35077248dbb807dbdcb
|
|
| BLAKE2b-256 |
fa25a2a04e5baa0259f7ac3c72870f2197c5a03dab7737eba5a628914c79761e
|