diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 03:52:54 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 03:52:54 +0000 |
| commit | 9a2acaad6583aa4e239c58768d3f8a40e3874d9c (patch) | |
| tree | f983d6906b6285822b5a043af1863022b7614d4a | |
| parent | abd86bc291ccc96d10824a669d0e224569da33b4 (diff) | |
automatic import of python-logria
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-logria.spec | 330 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 332 insertions, 0 deletions
@@ -0,0 +1 @@ +/Logria-0.9.14.tar.gz diff --git a/python-logria.spec b/python-logria.spec new file mode 100644 index 0000000..fe4ff2a --- /dev/null +++ b/python-logria.spec @@ -0,0 +1,330 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Logria +Version: 0.9.14 +Release: 1 +Summary: A powerful CLI tool that puts log analytics at your fingertips. +License: GNU General Public License v3 or later (GPLv3+) +URL: https://github.com/ReagentX/Logria-py +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0f/a1/a7ff1fd8aaddb631b077c87f8b707da2ba97496cf9c5d68dd33232245d4f/Logria-0.9.14.tar.gz +BuildArch: noarch + + +%description + + +# Logria Python Proof of Concept + +A powerful CLI tool that puts log analytics at your fingertips. This is the Python Proof of Concept repository; the [main version](https://github.com/ReagentX/Logria/) is written in Rust. + +## tl;dr + +- Live filtering of data from other processes, replacing `grep` +- Use shell commands or files as input, save sessions and come back later +- Replace regex/filter without killing the process or losing the stream's history +- Parse logs using user-defined rules, apply analytics methods on top +- Pure Python, fully type hinted, zero dependencies + +## Installation + +There are several options to install this app. + +### Normal Usage + +`pip install logria` + +### Development + +See [Advanced Installation](docs/README.md#advanced-installation). + +## Usage + +There are a few main ways to invoke Logria: + +- Directly: + - `logria` + - Opens to the setup screen +- With args: + - `logria -e 'tail -f log.txt'` + - Opens a pipe to `tail -f log.txt` and skips setup + - `logria -h` will show the help page with all possible options + +For more details, see [Sample Usage Session](docs/README.md#sample-usage-session). + +## Key Commands + +| Key | Command | +|--|--| +| `:` | [command mode](docs/commands.md) | +| `/` | regex search | +| `h` | if regex active, toggle highlighting of matches | +| `i` | toggle insert mode (default off) | +| `s` | swap reading `stdin` and `stdout` | +| `p` | activate parser | +| `a` | toggle analytics mode when parser is active | +| `z` | deactivate parser | +| ↑ | scroll buffer up one line | +| ↓ | scroll buffer down one line | +| → | skip and stick to end of buffer | +| ← | skip and stick to beginning of buffer | + +## Features + +Here are some of the ways you can leverage Logria: + +### Live stream of log data + + + +### Interactive, live, editable grep + + + +### Live log message parsing + + + +### Live analytics/statistics tracking + + + +### User-defined saved sessions + +See [session](/docs/sessions.md) docs. + +### User-defined saved log parsing methods + +See [patterns](/docs/patterns.md) docs. + + + + +%package -n python3-Logria +Summary: A powerful CLI tool that puts log analytics at your fingertips. +Provides: python-Logria +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Logria + + +# Logria Python Proof of Concept + +A powerful CLI tool that puts log analytics at your fingertips. This is the Python Proof of Concept repository; the [main version](https://github.com/ReagentX/Logria/) is written in Rust. + +## tl;dr + +- Live filtering of data from other processes, replacing `grep` +- Use shell commands or files as input, save sessions and come back later +- Replace regex/filter without killing the process or losing the stream's history +- Parse logs using user-defined rules, apply analytics methods on top +- Pure Python, fully type hinted, zero dependencies + +## Installation + +There are several options to install this app. + +### Normal Usage + +`pip install logria` + +### Development + +See [Advanced Installation](docs/README.md#advanced-installation). + +## Usage + +There are a few main ways to invoke Logria: + +- Directly: + - `logria` + - Opens to the setup screen +- With args: + - `logria -e 'tail -f log.txt'` + - Opens a pipe to `tail -f log.txt` and skips setup + - `logria -h` will show the help page with all possible options + +For more details, see [Sample Usage Session](docs/README.md#sample-usage-session). + +## Key Commands + +| Key | Command | +|--|--| +| `:` | [command mode](docs/commands.md) | +| `/` | regex search | +| `h` | if regex active, toggle highlighting of matches | +| `i` | toggle insert mode (default off) | +| `s` | swap reading `stdin` and `stdout` | +| `p` | activate parser | +| `a` | toggle analytics mode when parser is active | +| `z` | deactivate parser | +| ↑ | scroll buffer up one line | +| ↓ | scroll buffer down one line | +| → | skip and stick to end of buffer | +| ← | skip and stick to beginning of buffer | + +## Features + +Here are some of the ways you can leverage Logria: + +### Live stream of log data + + + +### Interactive, live, editable grep + + + +### Live log message parsing + + + +### Live analytics/statistics tracking + + + +### User-defined saved sessions + +See [session](/docs/sessions.md) docs. + +### User-defined saved log parsing methods + +See [patterns](/docs/patterns.md) docs. + + + + +%package help +Summary: Development documents and examples for Logria +Provides: python3-Logria-doc +%description help + + +# Logria Python Proof of Concept + +A powerful CLI tool that puts log analytics at your fingertips. This is the Python Proof of Concept repository; the [main version](https://github.com/ReagentX/Logria/) is written in Rust. + +## tl;dr + +- Live filtering of data from other processes, replacing `grep` +- Use shell commands or files as input, save sessions and come back later +- Replace regex/filter without killing the process or losing the stream's history +- Parse logs using user-defined rules, apply analytics methods on top +- Pure Python, fully type hinted, zero dependencies + +## Installation + +There are several options to install this app. + +### Normal Usage + +`pip install logria` + +### Development + +See [Advanced Installation](docs/README.md#advanced-installation). + +## Usage + +There are a few main ways to invoke Logria: + +- Directly: + - `logria` + - Opens to the setup screen +- With args: + - `logria -e 'tail -f log.txt'` + - Opens a pipe to `tail -f log.txt` and skips setup + - `logria -h` will show the help page with all possible options + +For more details, see [Sample Usage Session](docs/README.md#sample-usage-session). + +## Key Commands + +| Key | Command | +|--|--| +| `:` | [command mode](docs/commands.md) | +| `/` | regex search | +| `h` | if regex active, toggle highlighting of matches | +| `i` | toggle insert mode (default off) | +| `s` | swap reading `stdin` and `stdout` | +| `p` | activate parser | +| `a` | toggle analytics mode when parser is active | +| `z` | deactivate parser | +| ↑ | scroll buffer up one line | +| ↓ | scroll buffer down one line | +| → | skip and stick to end of buffer | +| ← | skip and stick to beginning of buffer | + +## Features + +Here are some of the ways you can leverage Logria: + +### Live stream of log data + + + +### Interactive, live, editable grep + + + +### Live log message parsing + + + +### Live analytics/statistics tracking + + + +### User-defined saved sessions + +See [session](/docs/sessions.md) docs. + +### User-defined saved log parsing methods + +See [patterns](/docs/patterns.md) docs. + + + + +%prep +%autosetup -n Logria-0.9.14 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-Logria -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.14-1 +- Package Spec generated @@ -0,0 +1 @@ +1900035376ca996daa9c15ab77d4626e Logria-0.9.14.tar.gz |
