Skip to main content

Civic-Digital-Twins Modeling Framework

Project description

Civic-Digital-Twins Modeling Framework

Build Status codecov PyPI version Python Versions License

This repository contains a Python package implementing a Civic-Digital-Twins modeling framework. The framework is designed to support defining digital twins models and evaluating them in simulated environment with varying contextual conditions. We develop this package at @fbk-most, a research unit at Fondazione Bruno Kessler.

Note: this package is currently in an early development stage.

Installation

The package name is civic-digital-twins on PyPi. Install using pip:

pip install civic-digital-twins

or, using uv:

uv add civic-digital-twins

The main package name is civic_digital_twins:

import civic_digital_twins

or

from civic_digital_twins import dt_model

Minimum Python Version

Python 3.11.

API Stability Guarantees

The package is currently in an early development stage. We do not anticipate breaking APIs without a good reason to do so, yet, breaking changes may occur from time to time. We generally expect subpackages within the top-level package to change more frequently.

Development Setup

We use uv for managing the development environment.

To get started, run:

git clone https://github.com/fbk-most/civic-digital-twins
cd civic-digital-twins
uv venv
source .venv/bin/activate
uv sync --dev

We use pytest for testing. To run tests use this command (from inside the virtual environment):

pytest

Each pull request is automatically tested using GitHub Actions. The workflow is defined in .github/workflows/test.yml.

Updating Dependencies

uv self update
uv sync --upgrade

Releasing

  1. Make sure the version number in pyproject.toml is correct.

  2. Make sure you are outside the virtual environment.

  3. Make sure python3-hatchling is installed (sudo apt install python3-hatchling).

  4. Make sure twine is installed (sudo apt install twine).

  5. Build the package using python3 -m hatchling build.

  6. Check whether the package is okay using twine check dist/*.

  7. Upload the package to PyPI using twine upload dist/*.

License

SPDX-License-Identifier: Apache-2.0

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

civic_digital_twins-0.5.0.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

civic_digital_twins-0.5.0-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

File details

Details for the file civic_digital_twins-0.5.0.tar.gz.

File metadata

  • Download URL: civic_digital_twins-0.5.0.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for civic_digital_twins-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d5ee55be13656ffe6fd65fe8c509e695663f61b5a2e8d370f5403a23a65e6e44
MD5 a8e343d75644a18f63ef8d936be2479d
BLAKE2b-256 7bd8f3f154c85c8cc07398254b35b85d56c4b464633fddeb4f20e8f71aa64696

See more details on using hashes here.

File details

Details for the file civic_digital_twins-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for civic_digital_twins-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9874000b52872bea70c6123adfbb5cd116d56683190b9f28180581d86795dfa7
MD5 4bee7730ced83b09ddb38fed360a5956
BLAKE2b-256 80522ee54ddb550a0627205c0a6cb5066792a73016c466a9e0cf4c2883bdd215

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