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.22.tar.gz (6.7 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.22-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ffbinaries_api_client-0.0.22.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ffbinaries_api_client-0.0.22.tar.gz
Algorithm Hash digest
SHA256 79b524dc82c2b61b499c452cf171604878994cbed4d2a87328e3015dae29f462
MD5 f94c29cde38c5c6e432c8b7114c78732
BLAKE2b-256 8e8a6f25e4c87ae8a03be8f0dccdf59960633d9d491fbfd5ba01c24c1cb8eb8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ffbinaries_api_client-0.0.22-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ffbinaries_api_client-0.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 ddb9c95d998a687a5c20f36eead6b68dc0849857683b6e8b5f6bab5082133e57
MD5 1c7642052f5e6e7ce7fcd2e947485d60
BLAKE2b-256 0e398d3d8c22af52450e031adc0b5351470ff3a51137e3aa22e1153459d3a3d7

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