{"id":21392798,"url":"https://github.com/pvital/lopu","last_synced_at":"2025-03-16T13:44:11.046Z","repository":{"id":82962181,"uuid":"252451181","full_name":"pvital/lopu","owner":"pvital","description":"LOg Parsing Utility","archived":false,"fork":false,"pushed_at":"2020-08-24T20:53:24.000Z","size":15,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T01:29:44.605Z","etag":null,"topics":["hacktoberfest","logging","parser"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pvital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-02T12:38:18.000Z","updated_at":"2020-10-06T07:00:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"41e52166-5b34-4d24-940d-1df4b6b72517","html_url":"https://github.com/pvital/lopu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvital%2Flopu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvital%2Flopu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvital%2Flopu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvital%2Flopu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pvital","download_url":"https://codeload.github.com/pvital/lopu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878437,"owners_count":20362432,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","logging","parser"],"created_at":"2024-11-22T13:44:35.937Z","updated_at":"2025-03-16T13:44:11.040Z","avatar_url":"https://github.com/pvital.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lopu - LOg Parsing Utility\n\nlopu is a Python CLI application that helps you parse log files of various\nkinds.\n\n![testing](https://github.com/pvital/lopu/workflows/testing/badge.svg)\n[![Build Status](https://travis-ci.org/pvital/lopu.svg?branch=master)](https://travis-ci.org/pvital/lopu)\n\n```\nUsage: ./lopu.py [OPTION]... [FILE]\n    -h, --help          Print help\n    -f, --first=NUM     Print first NUM lines\n    -l, --last=NUM      Print last NUM lines\n    -t, --timestamps    Print lines that contain a timestamp in HH:MM:SS format\n    -i, --ipv4          Print lines that contain an IPv4 address, matching IPs\n                        are highlighted\n    -I, --ipv6          Print lines that contain an IPv6 address (standard\n                        notation), matching IPs are highlighted\n```\n\nIf FILE is omitted, standard input is used instead.\n\nIf multiple options are used at once, the result is the intersection of their\nresults.\n\n## Example supported usage:\n\n```\n./lopu.py -h\n\u003cprints help\u003e\n\ncat test_0.log | ./lopu.py --first 10\n\u003cprints the first 10 lines of test_0.log\u003e\n\n./lopu.py -l 5 test_1.log\n\u003cprints the last 5 lines of test_1.log\u003e\n\n./lopus.py --timestamps test_2.log\n\u003cprints any lines from test_2.log that contain a timestamp\u003e\n\n./lopu.py --ipv4 test_3.log\n\u003cprints any lines from test_3.log that contain an IPv4 address\u003e\n\n./lopu.py --ipv6 test_4.log\n\u003cprints any lines from test_4.log that contain an IPv6 address\u003e\n\n./lopu.py --ipv4 --last 50 test_5.log\n\u003cprints any of the last 50 lines from test_5.log that contain an IPv4 address\u003e\n```\n\n## Testcases\n\nTo execute our suite of unit tests, execute the following command:\n\n```\npython3 -m unittest tests/test_lopu.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvital%2Flopu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpvital%2Flopu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvital%2Flopu/lists"}