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.1.8.tar.gz (28.2 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.1.8-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for brightcove_async-0.1.8.tar.gz
Algorithm Hash digest
SHA256 2d8205369008cdf866604f32b200fff952976d47a75325cf91f328e8b40fe591
MD5 453239adbd999780628f3bb3587b50f5
BLAKE2b-256 5082fc599feb7eacd28f23f6abeadee86d9761332ce8e1fd3e97a8b31217093c

See more details on using hashes here.

Provenance

The following attestation bundles were made for brightcove_async-0.1.8.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.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for brightcove_async-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 102be0e2ab89607b09885032aa083ee60bd42ba2b992eec9c01ad4b9351fe8aa
MD5 6f7f71f29ae7ea0e1d9201a0d1ebf18b
BLAKE2b-256 afb81b3e90d54b74a2e9dd8e4a3a270b168b7e5370e64e8e1925d01aafda229f

See more details on using hashes here.

Provenance

The following attestation bundles were made for brightcove_async-0.1.8-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