Skip to main content

License PyPI CircleCI

jsua, pronounced Joshua, is a streaming sax-like parser for JSON files. It’s special because it doesn’t require you to start at the beginning of a JSON stream. You can start anywhere, and it will eventually start spitting out events.

Usage

from jsua import SynchronizingParser
from io import StringIO

json = StringIO('{"hello": "world"}')
parser = SynchronizingParser(json)

for state, event, value in parser.parse():
    print(state, event, value)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jsua-0.0.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsua-0.0.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file jsua-0.0.2.tar.gz.

File metadata

  • Download URL: jsua-0.0.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jsua-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e340b07ac6a03802323e6e2006e4d663c91bad3e248f9760db302026ecd49439
MD5 0725f2c9712fa365fb0d61bf14133325
BLAKE2b-256 90e5988c4934ed86119ff65155303a7fd7265d464e86f182c9f8520e7c90002a

See more details on using hashes here.

File details

Details for the file jsua-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for jsua-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0fdbbd27bd40305ac49457fb14762e9b5d98780664870cdf802153a5e90f3f1e
MD5 42c07a74ef4005cfc72569c36acab300
BLAKE2b-256 57f9ceb0b29685fee54e9e0fdeb29a1815cf63e1395e43a2c5848f96b901bb67

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page