Installation¶
Pre-requisites¶
bavapi
requires Python 3.8 or higher to run.
If you don't have Python installed, you can download it from the official Python website or Anaconda.
You will also need a Fount API bearer token to peform requests to the Fount. For instructions on how to get your own API token, see the Authentication section.
Once you have installed Python and have acquired your Fount API token, return to this page to continue.
Dependencies¶
bavapi
depends on the following excellent libraries:
httpx
for communication with the Fount API.pandas
for processing retrieved data into tables.pydantic
to validate query and filter parameters.nest-asyncio
to support Jupyter notebooks.tqdm
to show helpful progress bars.typing-extensions
for type-checking compatibility in Python < 3.12.
These libraries will be installed automatically when you install bavapi
.
Installing bavapi
¶
Once you have your virtual (or conda) environment activated, you can install bavapi
with the following command:
Installing with conda
bavapi
is not currently available from conda
directly, though it should be possible to install and use it within a conda
environment.
You can use the following commands to maximize compatibility between conda
and pip
:
Installing from source¶
To install from source, clone the GitHub repository into your local machine:
Go into the cloned directory and install bavapi
: