Skip to main content

rustgrok

rustgrok is a python wrapper for the rust grok library written by Michael Nitchinger(https://github.com/daschl/grok).

Installation

pip install rustgrok

Usage

grok = rustgrok.Grok()
grok.compile("%{IP:client} %{WORD:method} %{URIPATHPARAM:request} %{NUMBER:bytes} %{NUMBER:duration}")
result = grok.match_against("55.3.244.1 GET /index.html 15824 0.043")
assert result.get("client") == "55.3.244.1"
assert result.get("method") == "GET"
assert result.get("request") == "/index.html"
assert result.get("bytes") == "15824"
assert result.get("duration") == "0.043"

Metadata

Release files for rustgrok 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rustgrok 0.1.1
File Size Uploaded Provenance Actions
rustgrok-0.1.1.tar.gz 6.0 kB Without provenance Details for rustgrok-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rustgrok 0.1.1
File Interpreter ABI Platform Actions
rustgrok-0.1.1-cp39-abi3-manylinux_2_34_x86_64.whl CPython 3.9 abi3 Linux glibc 2.34+ x86-64 Details for rustgrok-0.1.1-cp39-abi3-manylinux_2_34_x86_64.whl

Total release size: 437.6 kB

Release files / rustgrok-0.1.1.tar.gz

Download URL rustgrok-0.1.1.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
182b8666a28a13271cfe84c3401b7efdd50a590cb54a14b44939af275d0a385a
BLAKE2b-256 checksum
How to use checksums
f3e47df7a466012e459119474678dbf410804dddb2f2da07766a342b5109af00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.14.14

Release files / rustgrok-0.1.1-cp39-abi3-manylinux_2_34_x86_64.whl

Download URL rustgrok-0.1.1-cp39-abi3-manylinux_2_34_x86_64.whl
Size 431.6 kB
Tags CPython 3.9 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
7f9772f8680f66ddec908495730c52000b72c85de6f8aa35122716b5e089b49c
BLAKE2b-256 checksum
How to use checksums
0f888a055ec13161172f118998894382e6a2aa63069c5446917b6a0b99451d3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.14.14

Security for rustgrok 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page