You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ransacklib

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ransacklib

A modern, extensible language for manipulation with structured data

0.1.11
pipPyPI
Maintainers
1

Welcome to ransack

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

Structured data --- like JSON <https://json.org>, YAML <https://yaml.org/>, TOML <https://toml.io/>_ and domain-specific formats such as IDEA <https://idea.cesnet.cz>_ --- 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 <https://nemea.liberouter.org/>_ and Mentat <https://mentat.cesnet.cz>_. 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 <https://lark-parser.readthedocs.io/en/stable/>_ for parsing

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.