Skip to content

Files

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Examples README

Setting up the environment

With Rye

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

Without Rye

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

Run the examples

python EXAMPLE_NAME.py

.env file: API keys and server URLs

Copy the file .env.example to .env and edit it with your preferred API key and server URL.