summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-logria.spec330
-rw-r--r--sources1
3 files changed, 332 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..e1541a0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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 Logo](/resources/branding/logria.svg)
+
+# 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
+
+![logria](/resources/screenshots/logria.png)
+
+### Interactive, live, editable grep
+
+![regex](/resources/screenshots/regex.png)
+
+### Live log message parsing
+
+![parser](/resources/screenshots/parser.png)
+
+### Live analytics/statistics tracking
+
+![analytics](/resources/screenshots/analytics.png)
+
+### 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 Logo](/resources/branding/logria.svg)
+
+# 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
+
+![logria](/resources/screenshots/logria.png)
+
+### Interactive, live, editable grep
+
+![regex](/resources/screenshots/regex.png)
+
+### Live log message parsing
+
+![parser](/resources/screenshots/parser.png)
+
+### Live analytics/statistics tracking
+
+![analytics](/resources/screenshots/analytics.png)
+
+### 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 Logo](/resources/branding/logria.svg)
+
+# 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
+
+![logria](/resources/screenshots/logria.png)
+
+### Interactive, live, editable grep
+
+![regex](/resources/screenshots/regex.png)
+
+### Live log message parsing
+
+![parser](/resources/screenshots/parser.png)
+
+### Live analytics/statistics tracking
+
+![analytics](/resources/screenshots/analytics.png)
+
+### 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
diff --git a/sources b/sources
new file mode 100644
index 0000000..9aed513
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1900035376ca996daa9c15ab77d4626e Logria-0.9.14.tar.gz