Code Monkey home page Code Monkey logo

yatotem2scdl's Introduction

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/*

Générer les plans de comptes

Testé avec nodejs v16.20.2 et python 3.11.5

npm ci
npm run build
npm run run # Télécharge les plans de compte dans le dossier output
  • Copier coller les plans de compte dans le dossier correspondant.

yatotem2scdl's People

Contributors

gautierrog avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.