Encoding-decoding HELML format
Project description
HELML
Python package
Install
To install HELML, simply use pip:
pip install helml
Usage
from helml import HELML
# Example data structure
data = {
"key1": "value1",
"key2": [1, 2, 3],
"key3": {
"nested_key": "nested_value"
}
}
# Encode the data structure into a HELML string
encoded_data = HELML.encode(data)
print(encoded_data)
# Decode the HELML string back into a data structure
decoded_data = HELML.decode(encoded_data)
encoded_data:
key1: value1
key2
:--: 1
:--: 2
:--: 3
key3
:nested_key: nested_value
Features
Encode and decode data arrays to/from HELML.
API
HELML.encode(arr, url_mode=False)
Encode a data structure (list, dict, or tuple) into a HELML string.
- arr: The input data structure to be encoded.
- url_mode (bool, optional): A boolean indicating if the URL mode should be used. Defaults to False.
Returns:
- str: The encoded HELML string.
HELML.decode(src_rows)
Decode a HELML formatted string or list of strings into a nested dictionary.
- src_rows: The HELML input as a string
Returns:
- dict: The decoded nested dictionary.
See also:
- plugin "HELML" for Visual Studio Code
- Try online HELML plugin in vscode.dev
Project details
Release history Release notifications | RSS feed
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.9.tar.gz
(7.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
HELML-0.1.9-py3-none-any.whl
(8.0 kB
view details)
File details
Details for the file HELML-0.1.9.tar.gz.
File metadata
- Download URL: HELML-0.1.9.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62d7bbc9ec329212295a5dceab22d32f644d669eeea9da750794e7d38f308947
|
|
| MD5 |
b9f1409f1461fb911b817775badca81f
|
|
| BLAKE2b-256 |
9b84ccbfcb7976a1d03e7288dc2e8c674a29acc4abe649c6a3a9ba7fd6fe0bae
|
File details
Details for the file HELML-0.1.9-py3-none-any.whl.
File metadata
- Download URL: HELML-0.1.9-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f035539973e3f14e4bcc89242988995a07c96ec76a63abf1f7493c132262d14
|
|
| MD5 |
70a66c36a1bf7b84946a6f1985bd1522
|
|
| BLAKE2b-256 |
1851e106e266d017f40a715fcfe56511d28789205520d92801e91c2609a045ab
|