Skip to main content

Extract individual fields from lines in Apache access logs

Project description

GitHub PyPI PyPI - Status GitHub last commit GitHub issues PyPI - Downloads GitHub repo size PyPI - Python Version


Dinobox Logo

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parser201-1.6.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parser201-1.6.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file parser201-1.6.0.tar.gz.

File metadata

  • Download URL: parser201-1.6.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for parser201-1.6.0.tar.gz
Algorithm Hash digest
SHA256 cd597d0e57f211aa96093d41b99000383eb099b1b309689705af55858e5a93ad
MD5 3f3e7c666c6815fb940b6b6f0976c971
BLAKE2b-256 8c18d4f9614c5ab2a52d7f230c9d8384dd93257814daff51582a7509f8de3ca4

See more details on using hashes here.

File details

Details for the file parser201-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: parser201-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for parser201-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79f1591edc074c27fa993c7ae69de92f39e91fb1237f247cccc0f6be9404a0ae
MD5 ff53b6657f9a1bf3a61a367a74b58611
BLAKE2b-256 82e51ce71b2c0fc12a03531ec80d4e271c9cf765796ad8f102b449cec06d1d34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page