Skip to main content

MiniMindsLab JSON Pointer

A tiny, deterministic, standard-library-only implementation of core RFC 6901 JSON Pointer behavior for Python dict/list structures.

Features

  • Parse JSON Pointer strings into decoded tokens
  • Validate pointer syntax
  • Resolve values from nested dict/list objects
  • Check pointer existence
  • Return updated copies via immutable-style set_value

Installation

This package is designed as a lightweight library with no runtime dependencies.

Quick Start

from minimindslab_json_pointer import parse_pointer, get_value, has_pointer, set_value

parse_pointer('/a~1b/c~0d')
# ['a/b', 'c~d']

get_value({'a': [{'b': 3}]}, '/a/0/b')
# 3

has_pointer({'x': 1}, '/x')
# True

updated = set_value({}, '/a/b', 2)
# {'a': {'b': 2}}

API

  • parse_pointer(pointer: str) -> list[str]
  • is_valid_pointer(pointer: str) -> bool
  • get_value(document, pointer: str)
  • has_pointer(document, pointer: str) -> bool
  • set_value(document, pointer: str, value)

Notes

  • Empty pointer "" references the entire document.
  • Pointer must start with / unless empty.
  • Escape handling follows RFC 6901 (~1 => /, ~0 => ~).

Metadata

Release files for minimindslab-json-pointer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minimindslab-json-pointer 0.1.0
File Size Uploaded Provenance
minimindslab_json_pointer-0.1.0.tar.gz 4.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for minimindslab-json-pointer 0.1.0
File Interpreter ABI Platform
minimindslab_json_pointer-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / minimindslab_json_pointer-0.1.0.tar.gz

Download URL minimindslab_json_pointer-0.1.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d7419531662889dcd36742b46d3f8408574e07a09249b02824c3f3de64691c15
BLAKE2b-256 checksum
How to use checksums
272afd1e7b89793360bb8053fa6281091c6872eee344ff378dcc6e5791e74330
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via n8n

Release files / minimindslab_json_pointer-0.1.0-py3-none-any.whl

Download URL minimindslab_json_pointer-0.1.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1eb8ded655f27f808419a9076e9af0f0447e2df38acaa96e61f82ddf2c0ccfde
BLAKE2b-256 checksum
How to use checksums
66e852a0ad34531b3d3888314b1396ea50338c9f9fc3e712e85f7e86e6bab209
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via n8n

Security for minimindslab-json-pointer 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page