Linden Lab Structured Data (LLSD) serialization library
Project description
llsd
Official python serialization library for Linden Lab Structured Data (LLSD).
Use
Install llsd with pip:
pip install llsd
Use llsd to parse/format your data:
import llsd
data = {"foo": "bar"}
# Format
data_xml = llsd.format_xml(data)
# >>> '<?xml version="1.0" ?><llsd><map><key>foo</key><string>bar</string></map></llsd>'
data_notation = llsd.format_notation(data)
# >>> "{'foo':'bar'}"
data_binary = llsd.format_binary(data)
# >>> '<?llsd/binary?>\n{\x00\x00\x00\x01k\x00\x00\x00\x03foos\x00\x00\x00\x03bar}'
# Parse
data = llsd.parse(data_xml)
# >>> {'foo: 'bar'}
data = llsd.parse(data_notation)
# >>> {'foo: 'bar'}
data = llsd.parse(data_binary)
# >>> {'foo: 'bar'}
Develop
Requirements:
Set up a venv and install development dependencies:
python3 -m venv .venv
. .venv/bin/activate
pip install .[dev]
Run tests:
pytest
Benchmarks
Benchmarks from commits to main
are published here.
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
llsd-1.2.2a2.tar.gz
(41.4 kB
view details)
Built Distributions
llsd-1.2.2a2-py3-none-any.whl
(22.6 kB
view details)
llsd-1.2.2a2-py2-none-any.whl
(22.6 kB
view details)
File details
Details for the file llsd-1.2.2a2.tar.gz
.
File metadata
- Download URL: llsd-1.2.2a2.tar.gz
- Upload date:
- Size: 41.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f79a1a3976d43798ac7f252ec7519d22992914bcfae30577c54d121f66f276c |
|
MD5 | d17a4167e60f21fa7444d8a59e79fc59 |
|
BLAKE2b-256 | fe24884d4c7d46aac2e64fc0a2e64b56977d048165ead822f665249fba029827 |
File details
Details for the file llsd-1.2.2a2-py3-none-any.whl
.
File metadata
- Download URL: llsd-1.2.2a2-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c600a2a48e75d90ce25a1f3493f66d4e639d0314ca955022348238a20ff0486 |
|
MD5 | 0273e3a4ae4f6fb9e61af8695ef65e32 |
|
BLAKE2b-256 | 864a382b4092fdbb18fe9a1afa67639264c964c448ba9364df0b31e282c507ae |
File details
Details for the file llsd-1.2.2a2-py2-none-any.whl
.
File metadata
- Download URL: llsd-1.2.2a2-py2-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3544416b0fb2cdca60d9fe33aeec573f187d6fea85ad9454916136bbba78dbe9 |
|
MD5 | b08d2c9232c0733acf4aef33771261f0 |
|
BLAKE2b-256 | a3e6c24afcf011ca07329cf44a1d187c08b6cab58bfe9e7ea589f3cc82e02c26 |