modbus configure tools
Project description
modbus_config_tools
The basic modbus_config_tools app built in the Flask tutorial
_.
.. _tutorial: http://flask.pocoo.org/docs/tutorial/
Install
Be sure to use the same version of the code as the version of the docs you're reading. You probably want the latest tagged version, but the default Git version is the master branch. ::
# clone the repository
$ git clone git@github.com:shenyunbrother/MY-Flask.git
$ cd config_studio
# checkout the correct version
$ git tag # shows the tagged versions
$ git checkout latest-tag-found-above
Create a virtualenv and activate it::
$ python3 -m venv venv
$ . venv/bin/activate
Or on Windows cmd::
$ py -3 -m venv venv
$ venv\Scripts\activate
Install modbus_config_tools::
$ pip install -e .
Or if you are using the master branch, install Flask from source before installing config_studio::
$ pip install -e ../..
$ pip install -e .
Run
::
$ export FLASK_APP=app
$ export FLASK_ENV=development
$ flask run
Or on Windows cmd::
> set FLASK_APP=app
> set FLASK_ENV=development
> flask run
> `waitress-serve --port=8080 --call app:create_app`
Open http://127.0.0.1:8080 in a browser.
Test
::
$ pip install '.[test]'
$ pytest
Run with coverage report::
$ coverage run -m pytest
$ coverage report
$ coverage html # open htmlcov/index.html in a browser
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for modbus_config_tools-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37fb2bff93997ae13310b03af34507377d6e9c1026c0434c51f641dc44ed52d0 |
|
MD5 | 8c759b0534f1676bd624628a794245e3 |
|
BLAKE2b-256 | 2bbe6d190a2aa4a849a331c8503eaf87ca84f70edf86e82adc5f30e2dea8ba11 |
Close
Hashes for modbus_config_tools-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ed57ce2f8cda6ef8a327bed1b5ad0242b2e0bbc95461639e4dad826b8ebd28b |
|
MD5 | 330e5ea5a9eb1c16e661e418c5b6c2aa |
|
BLAKE2b-256 | a618c103e082a694f52a11246255df2bec789a2852dd9711dba0d78ef38ee62f |