Skip to main content

An asynchronous client for the Brightcove API.

Project description

brightcove_async

brightcove_async is an asynchronous Python client library for interacting with the Brightcove video platform APIs. This library is designed to provide easy, non-blocking access to Brightcove's RESTful endpoints, making it ideal for use in modern async Python applications.

Features

  • Fully asynchronous API using asyncio
  • Simple authentication with OAuth2 client credentials
  • Support for core Brightcove API endpoints (Videos, Analytics, etc.)
  • Strong typing and data validation powered by Pydantic for reliable development and rich IDE autocompletion

Installation

pip install brightcove_async

Quick Start

import asyncio

import brightcove_async
from brightcove_async.schemas.cms_model import (
    CreateVideoRequestBodyFields,
    State,
)

async def main() -> None:
    client = brightcove_async.initialise_brightcove_client()
    async with client as client_instance:
        result = await client_instance.cms.create_video(
            account_id="12345",
            video_data=CreateVideoRequestBodyFields(
                name="test",
                State=State.ACTIVE,
            ),
        )
        print(result.model_dump())


if __name__ == "__main__":
    asyncio.run(main())

Usage

Authentication

brightcove_async handles OAuth2 token management automatically. The easiest way to do this is to set the following environmental variables:

export CLIENT_ID="your_client_id"
export CLIENT_SECRET="your_client_secret"

API Coverage

  • Videos - In progress
  • Analytics - In progress
  • Syndication - In progress

Documentation

Requirements

  • Python 3.13+

Contributing

Pull requests are welcome! Please open an issue to discuss your feature or bugfix before submitting a PR.

License

MIT License

Disclaimer

This project is not affiliated with or endorsed by Brightcove Inc.

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

brightcove_async-0.2.0.tar.gz (41.1 kB view details)

Uploaded Source

Built Distribution

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

brightcove_async-0.2.0-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file brightcove_async-0.2.0.tar.gz.

File metadata

  • Download URL: brightcove_async-0.2.0.tar.gz
  • Upload date:
  • Size: 41.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for brightcove_async-0.2.0.tar.gz
Algorithm Hash digest
SHA256 75b4b289c9effeace6e97e39ec7bfe9edd5505837e49f0b9728e4036548ffa1a
MD5 659f22276c1916fd18ed546cd3368a76
BLAKE2b-256 6e7c9c4ab9051c8cf76c81ad1e2081d4c7d07bdf949e7c90c7000a7a5032cc79

See more details on using hashes here.

Provenance

The following attestation bundles were made for brightcove_async-0.2.0.tar.gz:

Publisher: package-publish.yml on Winne004/brightcove_async

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brightcove_async-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for brightcove_async-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 baa02756b9909837b5c6c27e924974fd8c591f9d79a1e7d0b9a69d605acb55e7
MD5 4991a98da8abd1b231a37676dd5e5580
BLAKE2b-256 fa0279317be9ff1078e2bb12a61c5e68897325a7e687297853729a99923d1e18

See more details on using hashes here.

Provenance

The following attestation bundles were made for brightcove_async-0.2.0-py3-none-any.whl:

Publisher: package-publish.yml on Winne004/brightcove_async

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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