Skip to main content

A library for walking JSON-like trees, parsing and validating them.

Project description

The Forest Walker

Python modules for parsing JSON, TOML, YAML, and similar formats produce simple tree structures composed of numbers, strings, Booleans, arrays, and dictionaries. These structures are then parsed for the second time to produce more Pythonic data structures. This usually involves validation of some kind.

We firmly believe that parsing and validation should not be separate steps: structure of data should have a single source of truth (doing otherwise opens door to security issues). Also, existing formal descriptions of syntax (e.g., JSON schema) are too weak for many purposes and unwieldy for others.

Enters the forestwalker. A Python module that makes it easy to traverse trees, parse values while checking types, and report invalid data with their precise location in the tree.

License

The Forest Walker was written by Martin Mareš mj@ucw.cz. It can be freely used and distributed under the MIT License.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

forestwalker-0.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

forestwalker-0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file forestwalker-0.1.tar.gz.

File metadata

  • Download URL: forestwalker-0.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for forestwalker-0.1.tar.gz
Algorithm Hash digest
SHA256 07962a82dc27e8a233c5411edb232d58ad10f4c5b9474bfe74c7826fcbe4dd2c
MD5 8d5ab8dd39904508466f6530ee7b7918
BLAKE2b-256 a4acdf81e6c3a291093bc2175dc93877694df7f3e198eacef9d22d5eec181964

See more details on using hashes here.

File details

Details for the file forestwalker-0.1-py3-none-any.whl.

File metadata

  • Download URL: forestwalker-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for forestwalker-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a574f368f981700804be698ff17aab87809f27b2f7ed0ae18603a9f3202a7e9
MD5 3223682a71a9ca8edeeccb9246c964a2
BLAKE2b-256 dd386bfbd76623598d7d7f8ef1726d56d5efc3896e06918ab016082feb36ffd6

See more details on using hashes here.

Supported by

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