History service for brewblox: writes data from the eventbus to InfluxDB
50K+
There is some boilerplate code involved when creating a Brewblox service plugin. This repository can be forked to avoid having to do the boring configuration.
Everything listed under Required Changes must be done before the package works as intended.
Used to create a distributable and installable Python package. See https://docs.python.org/3.6/distutils/setupscript.html for more information.
Required Changes:
project_name variable to your project name. This is generally the same as the repository name. This name is used when installing the package through Pip.package_name variable to the module name. This can be the same name as your project name, but can't include dashes -. This name is used when importing your package in Python.url parameter to the url of your repository.author parameter to your name.author_email parameter to your email.This file kicks off automated testing and linting of your package. See http://tox.readthedocs.io/en/latest/config.html for more information.
Required Changes:
--cov=YOUR_PACKAGE to refer to your module name.--cov-fail-under=100 makes the build fail if code coverage is less than 100%. It is optional, but recommended. Remove the # comment character to enable it.Include all runtime requirements for your package here. See https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format for more information.
Note: There is overlap between your requirements file, and the install_requires=[] line in setup.py. For most cases, the rule of thumb is that if you need an external package to run, you should add it as dependency to both files.
The file works just like requirements.txt, but should only list the packages needed to test the code. End users do not need these dependencies.
This file lists all non-code files that should be part of the package. See https://docs.python.org/3.6/distutils/sourcedist.html#specifying-the-files-to-distribute for more info.
For a basic plugin, you do not need to change anything in this file.
Travis CI configuration. If you haven't enabled travis for your repository: don't worry, it won't do anything.
This file contains some configuration for pytest-cov.
For a basic plugin, you do not need to change anything in this file.
Your module readme (this file). It will be the package description on Pypi.org, and automatically be displayed in Github. Required Changes:
Your module. This directory name should match the package_name variable in setup.py.
Required Changes:
Project-level pytest fixtures. Some useful fixtures for testing any brewblox_service implementation are defined here. See tests in https://github.com/BrewBlox/brewblox-service/tree/develop/new/test for examples on how to use.
For a basic implementation, you do not need to change anything in this file.
An example on how to test aiohttp endpoints you added. Feel free to remove this once you no longer need it.
Content type
Image
Digest
sha256:8c996e091…
Size
70.6 MB
Last updated
over 3 years ago
docker pull brewblox/brewblox-history:develop