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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75b4b289c9effeace6e97e39ec7bfe9edd5505837e49f0b9728e4036548ffa1a
|
|
| MD5 |
659f22276c1916fd18ed546cd3368a76
|
|
| BLAKE2b-256 |
6e7c9c4ab9051c8cf76c81ad1e2081d4c7d07bdf949e7c90c7000a7a5032cc79
|
Provenance
The following attestation bundles were made for brightcove_async-0.2.0.tar.gz:
Publisher:
package-publish.yml on Winne004/brightcove_async
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brightcove_async-0.2.0.tar.gz -
Subject digest:
75b4b289c9effeace6e97e39ec7bfe9edd5505837e49f0b9728e4036548ffa1a - Sigstore transparency entry: 1284982655
- Sigstore integration time:
-
Permalink:
Winne004/brightcove_async@920fad45a9358d7bc14d383b04c9dd0088e368d1 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Winne004
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package-publish.yml@920fad45a9358d7bc14d383b04c9dd0088e368d1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file brightcove_async-0.2.0-py3-none-any.whl.
File metadata
- Download URL: brightcove_async-0.2.0-py3-none-any.whl
- Upload date:
- Size: 36.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baa02756b9909837b5c6c27e924974fd8c591f9d79a1e7d0b9a69d605acb55e7
|
|
| MD5 |
4991a98da8abd1b231a37676dd5e5580
|
|
| BLAKE2b-256 |
fa0279317be9ff1078e2bb12a61c5e68897325a7e687297853729a99923d1e18
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brightcove_async-0.2.0-py3-none-any.whl -
Subject digest:
baa02756b9909837b5c6c27e924974fd8c591f9d79a1e7d0b9a69d605acb55e7 - Sigstore transparency entry: 1284982806
- Sigstore integration time:
-
Permalink:
Winne004/brightcove_async@920fad45a9358d7bc14d383b04c9dd0088e368d1 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Winne004
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package-publish.yml@920fad45a9358d7bc14d383b04c9dd0088e368d1 -
Trigger Event:
release
-
Statement type: