Experiments with agentic coding
pyenv install 3.10.13
pyenv install 3.11.8
pyenv install 3.12.2
pyenv global 3.10.13
pyenv local 3.11.8
poetry env use $(pyenv which python3.10)
This project uses environment variables for configuration. To set up your environment:
-
Copy the example environment file:
cp .env.example .env
-
Edit the
.env
file with your specific configuration values. -
The environment variables are loaded automatically when you import the
config
module:from config import config # Access configuration values api_key = config['api']['key'] debug_mode = config['app']['debug']
The following environment variables can be configured:
Variable | Description | Default |
---|---|---|
API_KEY | API authentication key | default_key |
API_URL | API endpoint URL | https://api.example.com |
DEBUG | Enable debug mode | False |
LOG_LEVEL | Logging level | INFO |
DB_HOST | Database host | localhost |
DB_PORT | Database port | 5432 |
DB_NAME | Database name | mydb |
DB_USER | Database username | user |
DB_PASSWORD | Database password | password |
See example.py
for a demonstration of how to use the environment variables in your code.