Skip to main content

GWR synchronisation for ebau projects

Project description

ebau-gwr

Build Status Coverage Ruff

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 BfS
  • GWR_FERNET_KEY: A secret key used for encrypting the passwords in housing stat credentials. Can be generated with the generate_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ebau_gwr-0.8.3.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ebau_gwr-0.8.3-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file ebau_gwr-0.8.3.tar.gz.

File metadata

  • Download URL: ebau_gwr-0.8.3.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for ebau_gwr-0.8.3.tar.gz
Algorithm Hash digest
SHA256 c510e3cef9a302927d5a5f8fb96d470ff144d3f03377b3bf84a7fb959cc6d856
MD5 da420ec54256da23a99ebe75820fff55
BLAKE2b-256 fd8ab057c03f5b81096e259d3e7f7169e7f04f0fc79f616868160a8ccbb19013

See more details on using hashes here.

File details

Details for the file ebau_gwr-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: ebau_gwr-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 33.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for ebau_gwr-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b1a114b0acd4a45cb44e5607d0067c1ce26ee2a8e515231952b9ea6abefdc881
MD5 1cbf55b2973d6fbab79d0e04b5fb39d2
BLAKE2b-256 89dfd9c0e70855fc58a9dc2eb3de85f02ca0883764eda5545dbe78ffdff1c5af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page