Skip to main content

A request parser to simplify communication with physics-lab devices

Project description

LabAutomation Communication Request Manager

In the context of a physics lab automation project, this package aims to simplify communication with different devices. Communication is based on 0mq and json-based messages. This package is meant to be used in combination with a 0mq-based device server.

Sending a request

The only relevant function to use is ReqParser.request(): Parameters:

  • device: to be addressed device name as string (defined in Device Server)
  • action: requested action as string ("connect", "disconnect", "test", arbitrary)
  • payload: values to be passed for arbitrary action

Returns:

  • status: True (successful) or False (communication request failed)
  • info: string of more detailed information

Including / Replacing Communication Manager

By using the following import line, the package can be used: from la_com_request_parser.com_request_parser import ReqParser

If you previously used the Communication Manager and it is deeply rooted in the project you can just import the following line to maintain full functionality: from la_com_request_parser.com_request_parser import ReqParser as CommunicationManager

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

la_com_request_parser-0.2.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

la_com_request_parser-0.2.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file la_com_request_parser-0.2.0.tar.gz.

File metadata

  • Download URL: la_com_request_parser-0.2.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.1

File hashes

Hashes for la_com_request_parser-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4d614bfe020253fbe99bc25eb0b4c64316c3ccf7598e3cf5f3169968c3121bec
MD5 c3f66dec02ece727ad255c5eca6db4ca
BLAKE2b-256 92d6bd9851d7e64977376ffb0b4005e7a5b92e45d24b6ed76973f4d97c10eb5d

See more details on using hashes here.

File details

Details for the file la_com_request_parser-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for la_com_request_parser-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc1a29c5930223abbd211f6e68a6516b1c51a47cea96641ab4ecbbd0768918dc
MD5 c011ac487e4b4bc06ce222ef5d4bbed9
BLAKE2b-256 03934dbc29dcc4781dfe01a9ca97eb6a5ab11e204e41cec8fea4a6b4e08bc944

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