Skip to main content

Python Vidispine API Adapter

Project description

Python Vidispine Adapter

A python (3.6+) wrapper around the Vidispine API

Note: This is a work in progress and not all of the vidispine endpoints have been implemented yet.

Full documentation can be found here.

Quick start

Installation

pip install vidispine-adapter

Basic Usage

To use the Vidispine API you will need a to know the URL, user and password. The user does not need to be the admin user but does need the correct roles for any API call you make

from vidispine import Vidispine

vs = Vidispine(url='http://localhost:8080', user='admin', password='admin')
vs.collection.create({'name': 'test_collection_1'})

If url, user and password are not passed through when initialising, Vidispine will fall back and try and use environmental variables called VIDISPINE_URL, VIDISPINE_USER and VIDISPINE_PASSWORD

export VIDISPINE_URL="http://localhost:8080"
export VIDISPINE_USER="admin"
export VIDISPINE_PASSWORD="admin"
from vidispine import Vidispine

vs = Vidispine()
vs.collection.create({'name': 'test_collection_1'})

Contributing

All contributions are welcome and appreciated. Please see CONTRIBUTING.md for more details including details on how to run tests etc.

Running tests

This package is setup to use the Pytest framework for testing. To run tests, simply execute:

pytest tests/

A coverage report will displayed in the shell on each test run as well as written to htmlcov/ and can be viewed with open htmlcov/index.html

Calls to Vidispine are mocked using VCR.py by default but mocks can easily be refreshed and kept up to date. For more information on how to create and refresh mocks please see the Running tests section in CONTRIBUTING.md.

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

vidispine-adapter-0.0.5.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

vidispine_adapter-0.0.5-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file vidispine-adapter-0.0.5.tar.gz.

File metadata

  • Download URL: vidispine-adapter-0.0.5.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.0b2 CPython/3.7.3 Darwin/19.6.0

File hashes

Hashes for vidispine-adapter-0.0.5.tar.gz
Algorithm Hash digest
SHA256 58895bb4a6b3911ace1742f3baec5393bb016c54d59559d4e8569379a59de8c7
MD5 5b1c6e10e7ac1a62818c7e167897dafb
BLAKE2b-256 bff92571521e6638ba286f1df23cd2b021046d3b21aeecc1900340ba116029ea

See more details on using hashes here.

File details

Details for the file vidispine_adapter-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for vidispine_adapter-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0fa7039c4938c2c9ecda2584c867746ac1c7cba0d9a0aba740f3c49b9e5491b7
MD5 0a3dcc630b779e5daac7a726130345fa
BLAKE2b-256 c6b2851d8c958e2c315c5d4eb0a3ebb5e10642f03300f3099de4c4946b65ee12

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page