Skip to main content

llsd

codecov

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.

Metadata

Release files for llsd 1.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llsd 1.2.4
File Size Uploaded
llsd-1.2.4.tar.gz 59.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for llsd 1.2.4
File Interpreter ABI Platform
llsd-1.2.4-py3-none-any.whl Python 3 none any Details
llsd-1.2.4-py2-none-any.whl Python 2 none any Details

Total release size: 104.7 kB

Release files / llsd-1.2.4.tar.gz

Download URL llsd-1.2.4.tar.gz
Size 59.0 kB
Tags Source
SHA-256 checksum
How to use checksums
12a3c3742dce2e2e45912ac9e07142f74d205cba255bd0af6e645637af680c40
BLAKE2b-256 checksum
How to use checksums
17e60132c89a40bdd87d29bbf406a5a8c50efd63cbb698b5569dbebfddffb25d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / llsd-1.2.4-py3-none-any.whl

Download URL llsd-1.2.4-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69ebe8ee52c18315ff9a7249ff9b0890a03dcf8bba1718a9ce47e2057faf38aa
BLAKE2b-256 checksum
How to use checksums
85619cee6739a249bfd81457213594a0cc19cbf7bb9df24d324af01004df4816
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / llsd-1.2.4-py2-none-any.whl

Download URL llsd-1.2.4-py2-none-any.whl
Size 22.9 kB
Tags Python 2
SHA-256 checksum
How to use checksums
3e58c0c98cf400ef59677e522d2a8742ceea2a703fbbe33ef514ebefa99c7a2b
BLAKE2b-256 checksum
How to use checksums
72bd9d5a3cdc1ef63e182e22e6eff2b9b5c3bc7fe3fcaedb505c81ead0a86f07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page