Skip to main content

CLAIRs Emission ToolKit cetk

Project description

Emission ToolKit cetk

Emission toolkit for command line to import, validate, edit and analyse emissions. Used in QGIS Plugin Eclair. This package is maintained by Eef van Dongen at SMHI.

Installation

python3 -m venv --prompt cetk .venv
. .venv/bin/activate
python -m pip install -e .

Check that installation was successful and receive information on how to use the toolkit:

cetk -h

Before using the toolkit, initialize the template database by:

cetkmanage migrate

If you did not change the default path, this should create ~/.config/eclair/eclair.gpkg

New databases can now be created by copying the template database. This is easiest done using the cetk command:

cetk create /home/myuser/mydatabase.gpkg

To use a specific database, set environment variable "CETK_DATABASE_PATH".

export CETK_DATABASE_PATH="/home/myuser/mydatabase.gpkg"

For more verbose logging, set environment variable CETK_DEBUG=1:

export CETK_DEBUG=1

Contributing

Environment

Install pre-commit hooks:

. .venv/bin/activate
pip install -r requirements-dev.txt
pre-commit install

Testing

Run tests with

nox

Update requirements

If any new development requirements are added to requirements-dev.in, update requirements-dev.txt by running

nox -s requirements

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

cetk-0.0.7.dev0.tar.gz (342.6 kB view details)

Uploaded Source

Built Distribution

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

cetk-0.0.7.dev0-py3-none-any.whl (115.6 kB view details)

Uploaded Python 3

File details

Details for the file cetk-0.0.7.dev0.tar.gz.

File metadata

  • Download URL: cetk-0.0.7.dev0.tar.gz
  • Upload date:
  • Size: 342.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.21

File hashes

Hashes for cetk-0.0.7.dev0.tar.gz
Algorithm Hash digest
SHA256 b4183e9250d7c7579542130fd766348ae1199abd5d7b4e0df3ea2ebb2a90e3cf
MD5 7c61cc9f63c84809d1feaa14a9cbbf6c
BLAKE2b-256 890b0265a9ae67ee849bac29de4de36f994a304f499bf2cd8bbf30fc4d4bd307

See more details on using hashes here.

File details

Details for the file cetk-0.0.7.dev0-py3-none-any.whl.

File metadata

  • Download URL: cetk-0.0.7.dev0-py3-none-any.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.21

File hashes

Hashes for cetk-0.0.7.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 27dc471d8cc4b51efc89e417c69f4ece2c1d9d622e1b9ce78d20129f848012b3
MD5 8e28659a317e8ef48bf5b7e83a68aefb
BLAKE2b-256 126ddab1c02330fb1ee01f6d279a24f995b26e0504b9b2d84bcdbc9a9a06aacd

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