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.3.tar.gz
(41.9 kB
view details)
Built Distributions
llsd-1.2.3-py3-none-any.whl
(22.9 kB
view details)
llsd-1.2.3-py2-none-any.whl
(22.9 kB
view details)
File details
Details for the file llsd-1.2.3.tar.gz
.
File metadata
- Download URL: llsd-1.2.3.tar.gz
- Upload date:
- Size: 41.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a30dbf6e1ab92bad2d4052db3000b6e6ce3f32d9256ebc06b1b1b6c0e07a1980 |
|
MD5 | 281da0431bcdf23225a491aa26440647 |
|
BLAKE2b-256 | 704cbbb4e2ee18411509a9e412441139b34d28d7ec7be1d6cb3add42ef7ea503 |
File details
Details for the file llsd-1.2.3-py3-none-any.whl
.
File metadata
- Download URL: llsd-1.2.3-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d103e42c0d7f243b545d366fb141c66b4b3f3b8cba24392c1236a245f8301bfa |
|
MD5 | 7bef054dff8cd20fe5c89430734ef8df |
|
BLAKE2b-256 | d04fbbd4736f52c522e62c98ae4d28b1fd369af15a697e53e879f08f87196777 |
File details
Details for the file llsd-1.2.3-py2-none-any.whl
.
File metadata
- Download URL: llsd-1.2.3-py2-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aa0e82b046efb7868f55354f4125599227c264c6d50fd7efe6316fa3be043e4 |
|
MD5 | f41d6b269c3452571993f0064936eeff |
|
BLAKE2b-256 | 216fda10dfbf643e0b045c50ac7f92405928271625ee936cdfab427bf7089907 |