Linden Lab Structured Data (LLSD) serialization library
Project description
llsd
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
Release history Release notifications | RSS feed
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.1.0.tar.gz
(36.5 kB
view details)
Built Distributions
llsd-1.1.0-py3-none-any.whl
(19.2 kB
view details)
llsd-1.1.0-py2-none-any.whl
(19.2 kB
view details)
File details
Details for the file llsd-1.1.0.tar.gz
.
File metadata
- Download URL: llsd-1.1.0.tar.gz
- Upload date:
- Size: 36.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a6c00cd698440a2cb2bfe366e62f18a11795396a9219c143536ce81de7a9b4f |
|
MD5 | cbeeac1a088440218092e26d3c1862fe |
|
BLAKE2b-256 | ab1ac74bca54bb021f86439e5caa99206470e57f7ecaa6d4b1f4f4e7fbcbfa22 |
File details
Details for the file llsd-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: llsd-1.1.0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d129df3556312bfd21198f6b0977f9b14bdf837b0762165ace7ba13e6a10a231 |
|
MD5 | 7313951e99de8fa5516d6a412371c5cf |
|
BLAKE2b-256 | 27526338ea07ff6610ec65ea324ac1c6a3bb1d7af0aa2d7e7e58f44e7c273774 |
File details
Details for the file llsd-1.1.0-py2-none-any.whl
.
File metadata
- Download URL: llsd-1.1.0-py2-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f91c365cb9a25d0a94945ae44298ae7b72cc5f55e8271bd784d758eee72e4caf |
|
MD5 | 50eec48a39d0d78bda20975950c36c31 |
|
BLAKE2b-256 | 33a2faf686fede53a792f52a3bd4682b6339ef19c31481e2e3a02825c79dc810 |