Skip to main content

No project description provided

Project description

Yet Another totem to scdl

Rationale

Largement inspiré de datafin - totem.

Le but de ce projet est de proposer une bibliothèque python de conversion de fichiers totem vers le format SCDL. En effet, le projet de base cité plus haut n'est pas conçu pour être utilisé comme une bibliothèque.

Limitations

  • Actuellement, seuls les budgets sont supportés.
  • Les plans de comptes ne sont pas fournis avec le package.

Quickstart

Préparer l'environnement

python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt

Construire le package

python -m build

Tests

pytest

Ajouter des tests boite noire

Le fichier test_conversions.py contient des tests boite noire, les jeux de données étant quant à eux situés dans exemples. Il est possible d'ajouter des cas de test via la variable d'environnement YATOTEM2SCDL_EXEMPLES_ADDITIONNELS, qui pointe vers un dossier suivant la même nomenclature que exemples.

set -lx YATOTEM2SCDL_EXEMPLES_ADDITIONNELS <DOSSIER_AVEC_JEUX_DE_TESTS_ADDITIONNELS>
pytest

CLI

Après installation du package, la commande yatotem2scdl devient disponible:

$ yatotem2scdl --help

Upload

Pour upload sur un repository PyPI:

python -m build
twine upload --repository-url https://<REPO_URL>/repository/pypi-hosted/ dist/*

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

yatotem2scdl-0.0.21.tar.gz (10.8 kB view hashes)

Uploaded Source

Built Distribution

yatotem2scdl-0.0.21-py3-none-any.whl (12.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page