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-2.0.0a1.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-2.0.0a1-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file ransacklib-2.0.0a1.tar.gz.

File metadata

  • Download URL: ransacklib-2.0.0a1.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-2.0.0a1.tar.gz
Algorithm Hash digest
SHA256 aaab908a776267e903d3169d44e810f4227e6118b6e8f5a4debf83099370f12c
MD5 1595f90e706468b06002c2174e7f84f7
BLAKE2b-256 bb5361660259d8986476dad151b743961235f6da5664767d07eb29b00de18976

See more details on using hashes here.

File details

Details for the file ransacklib-2.0.0a1-py3-none-any.whl.

File metadata

  • Download URL: ransacklib-2.0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for ransacklib-2.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 90b1e09da84a486b89a73c740bd8d3f546005ff72d8b022028af29893bd9cd30
MD5 19baec57c84b12683888a5d25ebc9621
BLAKE2b-256 cba306b14fdb93b1f4a85120eae3f2bbfcb474b096fa0c1a35e956ecc5799ce1

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