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.2.dev3.tar.gz (41.5 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 3

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

Uploaded Python 2

File details

Details for the file llsd-1.2.2.dev3.tar.gz.

File metadata

  • Download URL: llsd-1.2.2.dev3.tar.gz
  • Upload date:
  • Size: 41.5 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.2.dev3.tar.gz
Algorithm Hash digest
SHA256 ec464dadc98ba21d358731c1a31390cf59118c4fbee07dde240d957e78291ab5
MD5 538559d2a9bfc65e2bf126ea8a427597
BLAKE2b-256 cf683aaea47dba2aeb8ee44fb736d570dfaf9ecec88a9a9bb727436d2def7519

See more details on using hashes here.

File details

Details for the file llsd-1.2.2.dev3-py3-none-any.whl.

File metadata

  • Download URL: llsd-1.2.2.dev3-py3-none-any.whl
  • Upload date:
  • Size: 22.9 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.2.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 6fc7eefdd17c5e466d10051e90f91ae1065a025f38ef24010c09c65c6f3d4a58
MD5 49efbc1bbf6ce6cdc84617749cadecbd
BLAKE2b-256 55490546be8f2b5a78f111d6e184d53b9eeeedb6ecd51174f06dd591c552c98b

See more details on using hashes here.

File details

Details for the file llsd-1.2.2.dev3-py2-none-any.whl.

File metadata

  • Download URL: llsd-1.2.2.dev3-py2-none-any.whl
  • Upload date:
  • Size: 22.9 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.2.dev3-py2-none-any.whl
Algorithm Hash digest
SHA256 b3b239a6af178942378a5b4794292bd829d5c80f5aef305772d7e196e805559e
MD5 b818f27ebe098a5568e43e354cd5ff73
BLAKE2b-256 ec6f56972523c163bcd9245a19ae1158b82f8f2e20899b82853d940bf9543aa3

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