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:
httpxfor communication with the Fount API.pandasfor processing retrieved data into tables.pydanticto validate query and filter parameters.nest-asyncioto support Jupyter notebooks.tqdmto show helpful progress bars.typing-extensionsfor 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: