No project description provided
Project description
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"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rustgrok-0.1.1.tar.gz
(6.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rustgrok-0.1.1.tar.gz.
File metadata
- Download URL: rustgrok-0.1.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
182b8666a28a13271cfe84c3401b7efdd50a590cb54a14b44939af275d0a385a
|
|
| MD5 |
ad34560beafcfec1ccb821608454fa73
|
|
| BLAKE2b-256 |
f3e47df7a466012e459119474678dbf410804dddb2f2da07766a342b5109af00
|
File details
Details for the file rustgrok-0.1.1-cp39-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: rustgrok-0.1.1-cp39-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 431.6 kB
- Tags: CPython 3.9+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f9772f8680f66ddec908495730c52000b72c85de6f8aa35122716b5e089b49c
|
|
| MD5 |
ecbdb2c04d5432f4e20eb1c20af9b7ce
|
|
| BLAKE2b-256 |
0f888a055ec13161172f118998894382e6a2aa63069c5446917b6a0b99451d3b
|