Skip to main content

OpencastAPI

The opencastapi package offers an object-oriented to the Opencast Project's API.

Features

  • Object-oriented interface.
  • Multitarget/multinode support (currently limited to a common username and password across nodes per configuration).
  • Abstracted, persisted, and reusable configuration.

Installation

pip install opencastapi

Configuration

The default configuration path is /etc/opencastapi/opencastapi.conf, but can be overridden by setting the environment variable OPENCASTAPI_CONF_PATH.

Example Configuration

[Security]
username=myapiusername
password=myapipassword

[Targets]
admin_prod=https://admin.opencast.org
player_prod=https://player.opencast.org

admin_dev=https://admin-dev.opencast.org
player_dev=https://player-dev.opencast.org

Usage

Simple example:

import opencastapi

workflows_call = opencastapi.create_call(target='admin_dev', http_verb='get', path='/api/workflows')
response = workflows_call()

print(response.text)

Example with filter

import opencastapi

filter = {"filter":"start:2021-11-16T00:00:00+01:00/2021-11-16T23:59:59+01:00}
workflows_call = opencastapi.create_call(target='admin_dev', http_verb='get', path='/api/workflows', parameters=filter)
response = workflows_call()

print(response.text)

License

It was developed indendent of the https://opencast.org/ project, and is also intentionally licensed differently, using the non-copyleft MIT license.

Metadata

Release files for opencastapi 1.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for opencastapi 1.0.11
File Interpreter ABI Platform
opencastapi-1.0.11-py3-none-any.whl Python 3 none any Details

Release files / opencastapi-1.0.11-py3-none-any.whl

Download URL opencastapi-1.0.11-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c4a29833d3da40ab7398657f9a79b578920e1c498e6aa6c2f2c59d2a54ac973
BLAKE2b-256 checksum
How to use checksums
2cf66b97655969cce062f560b0ab47579bb23a324cc5baebe0b78f505ceb86ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release history Release notifications | RSS feed

This release

1.0.11 This release

1 release file

1.0.10

1 release file

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page