Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

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.dev15.tar.gz (38.4 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.dev15-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ransacklib-1.1.0.dev15.tar.gz
  • Upload date:
  • Size: 38.4 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.dev15.tar.gz
Algorithm Hash digest
SHA256 71da7df521791de763d0c6455e6859bc57d70c64176806fc2930b42233eb5c18
MD5 d8a306e440c57edcfe3e9f226058e475
BLAKE2b-256 dfcbef2de9eaf1b26567c02635b994929e1c9a678c00a689b434eef4966b479a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ransacklib-1.1.0.dev15-py3-none-any.whl
Algorithm Hash digest
SHA256 f214b1c22606128701f41a7a80afcd0575a8e5f7a48f4f601654d95d88df9e88
MD5 3b6bf645fdb02408c97134f8177fc4bc
BLAKE2b-256 346f6628786eec388771940966aa1f6fc404b487344cdb66f15fdecb641d2e32

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 Sentry Error logging StatusPage Status page