This is a really simple Python parser for the journald binary export format.
It can parse journal entries from a file-like object or an iterable, and yields each entry as a dict containing all attributes of the journal entry:
from __future__ import print_function # if using Python 2.x
from journalparse import journalparse
with open("some_file", "rb") as fp:
for entry in journalparse(fp):
print(entry)
# ... or ...
data = b"_MESSAGE=blah"
for entry in journalparse(data):
print(entry)
There are no requirements other than Python. Tested on Python 3.5 but should work on Python 2.6+ and 3.2+.
Release files for journalparse 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| journalparse-0.1.1.tar.gz | 2.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| journalparse-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 5.9 kB
Release files / journalparse-0.1.1.tar.gz
| Download URL | journalparse-0.1.1.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60f13d500294583651adb91bd1f9baaeb2d6704ffea03d0b9b30daabc39dccad
|
|
BLAKE2b-256 checksum How to use checksums |
30aff78d748e60a7e95afc11f0474d2cb5fd6f66cdf4e3f4cbc91328df2f563b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / journalparse-0.1.1-py2.py3-none-any.whl
| Download URL | journalparse-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a96de8ecf61ac3dacb1be4600c9d3e05c29005d9dfca5111c13a9a76668bb2d7
|
|
BLAKE2b-256 checksum How to use checksums |
d4f7c18b46a81b194371b7830c8eb5aef90e6df9acaf6e5fadb01b5c60716698
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |