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'}

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

Uploaded Source

Built Distributions

llsd-1.0.0-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

llsd-1.0.0-py2-none-any.whl (18.2 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for llsd-1.0.0.tar.gz
Algorithm Hash digest
SHA256 410b431cb5972e610862998c276b762e460ef27f493c612aa780193bc72ed1a6
MD5 ccb4fe4770d14ca43e7af42036da8261
BLAKE2b-256 fdae999f95b1f045498765b5070ff67696187f780adde70d6f8c7fe1e36443a5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for llsd-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8dabfc11b10001e72ec99d93976fb07311c4d6d2eef1ff9272cb4c1adee9fab4
MD5 92c135220449089245f321d02917878a
BLAKE2b-256 0a7c409546dc70893f734331f1f6005d25b7f1427b1f622009555de1df58374c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for llsd-1.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 e37c76f46f35330145de2a0abd0263a16992cc1cfc8fa4287de3b12ba26c232f
MD5 d7309e17c9a4351623e0a48be477e3f1
BLAKE2b-256 0af24051e986e96b75e6fc7266c404f30b7daaca6abf4109158391031c899749

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