Git Product home page Git Product logo

pathfinder_network's Introduction

Pathfinder Network

Description

A reference implementation of the PACT Pathfinder Network in Python.

https://wbcsd.github.io/tr/2023/data-exchange-protocol-20230221/

Installation

poetry install

Usage

Currently, the only items to have been implemented are the datatypes in pathfinder_network/datamodel, so you can use them, and run tests.

How to Contribute

Submit a PR.

Tests

pytest

pathfinder_network's People

Contributors

johnvonneumann avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

pathfinder_network's Issues

Implement validators on CarbonFootprint

CarbonFootprint is only partially completed, the core datatype is there and the tests show that values can be provided to the relevant compulsory attributes, but there is basically no validation on the type itself, only on the subtypes that it uses in aggregate, also the docstring is not completed. Ultimately didn't have the time or patience to fuck around with the other bits right now, just wanna get the final ProductFootprint done, so that all the datatypes are in there and I can move towards compulsory conformance prior to the next connectathon deadline.

Migrate to Pydantic V2

I had briefly started work on migrating some of the core datatypes (String, etc) to using Root Custom Types https://docs.pydantic.dev/usage/models/#custom-root-types in order to move away from key value basic types and to something with a stronger model for comparison, but I realised that the V2 for Pydantic had just released as Alpha, and it removes Root Custom Types, so I'm going to continue on with the current approach with V1, implement the data types, then round back with V2 and refactor the new features in/out.

Fix/remove flake8 and replace with pylint or something better.

Flake8 cannot be configured by pyproject.yaml, making it tedious to set up and use, other issues were found that I cannot remember but the default line length setting is inconsistent with other tooling, for example, black has longer default line lengths, remove flake8 and then the custom line length for black. Do this after the datatypes major branch is merged in order to isolate what will be a bit ugly sweeping edit by black.

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.