This release is a pre-release and may not be stable for production use.
log-surgeon-ffi
Python bindings for log-surgeon, a high-performance library for parsing unstructured logs into structured data.
This package ships with type stubs, so IDEs like PyCharm and VS Code provide autocompletion, parameter hints, and inline documentation out of the box.
Installation
pip install log-surgeon-ffi
Quick start
from log_surgeon import Parser
parser = Parser()
parser.add_variable_pattern(
"timestamp",
r"(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})",
)
parser.add_variable_pattern("level", r"(?<level>INFO|WARN|ERROR)")
parser.compile()
parser.set_input_stream("10:30:00 INFO starting up")
while True:
event = parser.next_log_event()
if event is None:
break
print(f"log type: {event.log_type}")
print(f"message: {event.message}")
for var in event.variables:
print(f" {var.name}: {var.text}")
for name, values in var.captures.items():
print(f" {name}: {values}")
Output:
log type: %timestamp% %level% starting up
message: 10:30:00 INFO starting up
timestamp: 10:30:00
hours: ['10']
minutes: ['30']
seconds: ['00']
level: INFO
level: ['INFO']
Development
To develop the FFI bindings, refer to the log-surgeon contributing guide.
Metadata
Release files for log-surgeon-ffi 0.1.0b11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 18.1 MB
Release files / log_surgeon_ffi-0.1.0b11-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 956.3 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
7048bb71c9dc624de6a1e2e72269c77cbd50d82783c3b74c6b4fffd561078c5f
|
|
BLAKE2b-256 checksum How to use checksums |
1a330a124b13acddd9ec1f60314e818587cf26c0ad8151aa0a594f56aac1fd72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 934.8 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
4c3cb85a9029846cfe77e02261096581101ec2cc75e18fd48b59326e5a37f378
|
|
BLAKE2b-256 checksum How to use checksums |
0c3db94f3306c80c119a3a7a21368a0aeffe2791fb272e5bb280a97743245776
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.13 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a11d45999058cb006b33dc876da8a50160f01fe8285ad7d68ec7a13d966a436e
|
|
BLAKE2b-256 checksum How to use checksums |
b3f738aa814b03226236030ec6c535e295b58e868cd31b2520d8a0d78a227736
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 956.7 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
f2e751193894c3bee5f57814d59abb58323384c14b1ba0f59f75b1d0182b22c5
|
|
BLAKE2b-256 checksum How to use checksums |
d3838c5bd4c2052c83e11b2e5dac03223220bbcb5e2f1e33e364bf30165b16ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 934.9 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
3142b92182704af70dc72aa376243968bc96768a21c79db95406af94b00a36c0
|
|
BLAKE2b-256 checksum How to use checksums |
ea31400f1b546b342bd6e06b63ba88aba39534ec205b37c108fd78cdb575a862
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.12 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
12bdd0b2d8c6c8eee4ee29e8f2b7310d059be834688763e5ccbabe0f46831b1d
|
|
BLAKE2b-256 checksum How to use checksums |
e795f0b8b5287f12ab197c017ee636f1fc30ebce2ac037c34b35f1ed9f2a22ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 961.2 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
aabc5edb5be6009d3ca3d5a63888eebd48d92310a7f9be0627ff70b7dd268cec
|
|
BLAKE2b-256 checksum How to use checksums |
3aecb39376851f7ac8d8db5337650d6141489c5166696d214f16f5ff41ce370a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 941.9 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
50682e9528feef2101a70bf34cb864393b68b9778f22927d0d613779718f5174
|
|
BLAKE2b-256 checksum How to use checksums |
b390108a1c8fb77be00a2e2018155ff64be74ae68d9b92687c183e143a953861
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.11 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0f8b5cf5a9d94441b81387764718ae03c38e619786f2564074387705e2331246
|
|
BLAKE2b-256 checksum How to use checksums |
15e945c0cbe2ff20de9769a04d7bd4d78075236f9b610d9b091dd8756dd4c4e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 962.0 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
86fdb222f5d85654e46d96db6fcb9d99f91fb5f2afc9c8c03e3114c4132dd738
|
|
BLAKE2b-256 checksum How to use checksums |
94ad896e7d4c855297279463acd520ec5c79bf703711f3b4c018339408638f72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 940.9 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
b21bc4ae93c17a0f9bd10695c56e3780f05f966d090c5f1cf3eb845425aecfa0
|
|
BLAKE2b-256 checksum How to use checksums |
bef1c309038c3f9a9b6a6aad9caa1cafb82dad07e18ec7aabfd4c49d5bbbf962
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.10 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d2c3a82c8ba6bf4333122bc11ef8a6879237a118d3e7360b9eb7fc5eda429b2f
|
|
BLAKE2b-256 checksum How to use checksums |
ef92934dee8f2bf38aeda0885d30b87269f70550df6bd0c37db6753bdeadbb79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 964.9 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
1ea72b8ea34fd35b078b2c3a11c312983691a887c7133d7bfa2ca40ec0b4d35c
|
|
BLAKE2b-256 checksum How to use checksums |
ccca22a9f1a87196c5b817cebee2f4f7797090a48b08167aa0d46d46c2da4b58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 942.8 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
5e99effc6095a891a78ab515cdb4ab2665fd3c64dbb20803ccfc8729a07ad51c
|
|
BLAKE2b-256 checksum How to use checksums |
789aa493f8e9b9da88410db0ca00dcf98200e1978ebfd4fee02f23ba535a9f92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / log_surgeon_ffi-0.1.0b11-cp39-cp39-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
| Download URL | log_surgeon_ffi-0.1.0b11-cp39-cp39-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.9 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cd3a632ff812ccc2433dc7ec716c49b45bfe99dd96d611350ced83e65d3eb140
|
|
BLAKE2b-256 checksum How to use checksums |
110857fb844a842bc00aba1adf04413f412150e72263dbdd6c77389216430b24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logSecurity for log-surgeon-ffi 0.1.0b11
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.
Full provenance
All 15 files in this release have been uploaded with provenance metadata.
Attestation for log_surgeon_ffi-0.1.0b11-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logA 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.