Package: openleadr
OpenLEADR is a Python 3 module that provides a convenient interface to OpenADR
systems. It contains an OpenADR Client that you can use to talk to other OpenADR
systems, and it contains an OpenADR Server (VTN) with convenient integration
possibilities.It currently implements the OpenADR 2.0b specification.DocumentationYou can find documentation here:https://openleadr.org/docs.Getting startedWe have cool 1-minute starting examples for bothVENandVTN. Please check them out and take a look at the rest of the documentation.Feature CompletenessAt the moment, you can do basic Registration, Telemetry Reports and Events over a secured connection using signed messages. This covers many use-cases that allow for demand response to be coordinated. Below is a more extensive list of OpenADR features and their current implementation status in OpenLEADR:The following is an overview of OpenADR 2.0b features that are implemented in OpenADR:FeatureImplementedRemarksTransportHTTP Pull Method✔️Most-used method, allows VEN to be behind NATHTTP Push Method❌XMPP Transport❌Message Signing✔️Official OpenADR Alliance Root Cert not includedRegistrationRegistration procedure✔️ReportingTelemetry Reports✔️Status Reports❌Work is in progress, see #108History Reports❌EventsEvents✔️EiOpt❌ContributingIf you'd like to help make OpenLEADR better, you can do so in the following ways:File bug report or feature requestWe keep track of all bugs and feature requests onGithub Issues. Please search the already close issues to see if your question was asked before.You're also very welcome to leave comments on existing issues with your ideas on how to improve OpenLEADR.File a pull requestWe'd love for you to contribute code to the project. We'll take a look at all pull requests, no matter their state. Please note though, that we will only accept pull requests if they meet at least the following criteria:Your code style is flake8 compliant (with a maximum line length of 127 characters)You provide tests for your new code and your code, and you amend any previous tests that fail if they are impacted by your code changeYour pull request refers to an Issue on our issue tracker, so that we and other people can see what problem is being solved.You sign off your commits (git commit -s), to indicate that your contribution complies with our license and does not violate anybody else's copyright.That said, please don't let the above requirements discourage you from filing a pull requests. If you don't meet all of the above requirements, we'll help you fix the remaining things to get it into shape.Security issuesLet it be clear that this code base is still in a development stage, and we don't yet recommend using it for mission critical applications or applications where security is paramount.That said, we do try to make OpenLEADR as secure as can be to work with. If you find a security vulnerability in OpenLEADR, please let us know at security AT openleadr DOT org. We will get back to you within 72 hours to follow up. We are committed to the following steps:Security vulnerabilities with a known fix will be addressed as soon as possible. This means that work on other things will be put on hold until the security issue is fixed.If a fix is not readily available, we will publish a warning that describes the vulnerable situation and, if possible, any mitigating steps that users of OpenLEADR can take.After any security issue is fixed, we will publish information on it in the Changelog.DevelopingWe recommend the following development setup for working with OpenLEADR (this is on Linux / macOS):gitclonehttps://github.com/openleadr/openleadr-pythoncdopenleadr-python
python3-mvenvpython_env
./python_env/bin/pip3install-e.
./python_env/bin/pip3install-rdev_requirements.txtTo run the test suite, you can use the following command:./python_env/bin/python3-mpytest-vtest/Contributing DocumentationBuilding the documentationStatic documentation can be found in the docs directory. Edit or create new .rst files to add new content using
theRestructured Textformat. To see the results of your changes,
the documentation can be built locally through the command line using the following instructions:# Ensure that you follow the development setup in the Developing section above before running the following commands# After running this these commands, you should see a new directory `docs/_build`, which contains the HTML documentation.# For more details, see https://www.sphinx-doc.org/en/master/tutorial/first-steps.htmlcddocs
makehtmlThen, open your browser to the created local files:file:///home/<USER>/openleadr-python/docs/_build/html/index.html