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.dev4.tar.gz (28.9 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.dev4-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ransacklib-1.1.0.dev4.tar.gz
  • Upload date:
  • Size: 28.9 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.dev4.tar.gz
Algorithm Hash digest
SHA256 ea0a80cf065ab4abdf4843ff7f3fc970d589c3e1d253c09e9d663fb171d2e4b4
MD5 bfa5aeb95997b6f57cef8c7876ff93dd
BLAKE2b-256 fc8082344e484d624ff8afea06801a5fd9e488795f8b53c9bdc71c7032819105

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ransacklib-1.1.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 3b02aa45b24989d02711559ae4f1af2366237cf1d831f1d0534f0ee2b081f0fd
MD5 b86e01a0f41976836783f9122199ce27
BLAKE2b-256 6755b36662b8bf8fb5dfbf570e3b9465463a9d3c97131e1eead40e06dd7c5241

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