Skip to main content

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

Development steps

  1. Install this package and the development requirements

pip install -e .
pip install -r dev-requirements.txt

Release steps

  1. Bump version and commit

  2. git-tag the version
    1. Versioning rule: <major>.<minor>.<patch>

    2. The major and minor verion number should be the same as IoTtalk server.

  3. git push --tags

  4. python ./setup.py bdist_wheel

  5. twine upload ./dist/iottalk_py-<version>-py3-none-any.whl

TODO

  1. Auto generate doc via Sphinx

Release files for iottalk-py 2.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for iottalk-py 2.3.1
File Interpreter ABI Platform
iottalk_py-2.3.1-py3-none-any.whl Python 3 none any Details

Release files / iottalk_py-2.3.1-py3-none-any.whl

Download URL iottalk_py-2.3.1-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef8ec603bef00bea4947529e3c3fe2772fb4823d500c9c06bc0a512e6396c371
BLAKE2b-256 checksum
How to use checksums
4cdefbab8a4ddc9e7893a40234446cd0086a8609151ffdf7c65e599a8e8e019c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

2.3.1 This release

1 release file

2.3.0

1 release file

2.2.1

2 release files

2.2.0

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page