Skip to main content

Import and manage data from ENTSOE/pemmdb then format and export for Pegase

Project description

antares-data-collection

License Python CI with Coverage and Sonar

NOTES

Several steps to use this package :

  • Install uv and follow steps from doc (Doc)
  • Install a specific version of Python with uv python install 3.11
  • Install tox with uv tool install tox --with tox-uv
  • Clone repository git clone https://github.com/AntaresSimulatorTeam/antares_data_collection.git
  • Put in the root directory and install dependencies (prod+dev)
    • uv sync --locked --all-extras --dev

Install package development

  • uv run pip install -e . (it can be not possible if you have a global pip installation with python 3.10)

If you have issue with pip :

  • which pip
  • add pip in your .venv in your project uv
    • install pip in .venv in your projet python -m ensurepip --upgrade
    • uv run python -m pip install -e .
    • then upgrade : python -m pip install --upgrade pip setuptools build
      • now you should be able to use uv run pip install -e .

Install Dependencies

Install all dependencies (prod + dev):
uv sync

Install strictly from the lockfile:
uv sync --locked

Install without dev dependencies:
uv sync --no-dev

Install everything (all extras + dev):
uv sync --all-extras --dev

Add a Dependency

Add a production dependency:
uv add <package>

Add a development dependency:
uv add --dev <package>

Add a specific version:
uv add <package>==<version>

Remove a Dependency

uv remove <package>

Update Dependencies

Regenerate the lockfile:
uv lock

Check/test package with tox

The configuration is specified in file tox.ini. But you can also call specific part of tests and also for a specific Python version.

To simply launch all your tests :

  • use tox in bach

Specific tests

Use ruff to check and format your code :

  • tox -e lint
  • these tests execute an internal script to check/put an header on scripts/tests

Use mypy to check Typechecking :

  • tox -e type

use coverage to check code coverage :

  • tox -e coverage

By default pytest is run here wit tox. You just have to provide a version of tox environment like :

  • tox -e py3.11

Specific tests with specific env

You can mix command to run specific tests with specific env like :

  • tox -e lint,type,py3.11

or like :

  • tox -e lint,type,coverage,py3.11,py3.12

Possible to check/test without tox

Linting and formatting

To reformat your code, use this command line: uv ruff check src/ tests/ --fix && ruff format src/ tests/

Typechecking

To typecheck your code, use this command line: uv run mypy src/

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

antares_data_collection-0.1.0.tar.gz (42.3 kB view details)

Uploaded Source

Built Distribution

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

antares_data_collection-0.1.0-py3-none-any.whl (65.8 kB view details)

Uploaded Python 3

File details

Details for the file antares_data_collection-0.1.0.tar.gz.

File metadata

  • Download URL: antares_data_collection-0.1.0.tar.gz
  • Upload date:
  • Size: 42.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for antares_data_collection-0.1.0.tar.gz
Algorithm Hash digest
SHA256 57696cd13591f345f7696391f3a8e4b1126162131ad67efd29b8280fab1ec694
MD5 734637c41261d207608d4329d264fd2d
BLAKE2b-256 c63339207b9be2766f203ea465032f1f842da8ad1f6b2827760db6021708becb

See more details on using hashes here.

File details

Details for the file antares_data_collection-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for antares_data_collection-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6aeb168cb6675552f250ee524ed8f66f4b43f83b5e9c52a3e25bae5175390b75
MD5 617737d824f6f363410130fb31710d89
BLAKE2b-256 414558aca96af446bbe47177a56b77c136c02497401cddffef2ae9419e28a4a4

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