Skip to main content

Encoding-decoding HELML format

Project description

HELML

This code represents a Python implementation of the HELML class without dependencies.

The class provides functions for encoding and decoding data in the HELML format.

HELML (Header-Like Markup Language) is a markup language similar to the HTTP header format. (HTTP headers are a specific case of the HELML format, a simple single-level array case).

HELML allows encoding arrays of any complexity and then decoding them while preserving data types for true, false, null, integer. The format is ideologically close to YAML, JSON, and other array serialization formats, intended for use as an alternative in cases where it is convenient. The main advantage of the HELML format is its simplicity, clarity, and minimalism. The format works with any data and does not stumble on binary blocks or special characters. At the same time, the format is intuitively understandable, can be created and edited manually as text. In most cases, data in HELML will be more compact than in other markup languages.

This class implements two varieties of HELML: multiline format and URL format.

The URL variety of HELML is intended for data transmission in the URL string, for example, to implement APIs in GET requests. In this case, the format packs data into a single line and minimizes the number of "inconvenient" characters for the URL.

Main methods of the class: encode: takes an array of data and converts it into a string using the HELML format. the second parameter of the method determines whether to use the URL mode.

decode: performs the reverse transformation of encode. takes a HELML formatted string and converts it back into an array. automatically determines whether the input data is in URL format or multiline format.

All methods are static and can be used without creating an instance of the class.

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

HELML-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

HELML-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file HELML-0.1.0.tar.gz.

File metadata

  • Download URL: HELML-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for HELML-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a844c21609d301daa4d14188fb79f84d776563a5e37ce7cfb74a9c031821891a
MD5 57d786f2de18c1cd3f209f6d7900e8e2
BLAKE2b-256 ba50a94ab42c8c9d66a68dd111852819959b1017fcf47a938af1209b6de37818

See more details on using hashes here.

File details

Details for the file HELML-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: HELML-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for HELML-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52bdc76c25a4e8a06c9e3e34363405f03e46617214db08521f8e891efdb452d6
MD5 49db1175831e482fff5b8a829d3317da
BLAKE2b-256 2d9d6b3907305f6695fb1c2fe6d3d874e92035b18879f0555811e84d42419591

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