Skip to main content

Library for writing services that behave as SMOK devices

Reason this release was yanked:

bug in imports. Use 0.6.1 instead

Project description

SMOK

PyPI PyPI version PyPI Documentation Status Maintainability Test Coverage Wheel

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.6

  • add BAOBs
  • Sensor class is now eq-able and hashable
  • added option to disable pathpoints and predicates
  • added archiving data extra DB

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 Events
  • added pickling Event and Macro
  • on_read Future can now return None

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 and SMOKDevice.close_event and SMOKDevice.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 to BaseEventDatabase.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 a Future
  • 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.6.tar.gz (57.2 kB view details)

Uploaded Source

Built Distributions

smok-0.6-py3.8.egg (71.3 kB view details)

Uploaded Source

smok-0.6-py2.py3-none-any.whl (74.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file smok-0.6.tar.gz.

File metadata

  • Download URL: smok-0.6.tar.gz
  • Upload date:
  • Size: 57.2 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

Hashes for smok-0.6.tar.gz
Algorithm Hash digest
SHA256 7444c1af66f6133e75fa5c9efc924c3d2061b5bf31206285d1c1fc6c17eac7ab
MD5 5947081c7fe7b3c3fb9fd53ad3d67b36
BLAKE2b-256 1e2d32a87aa64b4817e8d859e82ea7dd5b86eaf04dc9a26c12b17f8e36f133fc

See more details on using hashes here.

File details

Details for the file smok-0.6-py3.8.egg.

File metadata

  • Download URL: smok-0.6-py3.8.egg
  • Upload date:
  • Size: 71.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

Hashes for smok-0.6-py3.8.egg
Algorithm Hash digest
SHA256 ddf863d52d7f546a68b6d5b6b5c9261bda07475cd58d85e74a8270689badd87a
MD5 62126a6ab2855ed68a989194df31d3d6
BLAKE2b-256 075ad0b5d719d309fbfa3a76d532959c0488107ca41de4bbaa138700b538ce88

See more details on using hashes here.

File details

Details for the file smok-0.6-py2.py3-none-any.whl.

File metadata

  • Download URL: smok-0.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 74.8 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

Hashes for smok-0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aab41a5ae220c8af6b166d0858f2b383b1f40bec5d2b1b321f16a2b1598fb6ec
MD5 87868a6c8f6ef897eafdbd367cc34be8
BLAKE2b-256 0e75af7fbc605a36424758fb9892ce334399d9934980f52d8fa8f683e77c1b4f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page