Skip to main content

Converts ReStructuredText into JSON

Project description

Converts ReStructuredText into JSON.

  • Sections are JSON list dictionary elements

  • Section Headers become list titles.

  • Field definitions become key/value representations

Example

Input

Python
------
:age: 22
:typing: dynamic, strong

Java
----
:age: 18
:typing: static, strong

Output

[
    {"title": "Python", "age": 22, "typing": "dynamic, strong"}
    {"title": "Java", "age": 18, "typing": "static, strong"}
]

Usage

$ git clone git@github.com:pydanny/simplicity.git
$ cd simplicity/
$ python simplicity.py sample.rst
<type 'str'>
[{"age": 22, "typing": "dynamic, strong", "title": "Python"},
    {"age": 18, "typing": "static, strong", "title": "Java "},
    {"url": "https://github.com", "description": "Build software better, together.",
        "title": "GitHub"}]

0.5.0 (2013-07-16)

  • API Change for easier-to-navigate result data

0.4.2 (2013-07-15)

  • Fix console script entry point

0.4.1 (2013-07-15)

  • History update

0.4.0 (2013-07-15)

  • added type converter

0.3.0 (2013-07-15)

  • Accepts command-line argument

0.2.0 (2013-07-15)

  • Working prototype

0.1.0 (2013-07-15)

  • Pain point

  • Inspiration

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

simplicity-0.5.0.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file simplicity-0.5.0.tar.gz.

File metadata

  • Download URL: simplicity-0.5.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for simplicity-0.5.0.tar.gz
Algorithm Hash digest
SHA256 a7218cc28469dbd44ec71971a6759cca2eb2cbde6ac0e2c4aaf41825a1b7198f
MD5 3e9a3d0093dd91824ca0e4a640b9f501
BLAKE2b-256 259ccac4ae97127cc0d16e27ba40214bfbd17778d3f92cafcc797e17f844838d

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