No project description provided
Project description
Current supported module:
Device Application to Network (DAN)
Device Application to IoT device (DAI)
Supported Python version:
2.7
3.4+
Installation
pip install iottalk-py
Usage of DAI module
There is a executable DAI module. User can invoke it via the command line interface.:
python -m iottalkpy.dai /path/to/your/sa.py
or:
python -m iottalkpy.dai /path/to/your/sa # in case of dir
API
If you want to operate DAI via Python API:
from iottalkpy import dai
sa = dai.module_to_sa(dai.load_module('/path/to/sa.py'))
sa.start()
...
# stop sa process
sa.terminate()
Usage of DAN module
Minimal example:
from iottalkpy import dan
ccm_url = 'http://localhost:9992'
def on_data(*args):
...
def on_signal(*args):
... # handle CCM signal here
client = dan.Client()
client.register(
ccm_url,
on_signal=on_signal,
on_data=on_data
odf_list=[('meow', ['dB'])],
name='BetaCat',
profile={
'model': 'AI',
},
)
client.loop_forever()
Developer Notes
Release steps
Bump version and commit
git-tag the version
git push --tags
python ./setup.py bdist_wheel
twine upload ./dist/iottalk_py-<version>-py3-none-any.whl
TODO
Auto generate doc via Sphinx
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file iottalk_py-2.3.0-py3-none-any.whl
.
File metadata
- Download URL: iottalk_py-2.3.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c25593c02f3a3639c38c70f359d0d7b53a1fe8bdf0c5397801dba5dc1c216347 |
|
MD5 | 3c3a11d3dd8ef870e80b1998356e98ed |
|
BLAKE2b-256 | 44b894c24b839198f2e5b62a84f7c7ed21b37905f1e6ec19d25c168518d39fb9 |