Skip to main content

Parameter and Object Serializer for EPICS, ADO or LITE

Project description

apstrim

Logger of Control System parameters and data objects. Analog of SDDS writer.

  • Supported infrastructures: ADO, EPICS, LITE.
  • Efficient binary serialization format.
  • Like JSON. But it's faster and smaller.
  • Numpy arrays supported.
  • Optional online compression.
  • Basic plotting of logged data.

Installation

Dependencies: msgpack, msgpack-numpy, caproto. These packages will be installed using pip:

pip3 install apstrim

The example program for deserialization and plotting apstrim.plot requires additional package: pyqtgraph.

Examples

Serialization

:python -m apstrim -nEPICS testAPD:scope1:MeanValue_RBV
pars: {'testAPD:scope1:MeanValue_RBV': ['0']}
21-06-19 11:06:57 Logged 61 paragraphs, 1.36 KBytes
...

:python -m apstrim -nEPICS --compress testAPD:scope1:MeanValue_RBV
pars: {'testAPD:scope1:MeanValue_RBV': ['0']}
21-06-19 11:10:35 Logged 61 paragraphs, 1.06 KBytes
...
# Compression ratio = 1.28

:python -m apstrim -nEPICS testAPD:scope1:MeanValue_RBV,Waveform_RBV
21-06-18 22:51:15 Logged 122 paragraphs, 492.837 KBytes
...

:python -m apstrim -nEPICS --compress testAPD:scope1:MeanValue_RBV,WaveForm_RBV
21-06-19 11:04:58 Logged 122 paragraphs, 492.682 KBytes
...
# Note, Compression is very poor for vector parameters

python -m apstrim -nLITE liteHost:dev1:cycle
pars: {'acnlin23:dev1:cycle': ['0']}
21-06-19 11:16:42 Logged 5729 paragraphs, 103.14 KBytes
...

:python -m apstrim -nLITE --compress liteHost:dev1:cycle
21-06-19 11:18:02 Logged 5733 paragraphs, 53.75 KBytes
...
# Compression ratio = 1.9

:python -m apstrim -nLITE liteHost:dev1:cycle,y
pars: {'acnlin23:dev1:cycle': ['0'], 'acnlin23:dev1:y': ['1']}
21-06-19 10:57:30 Logged 5743 paragraphs, 46247.198 KBytes
...

Example of deserialization and plotting of the logged data files.

python -m apstrim.plot *.aps

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apstrim-1.2.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apstrim-1.2.0-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

Details for the file apstrim-1.2.0.tar.gz.

File metadata

  • Download URL: apstrim-1.2.0.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for apstrim-1.2.0.tar.gz
Algorithm Hash digest
SHA256 42475ace74953a9fef32b5eea42be4027fa92692ad872a0bd92f45c4113038d1
MD5 e5861a797dfe446a9bd00b05cac5b159
BLAKE2b-256 c1132538763f92d88424b47094846ba6029936c683e0ad3c6f5cf8b42495297b

See more details on using hashes here.

File details

Details for the file apstrim-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: apstrim-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 33.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for apstrim-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfbec8ea418470a1959462189e14f69bdd82c0bdd9af3a8e4b4442bdaff6fe2b
MD5 53555df0fca238ff6c2ca21e6d49708e
BLAKE2b-256 dd56199bd4fffc3deffc33162b3461bd9fa6307034034f58746474fa5c2afdce

See more details on using hashes here.

Supported by

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