Skip to main content

Axessy is a simple package to read and parse messages from AXESS TMC X3 devices.

ChangeLog

  • 0.4: Added gate error messages and events (directions); added system error messages

  • 0.3: Fixed message() method

  • 0.1: First release

Installation

There are two ways to install the package:

  1. Using pip with the following command:

    pip install axessy

  2. Start setup.py file from this repository:

    python setup.py install

Usage

You can import the module in the following way:

import axessy.axessy

In this package there is the “AxessPackage” class defined with the following methods:

  • parsePacket(params): “params” includes the GET parameters sent via an “/online” or “/batch” command from the device, and stores the data inside the class variables;

  • message(msg, beep=100, show=2): builds a string that you can put inside an HttpResponse to send back to the device;

  • sendKeepAlive(url, username, password): asks the device to send a keepalive message.

Also the “AxessPackage().ack” and “AxessPackage().keepalive” variables are defined for string responses to “/batch” and “/keepalive” commands.

A dictionary with all possible errors saved into a transaction, “AxessPackage().error_dict”, is defined and automatically used by “parsePacket” method.

Finally there are two new Error classes used by the “checkPacket()” method (this method is used by “parsePacket” automatically):

  • MacAddressError

  • CardError

Metadata

Release files for axessy 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for axessy 0.4
File Size Uploaded
axessy-0.4.tar.gz 10.2 kB Details

Release files / axessy-0.4.tar.gz

Download URL axessy-0.4.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e1c267bfa01e2137c9ef453f62aeff54fb711f491c657485296b1cdbc573efae
BLAKE2b-256 checksum
How to use checksums
edcab8aac47638fdb4d25d6ce39abd213e241d4922c53d2a5437bd4ff4dc0750
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4 This release

1 release file

0.3

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page