Skip to main content

PyILTags

Description

PyILTags is a pure Python implementation of the InterlockLedger ILTags TLV encoding.

It implements all tags defined by the standard, each one with proper interfaces to manipulate their data. It can also handle any non standard tag as instances of ILRawTag.

Furthermore, the provided API allows the implementation of new tags from ground up or by reusing one of the existing standard tags with new IDs.

Requirements

This program was developed for Python 3.7 or higher.

It depends on PyILInt 0.2.2 or later to work properly.

Installation

To install this library, you may download the code from github and copy the contents of the directory src into your module's directory.

You can also use pip to install it by running the command:

$ pip install pyiltags

How to use it

This library can be used to create, serialize and deserialize values using the ILTags standard.

This is a very simple example about how to use this library to create, serialize and deserialize a tag:

from io import BytesIO
from pyiltags.standard import ILStandardTagFactory, ILUInt64Tag

# Serialize a tag
tag = ILUInt64Tag(123456)
writer = BytesIO()
tag.serialize(writer)
writer.seek(0)
serialized = writer.read()
print(f'Tag with id {tag.id} and value {tag.value} serialized.')

# Unserialize the tag
reader = BytesIO(serialized)
factory = ILStandardTagFactory()
deserialized_tag = factory.deserialize(reader)
print(
    f'Deserialized tag with id {deserialized_tag.id} and value {deserialized_tag.value}.')

Further information about this library can be found in the source code and in its unit-tests.

License

This program is licensed under the BSD 3-Clause License.

Changes

  • 0.1.1:
    • Tested on multiple versions of python with tox;
  • 0.1.0:
    • Initial public release with minimum functionality;

Metadata

Release files for pyiltags 0.1.1

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

Source distribution (sdist)

Source distribution for pyiltags 0.1.1
File Size Uploaded
pyiltags-0.1.1.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyiltags 0.1.1
File Interpreter ABI Platform
pyiltags-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 32.5 kB

Release files / pyiltags-0.1.1.tar.gz

Download URL pyiltags-0.1.1.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6a98cc68d9b00e0de7a3d49d914d5f50d9bda1d2cb0132b48b85c65b9d77aca9
BLAKE2b-256 checksum
How to use checksums
82059e67f53434e65500f188eb1bc095529918c18f4faf208ad370a2b5fdc587
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / pyiltags-0.1.1-py3-none-any.whl

Download URL pyiltags-0.1.1-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fcd0139ddee613946b56cdd0a8db4d75df78ed89b0af1307eefe2d202a94a34
BLAKE2b-256 checksum
How to use checksums
e336865b46e8cd357220d9ca71b9b10bf18d774bca0ad819e495b0e3be3e71f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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