Features
The centerpiece of the parser201 module is the LogParser class. The class initializer takes a single line from an Apache access log file and extracts the individual fields into attributes within an object.
Installation
pip3 install parser201
Usage
The most common use-case for parser201 is importing individual lines from an Apache access log file and creating LogParser objects, like this:
from parser201 import LogParser
with open('access.log', 'r') as f:
for line in f:
lp = LogParser(line)
# Use lp as desired: add to List, Dictionary, etc.
Documentation
See: parser201 Documentation.
Metadata
Release files for parser201 1.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| parser201-1.6.0.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| parser201-1.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / parser201-1.6.0.tar.gz
| Download URL | parser201-1.6.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd597d0e57f211aa96093d41b99000383eb099b1b309689705af55858e5a93ad
|
|
BLAKE2b-256 checksum How to use checksums |
8c18d4f9614c5ab2a52d7f230c9d8384dd93257814daff51582a7509f8de3ca4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / parser201-1.6.0-py3-none-any.whl
| Download URL | parser201-1.6.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79f1591edc074c27fa993c7ae69de92f39e91fb1237f247cccc0f6be9404a0ae
|
|
BLAKE2b-256 checksum How to use checksums |
82e51ce71b2c0fc12a03531ec80d4e271c9cf765796ad8f102b449cec06d1d34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|