Skip to main content

FFbinaries API Client

Project description

FFBinaries API Client

HTTP API Client for downloading pre-built ffmpeg, ffplay, ffprobe and ffserver packages from FFbinaries.

  • Supported components: ffmpeg, ffplay, ffprobe and ffserver
  • Supported platforms: linux-32, linux-64, linux-arm64, linux-armel, linux-armhf, osx-64, windows-32 and windows-64
  • Supports fetching different versions of published components packages

Requirements

Python 3.11+

Installation

pip3 install ffbinaries-api-client

Usage

V1 API client's public methods:

from ffbinaries import FFBinariesV1APIClient, ComponentType, PlatformCodeType

client = FFBinariesV1APIClient(request_timeout=10)

client.get_latest_version()
client.get_latest_metadata()
client.get_available_versions()
client.get_available_versions_metadata()
client.get_exact_version_metadata(version='6.1')
client.download_latest_version(
    component=ComponentType.FFMPEG,
    platform=PlatformCodeType.WIN64,
    stream=True
)
client.download_exact_version(
    component=ComponentType.FFMPEG,
    version='6.1',
    platform=PlatformCodeType.WIN64,
    stream=True,
)

Examples located in examples directory.

Exception Handling

  • FFBinariesAPIClientError is raised if something went wrong with API request.
class FFBinariesAPIClientError(Exception):
    """General API Client Error Class."""
    pass

Third Party Libraries and Dependencies

The following libraries will be installed when you install the client library:

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

ffbinaries_api_client-0.0.21.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

ffbinaries_api_client-0.0.21-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file ffbinaries_api_client-0.0.21.tar.gz.

File metadata

File hashes

Hashes for ffbinaries_api_client-0.0.21.tar.gz
Algorithm Hash digest
SHA256 1820672e19bbbaf6485a89652586f2e382986d24090b561c89cb5e87c54d7485
MD5 697688ec20c5634282b6c6b65e7892ed
BLAKE2b-256 0558052212047936f43c695327f534a7d4c621d5c0771af8c03a9a64a0edb737

See more details on using hashes here.

File details

Details for the file ffbinaries_api_client-0.0.21-py3-none-any.whl.

File metadata

File hashes

Hashes for ffbinaries_api_client-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 1fef3856288a64a9aad390ffdd3a65e345b0dc6b82a67fa0ff87095c9f4a0fe4
MD5 6492cd6319d66292daf4dff43d43aa7e
BLAKE2b-256 793de666c6b83db97e0edad83f16c7981fc8525bf193e3af3543bf3af2720d17

See more details on using hashes here.

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