We use Rye to manage dependencies so we highly recommend installing it as it will automatically provision a Python environment with the expected Python version.
After installing Rye, you'll just have to run this command:
$ rye sync --all-features
You can then run scripts using rye run python script.py
or by activating the virtual environment:
$ rye shell
# or manually activate - https://docs.python.org/3/library/venv.html#how-venvs-work
$ source .venv/bin/activate
# now you can omit the `rye run` prefix
$ python script.py
Alternatively if you don't want to install Rye
, you can stick with the standard pip
setup by ensuring you have the Python version specified in .python-version
, create a virtual environment however you desire and then install dependencies using this command:
$ pip install -r requirements-dev.lock
python EXAMPLE_NAME.py
Copy the file .env.example
to .env
and edit it with your preferred API key and server URL.