Skip to main content

OS2mo Init

OS2mo Initialiser.

Build

docker build . -t os2mo-init

Which yields:

...
Successfully built ...
Successfully tagged os2mo-init:latest

After which you can run:

docker run --rm os2mo-init --help

Which yields:

Usage: __main__.py [OPTIONS]

Options:
  --lora-url TEXT              Address of the LoRa host  [env var: LORA_URL;
                               default: http://localhost:8080]

  --root-org-name TEXT         Name of the root organisation  [env var:
                               ROOT_ORG_NAME; default: Magenta Aps]

  --municipality-code INTEGER  Municipality code of the root organisation
                               [default: 1234]

  --help                       Show this message and exit.

  In addition to the listed environment variables, the program accepts
  parameters from environment variables using the format
  'OS2MO_INIT_<OPTION>'; for example 'OS2MO_INIT_MUNICIPALITY_CODE'.
  Furthermore, the following environment variables are used to establish a
  connection to LoRa:

  CLIENT_ID [default: mo]
  CLIENT_SECRET [required]
  AUTH_REALM [default: lora]
  AUTH_SERVER [default: http://localhost:8080/auth]

Usage

The primary usage of the tool is to initialise OS2mo's LoRa database.

docker run --rm os2mo-init --client-secret='hunter2'

Versioning

This project uses Semantic Versioning with the following strategy:

  • MAJOR: Incompatible changes to existing commandline interface
  • MINOR: Backwards compatible updates to commandline interface
  • PATCH: Backwards compatible bug fixes

The fileformat is versioned directly, and the version is exported in the file itself.

License

This project uses REUSE for licensing. All licenses can be found in the LICENSES folder of the project.

Metadata

Release files for os2mo-init 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for os2mo-init 0.0.3
File Size Uploaded
os2mo-init-0.0.3.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for os2mo-init 0.0.3
File Interpreter ABI Platform
os2mo_init-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / os2mo-init-0.0.3.tar.gz

Download URL os2mo-init-0.0.3.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
350dcfc597d7606befb65bf63d9a604c917aa68af79e5bf86ec80efdda4a7d39
BLAKE2b-256 checksum
How to use checksums
4f75ede8c5f556384e3783bbe74607ae131133553a115aba2d1270966cb36077
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.9 CPython/3.9.7 Linux/5.4.0-1049-gcp

Release files / os2mo_init-0.0.3-py3-none-any.whl

Download URL os2mo_init-0.0.3-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3bcf7a16f0cbe20d1dea812cf6937d618025b09849154c5690e72f8832b0cc76
BLAKE2b-256 checksum
How to use checksums
b9c2e5d3a0af7483b87f06c619f845271cf36363fef11bf93596185e1cfc8f88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.9 CPython/3.9.7 Linux/5.4.0-1049-gcp

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page