Civic-Digital-Twins Modeling Framework
Project description
Civic-Digital-Twins Modeling Framework
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
-
Make sure the version number in
pyproject.tomlis correct. -
Make sure you are outside the virtual environment.
-
Make sure
python3-hatchlingis installed (sudo apt install python3-hatchling). -
Make sure
twineis installed (sudo apt install twine). -
Build the package using
python3 -m hatchling build. -
Check whether the package is okay using
twine check dist/*. -
Upload the package to PyPI using
twine upload dist/*.
License
SPDX-License-Identifier: Apache-2.0
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5ee55be13656ffe6fd65fe8c509e695663f61b5a2e8d370f5403a23a65e6e44
|
|
| MD5 |
a8e343d75644a18f63ef8d936be2479d
|
|
| BLAKE2b-256 |
7bd8f3f154c85c8cc07398254b35b85d56c4b464633fddeb4f20e8f71aa64696
|
File details
Details for the file civic_digital_twins-0.5.0-py3-none-any.whl.
File metadata
- Download URL: civic_digital_twins-0.5.0-py3-none-any.whl
- Upload date:
- Size: 41.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9874000b52872bea70c6123adfbb5cd116d56683190b9f28180581d86795dfa7
|
|
| MD5 |
4bee7730ced83b09ddb38fed360a5956
|
|
| BLAKE2b-256 |
80522ee54ddb550a0627205c0a6cb5066792a73016c466a9e0cf4c2883bdd215
|