Skip to main content

A high-performance JSON parser with AI-driven optimizations

Project description

JsonGeekAI

PyPI version Python Versions Downloads Tests Coverage Status License

A high-performance JSON parser with AI-driven optimizations and multi-format support.

Features

  • SIMD Optimizations: Utilizes SIMD instructions for faster parsing when available
  • Multi-format Support: Handles JSON, JSON5, YAML, MessagePack, and JSONL formats
  • Memory Efficient: Smart memory management with configurable limits
  • Format Auto-detection: Automatically detects and handles different formats
  • Rich Error Handling: Detailed error messages with context and documentation
  • Compression Support: Built-in compression for JSONL format
  • Extensible: Easy to add new formats and optimizations
  • Well Tested: Comprehensive test suite with performance benchmarks

Installation

pip install jsongeekai

Quick Start

from jsongeekai import JsonGeekAI

# Create parser
parser = JsonGeekAI()

# Parse JSON
data = parser.parse('{"name": "JsonGeekAI", "version": "0.2.0"}')

# Use different formats
from jsongeekai.formats import FormatHandler

handler = FormatHandler()

# Auto-detect and parse
data = handler.parse(content)

# Specific format
data = handler.parse_json5(content)
data = handler.parse_yaml(content)
data = handler.parse_msgpack(content)

# With memory limits
parser = JsonGeekAI(memory_limit=1024*1024)  # 1MB limit

Version Compatibility

JsonGeekAI requires Python 3.8 or later and is tested on:

  • Python 3.8
  • Python 3.9
  • Python 3.10
  • Python 3.11
  • Python 3.12

Performance

JsonGeekAI is designed for performance:

  • SIMD acceleration when available
  • Efficient memory usage
  • Format-specific optimizations
  • Streaming support for large files

Documentation

Full documentation is available at jsongeekai.readthedocs.io

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

JsonGeekAI is released under the MIT License. See the LICENSE file for details.

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

jsongeekai-0.2.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

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

jsongeekai-0.2.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file jsongeekai-0.2.0.tar.gz.

File metadata

  • Download URL: jsongeekai-0.2.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for jsongeekai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 13f163d05bd84169a89986e434cc9331d46016c8f071afe3e3712fab36bba045
MD5 b0c1a7528838404ede3b1e79ce2cde35
BLAKE2b-256 2a3abc325ae5aefee25fadb06135f49fca3f0ef155c749e60dd4874b48e4ae8a

See more details on using hashes here.

File details

Details for the file jsongeekai-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: jsongeekai-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for jsongeekai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fdb71ee1899ba87eed3e362c7730c27cf734d9d7cc44ce2b7ac00fdfda46f2ff
MD5 2deb5c757ffdb839b0bc46a4fbe56dd2
BLAKE2b-256 cd075112832ca97756c0ca891ab6da98c76a620f8a74454b4fd0e800e9b98f3e

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