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

Uploaded Source

Built Distributions

llsd-1.2.1-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

llsd-1.2.1-py2-none-any.whl (22.4 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: llsd-1.2.1.tar.gz
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for llsd-1.2.1.tar.gz
Algorithm Hash digest
SHA256 97c93a827ea98e8dfdbda75af923d89b708d9924ed6a31f68cf61b5096d5d3ea
MD5 18db41ebeca36cf3dcdf0061d3c9ce7f
BLAKE2b-256 45c626e1c53db5186bc4cd97f176fcd0f460ed5ed455c61954951c78dcd6f2e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llsd-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for llsd-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b58b8ec80de3c27da471de4189c6deed4698ba041927aef44cf6d5a462908907
MD5 30e4f7b98ca4b71a840e963997b7070a
BLAKE2b-256 87feb1684dd3143b22b3c696e30faf2eff7ca60246ec56bb9a1dda7e2cf22cd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llsd-1.2.1-py2-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for llsd-1.2.1-py2-none-any.whl
Algorithm Hash digest
SHA256 bba91439d71e6659ff813e5a541e04060ddee71c458af6242e1e24e8b1902a62
MD5 f31cedea60e8102d004154115d5cfb81
BLAKE2b-256 73632723de2e3c7fac718155ac2fabce4a9604321502224d4223f680e416ba76

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