Skip to main content

Linden Lab Structured Data (LLSD) serialization library

Project description

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.

Project details


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.4.tar.gz (59.0 kB view details)

Uploaded Source

Built Distributions

llsd-1.2.4-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

llsd-1.2.4-py2-none-any.whl (22.9 kB view details)

Uploaded Python 2

File details

Details for the file llsd-1.2.4.tar.gz.

File metadata

  • Download URL: llsd-1.2.4.tar.gz
  • Upload date:
  • Size: 59.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for llsd-1.2.4.tar.gz
Algorithm Hash digest
SHA256 12a3c3742dce2e2e45912ac9e07142f74d205cba255bd0af6e645637af680c40
MD5 d61eab7eaf45cbcc4ce7d0c19c7cf631
BLAKE2b-256 17e60132c89a40bdd87d29bbf406a5a8c50efd63cbb698b5569dbebfddffb25d

See more details on using hashes here.

File details

Details for the file llsd-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: llsd-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for llsd-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 69ebe8ee52c18315ff9a7249ff9b0890a03dcf8bba1718a9ce47e2057faf38aa
MD5 a77b86d0d7840e2c3049bbeeccfb71f6
BLAKE2b-256 85619cee6739a249bfd81457213594a0cc19cbf7bb9df24d324af01004df4816

See more details on using hashes here.

File details

Details for the file llsd-1.2.4-py2-none-any.whl.

File metadata

  • Download URL: llsd-1.2.4-py2-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for llsd-1.2.4-py2-none-any.whl
Algorithm Hash digest
SHA256 3e58c0c98cf400ef59677e522d2a8742ceea2a703fbbe33ef514ebefa99c7a2b
MD5 688aa9aae1643919a6492a07e97c23b2
BLAKE2b-256 72bd9d5a3cdc1ef63e182e22e6eff2b9b5c3bc7fe3fcaedb505c81ead0a86f07

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page