Config
Configuration module.
Config
Bases: BaseSettings
Configuration class.
Attributes:
| Name | Type | Description |
|---|---|---|
database_url |
Optional[str]
|
Database URL. If not provided, a SQLite database will be created in the devpipe working directory. Any SQLAlchemy-compatible URL is accepted, provided that the required database driver is installed. |
database_prefix |
str
|
Database tables prefix. |
working_dir |
Path
|
devpipe working directory. |
Info
Configuration is loaded from environment variables prefixed with
DEVPIPE_. For example,
DEVPIPE_DATABASE_URL=postgresql://user:password@localhost:5432/db.
sets the database_url attribute so that devpipe uses a PostgreSQL
database.