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.5.9.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.5.9-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parser201-1.5.9.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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.5.9.tar.gz
Algorithm Hash digest
SHA256 963cada6eafcd0152ba0243c348db67a4c70bc5934c5fb33d69afa3ce424861d
MD5 9f7997d80ce5134a46f6829fb0ee133a
BLAKE2b-256 220167878e0ee6e0a79b36b10b8d844a76e4fb6ccbd2662eca5313e41e26cd1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: parser201-1.5.9-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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.5.9-py3-none-any.whl
Algorithm Hash digest
SHA256 328a7571534d667f51a63c083c6b893423cf5444b51c4d834aff152fee73920c
MD5 dce4a61404d847b1cd168f49b598a039
BLAKE2b-256 6f9e05fe73b70a06628841851a376ce9b6f8fe2177415108bd4fd40984e11da1

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