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-0.1.12.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

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

ransacklib-0.1.12-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file ransacklib-0.1.12.tar.gz.

File metadata

  • Download URL: ransacklib-0.1.12.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for ransacklib-0.1.12.tar.gz
Algorithm Hash digest
SHA256 fee6eaa0e2156ef6da0d8d641443819263452d273093b05cccf4ebc5a4052b10
MD5 b23826a11fcfb3b273e404cdf501c9ab
BLAKE2b-256 049a658e97bc9ac900c6603142e8d4dba43ef013fe80784e86ace978f70cf405

See more details on using hashes here.

File details

Details for the file ransacklib-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: ransacklib-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for ransacklib-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 ee5bf8e19ac6baf63480b6697f2bea7efda9315db35cd239b36923b2365ee1a0
MD5 b74cc2b1a89575f57772d2a6e142cc09
BLAKE2b-256 168702e61925219330fa23de4ca542f903449a87a33b5b28229ebf6d81728e9d

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