Skip to main content

A modern, extensible language for manipulation with structured data

Project description

ransack is a modern, extensible language for manipulation with structured data.

Structured data — like JSON, YAML, TOML and domain-specific formats such as IDEA — form the backbone of many modern applications. These formats appear in configuration files, security logs, telemetry systems, and beyond.

ransack was designed to meet the increasing need for a robust and expressive language to query, filter, and inspect structured data. Whether used in Python code, as part of a log analysis tool, or as a compiler frontend for other systems, ransack provides a flexible foundation.

Why ransack?

ransack is a new implementation and improvement over existing libraries like Pynspect, which was widely used in security monitoring systems like NEMEA and Mentat. Compared to older tools, ransack:

  • supports user-defined variables

  • enables multi-argument functions

  • is extensible and modular

  • supports multiple backends (e.g., Python evaluation, SQL translation)

  • offers a clean internal architecture for future enhancements

Key features

  • a simple and expressive syntax for filters and conditions

  • support for context-aware variables and data scoping

  • predefined functions

  • support for IPv4/IPv6, datetimes, string and list manipulation

  • safe and maintainable implementation using Lark for parsing

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

ransacklib-1.1.0.dev0.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

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

ransacklib-1.1.0.dev0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file ransacklib-1.1.0.dev0.tar.gz.

File metadata

  • Download URL: ransacklib-1.1.0.dev0.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for ransacklib-1.1.0.dev0.tar.gz
Algorithm Hash digest
SHA256 cd47fef33475d8e6322e0a46717272a20dc6407e2fa2d6e66de059543084033f
MD5 95c47af3f9429e8ba301d3b9f670d9d2
BLAKE2b-256 df377f81cc7558437f64a37ddf751206198b2d1df73ccd0baecd64156bd6b759

See more details on using hashes here.

File details

Details for the file ransacklib-1.1.0.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for ransacklib-1.1.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 28b9af25bcd9f6d453c14e3307c47c8bae72a740095660bfca2ebf385f8dda61
MD5 3240200237faca4f9638d52e359e4080
BLAKE2b-256 b2c01d99f06415f60123e294c91f954eeb1f56f5a0a6efd9ce66de26a5281991

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