GWR synchronisation for ebau projects
Project description
ebau-gwr
GWR synchronisation for ebau projects
Getting started
Installation
Requirements
- docker
- docker-compose
After installing and configuring those, download docker-compose.yml and run the following command:
echo UID=$UID > .env
docker compose up -d
You can now access the api at http://localhost:8000/api/v1/.
Configuration
ebau-gwr is a 12factor app which means that configuration is stored in environment variables. Different environment variable types are explained at django-environ.
Common
A list of configuration options which you need to set when using ebau-gwr as a standalone service:
SECRET_KEY
: A secret key used for cryptography. This needs to be a random string of a certain length. See more.ALLOWED_HOSTS
: A list of hosts/domains your service will be served from. See more.DATABASE_ENGINE
: Database backend to use. See more. (default: django.db.backends.postgresql)DATABASE_HOST
: Host to use when connecting to database (default: localhost)DATABASE_PORT
: Port to use when connecting to database (default: 5432)DATABASE_NAME
: Name of database to use (default: ebau-gwr)DATABASE_USER
: Username to use when connecting to the database (default: ebau-gwr)DATABASE_PASSWORD
: Password to use when connecting to database
App specific settings
A list of configuration options which you need to set in any case:
GWR_WSK_ID
: This is the ID that has been assigned to you by the BfSGWR_FERNET_KEY
: A secret key used for encrypting the passwords in housing stat credentials. Can be generated with thegenerate_fernet_key
command
By default, the app will talk to the GWR production API if running with ENV=production
(and the test API otherwise). You can overwrite this behavior by setting
GWR_HOUSING_STAT_BASE_URI
: base uri of GWR API, e.g."https://www-r.housing-stat.ch/regbl/api/ech0216/2"
Contributing
Look at our contributing guidelines to start with your first contribution.
Maintenance
A few notes for maintainers can be found here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ebau_gwr-0.7.1.tar.gz
.
File metadata
- Download URL: ebau_gwr-0.7.1.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f53815bb601e070649d4a9b49b05989224b9c816f3461bfc2ad939e0e6ac5cd |
|
MD5 | 73a2c1586dc84d9a70b37d9c028c952e |
|
BLAKE2b-256 | 157dadff9e89c010cef7fc341f51bcc3df33af6ae440ef77168350549675a242 |
File details
Details for the file ebau_gwr-0.7.1-py3-none-any.whl
.
File metadata
- Download URL: ebau_gwr-0.7.1-py3-none-any.whl
- Upload date:
- Size: 35.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7a4fea7cdff76557c61c49d7f6ab4c6fb10e1c06f4ff07819e5fcae36f7dcf2 |
|
MD5 | bdeb6038e075b8cfab850f2fde8e4c8c |
|
BLAKE2b-256 | 88fa1c5e4d68d22a47b2683117275487005d81c2287fcbfd1e3d032d6391e3e1 |