Skip to main content
Version: v2

Python SDK

CI status coverage release status PyPI PyPI - Python Version

The Python SDK for the BAV API makes it easy to consume BAV data within your Python scripts. It is published as wpp-bavapi in PyPI and hosted on GitHub.

Queries are validated automatically thanks to pydantic and retrieved asynchronously via the httpx package.

To start using bavapi, go to the Installation section.

After going through the Installation, please see Basic Usage. For more advanced topics, see the Advanced Usage section.

Each Fount API endpoint may behave slightly differently. You can find detailed explanations in the Endpoints section.

Example usage

"Protected access"

🔒 To use bavapi, you will need a Fount API token. Read more in the Authentication section.

>>> import bavapi
>>> result = bavapi.brands("TOKEN", name="Swatch") # Replace "TOKEN" with your token.
>>> result
sector_idsector_nameidname...
0233Apparel & Accessories8635Swatch...
..................

Features

Issues

For bug reports and feature requests, please open an issue on GitHub.

Contributing

We welcome contributions to the Python SDK which is hosted as a public repository on GitHub. Please see the Contributing document for more information.