Support Library for MARDS data serialization
Project description
Data Serialization Based on Rolne Data Type
This is a Library of functions usefull for the interpretation of MARDS data serialization format.
This Library is dependent on the ‘rolne’ datatype class.
Usage
Simply import the library:
import MARDS
One can then convert a MARDS document into a rolne data type:
>>> my_doc = ''' >>> item zing >>> size 4 >>> color red >>> intensity 44% >>> color yellow >>> item womp >>> size 5 >>> color blue >>> item bam >>> item broom >>> size 7 >>> title "The "big" thing" >>> zoom_flag >>> system_title hello >>> ''' >>> result = MARDS.string_to_rolne(my_doc) >>> print result.get_list("items") ["zing", "womp", "bam", "broom"]
And, in reverse, one can create a MARDS document:
>>> my_doc = MARDS.rolne_to_string(result) >>> print my_doc x
For now, that is pretty much it. For manipulation of the rolne variable, please view the ‘rolne’ documentation.
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
MARDS-0.1.0.zip
(3.9 kB
view details)
File details
Details for the file MARDS-0.1.0.zip
.
File metadata
- Download URL: MARDS-0.1.0.zip
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca55ae840f5688b61ec8ab638d52a73c5cf8f7a1e29fc82625d2e895aff307c2 |
|
MD5 | 48613298875f36bcdd4f65d9893dba8d |
|
BLAKE2b-256 | f09e763d0d461a950d5e11f28d2a39a34089e14ff61520c029d404dc1c95d7e3 |