Library for writing services that behave as SMOK devices
Project description
SMOK
smok
is a definitive library to write programs that behave as SMOK devices.
It is principally a consumer of the SMOK API.
Change log
v0.5
- added automatic log compression
- superficial print() removed
- added sensor database
- increased the startup delay to begin communication by 5 seconds to 10 seconds
- this delay is now programmable
- fixed a bug with updating metadata
- removed a debug log upon syncing pathpoints
v0.4
- fixed a bug where
LogPublisherThread
would throw during shutdown - API will return a
ResponseError
if something fails - fixed a bug where log records sent to the server were not formatted correctly
- logging was adjusted
- when formatting the log record fails, it's message will be appended along with it's args
- fixed a critical bug with storing pathpoint values
- fixed a bug with executor not recognizing the default
execute_a_section
- fixed a bug wherein timestamps were written 1000 times larger than necessary
- pathpoints will be uploaded as soon as there's new data
v0.3
- added
SMOKDevice._execute_message_order
- log publisher has now a timeout
- clarified Pathpoint.get_archive
- improving handling error messages from the API
v0.2
- renamed from smok-client to smok
v0.0.11
- fixed closing
Event
s - added pickling
Event
andMacro
on_read
Future can now returnNone
v0.0.10
- added
Pathpoint.get_archive
- definitively removed set metadata
- added custom
SMOKDevice.execute_section
v0.0.9
- added
PicklingMetadataDatabase
- added
SMOKDevice.sync_sections
- added
SMOKDevice.open_event
andSMOKDevice.close_event
andSMOKDevice.get_all_open_events
v0.0.8
- added support for plain metadata
v0.0.7
- added logging
v0.0.6
- renamed
BaseEventDatabase.get_data_to_sync
toBaseEventDatabase.get_events_to_sync
v0.0.5
- added an option not to start macros and archives
- added slots to BaseDatabases
v0.0.4
- added setting and reading linkstate and instrumentation metadata for slave devices
- added a true macro database
v0.0.3
- added pluggable pathpoint value databases
Section
is now aFuture
- bugfix: timestamp from restored data would be needlessly bumped up
- added option to create
Events
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
smok-0.5.tar.gz
(53.4 kB
view details)
Built Distributions
smok-0.5-py3.8.egg
(65.3 kB
view details)
smok-0.5-py2.py3-none-any.whl
(68.4 kB
view details)
File details
Details for the file smok-0.5.tar.gz
.
File metadata
- Download URL: smok-0.5.tar.gz
- Upload date:
- Size: 53.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 690811ec03ca984dea086ee9b5ff920604a6d6966d625671978251a5622eafe1 |
|
MD5 | 05db5d1df0988d09f4f55118621a15fa |
|
BLAKE2b-256 | 26c08127eb3a0fc9440e0a32042e7648d13a88cd04b65e5234b3e8b0f687f1fd |
File details
Details for the file smok-0.5-py3.8.egg
.
File metadata
- Download URL: smok-0.5-py3.8.egg
- Upload date:
- Size: 65.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8389b5e3b49ef30a17eb986a57b2f6a0fc0400165728ff5377a53f23ed53c30b |
|
MD5 | 404dd2a6fb8f41c09045d9c38e4b3575 |
|
BLAKE2b-256 | 3e651c92c38290c852085b3d18f6147250d2a69a17ed64827939073fd382f942 |
File details
Details for the file smok-0.5-py2.py3-none-any.whl
.
File metadata
- Download URL: smok-0.5-py2.py3-none-any.whl
- Upload date:
- Size: 68.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f78e07b54c17153b6e662bf08fd306c98517b350d6866c79b38562e5fe9312f2 |
|
MD5 | 77a4bc4cc7b2563878468c41741b3793 |
|
BLAKE2b-256 | 3cd4284957109c3d37086c7c40fe386c0bf0f3e280e539504a0a80780ec0063b |