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.8.tar.gz
(7.4 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.8-py3-none-any.whl
(7.9 kB
view details)
File details
Details for the file HELML-0.1.8.tar.gz.
File metadata
- Download URL: HELML-0.1.8.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b082b33ec55e1b77441629e682ec3562741b97b0383457101d0d83b085bf32a
|
|
| MD5 |
404320d5edfa3f615ee788d85324e9fd
|
|
| BLAKE2b-256 |
34026458c66124c3139fef579e8ef89b919654d49c146e261b210878b0d45323
|
File details
Details for the file HELML-0.1.8-py3-none-any.whl.
File metadata
- Download URL: HELML-0.1.8-py3-none-any.whl
- Upload date:
- Size: 7.9 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 |
04c5604decaf08cc5a4de0c53c59ac44587c1edad65f38eaf9dcac213b4b5049
|
|
| MD5 |
40c12d50f3af89b81b5041fedbb69664
|
|
| BLAKE2b-256 |
6d9bef741aee93a1879375931a9f3b11c8d3748eaeeb579ccb881011d0a10cf0
|