Parse LOG
rust tail implementation to parse files
Features
- Load N lines or all lines
- search and ignore lines with certain strings
- parse lines and extract what you want
Usage
import tail
path_to_file = 'path/to/file/thefile.log'
number_of_lines = 3
#return 3 lines
tail.lines(path_to_file, number_of_lines)
#return all lines with the given search string
#or 'search1, search2'
tail.search_all(path_to_file, 'Search_String')
#return all lines with the given search string
#or 'search1, search2' also 'ignore1, ignore2' and so on
tail.isearch_all(path_to_file, 'Search_String', 'Ignore_String')
#search through all lines contains certain string condition
#or 'search1, search2' also 'ignore1, ignore2' and so on
tail.search_lines(path_to_file, "search", "ignore_string", number_of_lines)
#search through all lines and ignore lines that contains certain stuff
#or 'search1, search2' also 'ignore1, ignore2' and so on
tail.isearch_lines(path_to_file, 'Search_String', 'Ignore_string', number_of_lines)
#return the last line based on the search condition
#or 'search1, search2'
tail.search_last_line(path_to_file, 'Search_String')
#return last line based on search and ignore conditions
#or 'search1, search2' also 'ignore1, ignore2' and so on
tail.isearch_last_line(path_to_file, 'Search_String', 'Ignore_String')
#parse line by line
lines = tail.lines(path_to_file, number_of_lines)
[tail.parse_line(lines, "begin_delimiter", "end_delimiter") for line in lines]
Metadata
Release files for parse-log 1.0.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 | Provenance | Actions |
|---|---|---|---|---|
| parse_log-1.0.1.tar.gz | 4.4 kB | Without provenance | Details for parse_log-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| parse_log-1.0.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | Linux glibc 2.5+ x86-64 | Details for parse_log-1.0.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
Total release size: 192.3 kB
Release files / parse_log-1.0.1.tar.gz
| Download URL | parse_log-1.0.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae019afe8bc5147288ab93265333a58059d642dd79c3cde2a11757b226c368dd
|
|
BLAKE2b-256 checksum How to use checksums |
e3eb656d964ca66a80359baef7e3b6127a8b1a47410cee89c9451f91829d51cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.13.0-beta.7
|
Release files / parse_log-1.0.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | parse_log-1.0.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 187.9 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
fda754a30ed9616d0e07c28605c75c209746258e8bc7c575e83c179ace1459ce
|
|
BLAKE2b-256 checksum How to use checksums |
82f62892de1df01629a217bc21ded9b3a52150bed212940ed2d87fa1a923322e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.13.0-beta.7
|
Security for parse-log 1.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.