GithubHelp home page GithubHelp logo

lowatt / lowatt-grdf Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 6.0 63 KB

A python client to the GRDF Adict API

License: MIT License

Python 100.00%
api-client energy energy-consumption energy-data gas grdf python-library

lowatt-grdf's People

Contributors

atraineauaka avatar leocolomb avatar philpep avatar sthenault avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lowatt-grdf's Issues

Pydantic v2 incompatibility

The latest Pydantic release, v2, brings some breaking changes.
As this module is a non-pinned dependencies, incompatibility issues are raised.

If you use @root_validator with pre=False (the default) you MUST specify skip_on_failure=True. Note that @root_validator is deprecated and should be replaced with @model_validator.

This is indeed documented on Pydantic's migration guide: https://docs.pydantic.dev/latest/migration/#validator-and-root_validator-are-deprecated

This specific directive is used here: https://github.com/search?q=repo%3Alowatt%2Flowatt-grdf+root_validator&type=code

I note that there is a migration tool that could help fix this in a rather simply way: https://docs.pydantic.dev/latest/migration/#code-transformation-tool

Handle API v2

  • add numero_telephone_titulaire to declareAccess (check start with 06, 07)
  • add Perim_donnees_conso_debut, Perim_donnees_conso_fin, Perim_donnees_contractuelles, Perim_donnees_techniques
  • maybe drop Perim_historique_de_donnees, Perim_flux_de_donnees
  • /adict/v1 -> /adict/v2
  • add date_debut_droit_acces, date_fin_droit_acces and drop date_creation_droit_acces and date_fin_autorisation
  • check consistency date_{debut,fin}droit_acces and perim_donnees_conso{debut,fin} let API validate input data

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.