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

Uploaded Source

Built Distributions

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

Uploaded Python 3

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

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for llsd-1.2.0.tar.gz
Algorithm Hash digest
SHA256 5c373f9fd5c3be9665b64b4a79d0fb5d88269cdf59a3141ee770f033f8ffd8a2
MD5 38d2c38941d077a231a56715a3633d12
BLAKE2b-256 0a55aa858b38c6ac5e3561ec57ccf998bb80577386577c65819d4c88583174e8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for llsd-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df99d5ecb854e026a56a4ba95545c50b06ded2b79ffb288021b5f03f5a655bdd
MD5 64f8450d39cf76495ecbb8d739f8f63e
BLAKE2b-256 d616d68f1959b149d58b355503d784149013e542f75aeb55bce4bca9008fec32

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for llsd-1.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 d592c7ed20dd4966ba64a450eb002fb87354bf17e19b2568ea8bfcc76eafcb97
MD5 e5a78ccf53805d6f02048ee47d26ac56
BLAKE2b-256 3c8cddd2a4e4badfc07dcd42036ddeac9274348668377e8d9848afac4363c0a4

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