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, pyqtgraph. All required packages will be installed using pip:

pip3 install apstrim

Examples

Serialization

:python -m apstrim -nEPICS -oMeanValue.aps testAPD:scope1:MeanValue_RBV
21-06-02 13:10:43 Logged 61 paragraphs, 1.36 KBytes
...

:python -m apstrim -nEPICS  --compress -oScope1_MeanValue.apsc testAPD:scope1:MeanValue_RBV
21-06-02 13:20:47 Logged 61 paragraphs, 1.058 KBytes
...

:python -m apstrim -nLITE liteHost:dev1:cycle
21-06-02 13:30:31 Logged 5776 paragraphs, 103.986 KBytes
...

:python -m apstrim -nLITE --compress liteHost:dev1:cycle
21-06-02 13:40:41 Logged 5767 paragraphs, 54.456 KBytes
...

:python -m apstrim -nLITE liteHost:dev1:cycle,y
pars: {'acnlin23:dev1:cycle': ['0'], 'acnlin23:dev1:y': ['1']}
21-06-02 13:50:14 Logged 5763 paragraphs, 46448.658 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.0.1.tar.gz (19.3 kB view hashes)

Uploaded Source

Built Distribution

apstrim-1.0.1-py3-none-any.whl (26.5 kB view hashes)

Uploaded Python 3

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