Generic IIoT protocols package
Project description
author: Delhaye Adrien year: 2023
Iot Protocols
This git contains easy to use module for communication using various IIoT protocols. Each subdirectory is a package that can be used independently and downloaded from PyPi.
Install
pip install <name-of-package>
Upload on Twine
Upload pyporject.toml
More detailled informations on https://packaging.python.org/en/latest/tutorials/packaging-projects/
Open the pyproject.toml file and update at least the version field with your current verion following the template :
For alpha release : <version>.<subversion>.<feature>.<fix>-a<i>
For beta release : <version>.<subversion>.<feature>.<fix>-b<i>
For relase candidate release : <version>.<subversion>.<feature>.<fix>-rc<i>
For final release : <version>.<subversion>.<feature>.<fix>
With the following :
- <version> defines the core version of the application. This number increase when drastic changes havec been made.
- <subversion> defines important changes like addition of modules or large modification but that doesn't change the global structure of the package.
- <feature> defines an addition of any feature.
- <fix> increase when a fix has been made.
Save your changes
Save everything.
Test everyting.
Push the files on the gitlab repository with version associated TAG.
Build the package
Ensure you have upgraded pip:
py -m pip install --upgrade pip
Then from the root directory of your module, where the pyproject.toml file belongs, execute :
py -m build
This will generate your package tar.gz and wheel files into the build folder.
Upload the dist
First ensure you have twine updated:
py -m pip install --upgrade twine
Get your username and token from PyPi
Use the following command to upload and gives your username and token to authentify, with username as '__token__':
</code></pre>
<p>You can also, if the build package doesn't exists yet on the PyPi registry use :</p>
<pre lang="bash"><code>py -m twine upload dist/*
How to use
CMD line test
You can use the command line interface to explicitely make request using one of the available protocol. To to this, call the main.py script and pass the disired and or required arguments to the command.
For exemple, using the modbus client:
Modbus Client
IEC62056 Client
Snap-7 Client
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iot-protocols-1.0.3.1.tar.gz.
File metadata
- Download URL: iot-protocols-1.0.3.1.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2233071be71a499b763ed9aab6d119299ce49723ea0b855d828b348b851e888
|
|
| MD5 |
64533e103b4ad27fb034a67c9aa1c3d0
|
|
| BLAKE2b-256 |
e4c06562f5f456749ca9d5a5a8bff290e497025f5b8c2efd94eea215f5d12cf9
|
File details
Details for the file iot_protocols-1.0.3.1-py3-none-any.whl.
File metadata
- Download URL: iot_protocols-1.0.3.1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5c0b21417d96950115f288fdc124875dbc87514580c5e95afbfeb6f1b266cd5
|
|
| MD5 |
30c4a251981646f5f4fcd28ecbb69b52
|
|
| BLAKE2b-256 |
cb7c5ea1a6acddf2b78ad9e0bd9f9c8c9ef1c00141fa1c6e5e880961f9268dd3
|