An OVH Logs Data Platform python client. Logs Data Platform is a log management platform based on OpenSearch.
- Python 89.1%
- Makefile 10.9%
|
|
||
|---|---|---|
| .gitignore | ||
| .gitlab-ci.yml | ||
| client.sample.py | ||
| ldpy.py | ||
| LICENSE.md | ||
| Makefile | ||
| pyproject.toml | ||
| README.md | ||
| requirements-dev.txt | ||
| requirements.txt | ||
| tests_ldpy.py | ||
LDPy
This project moved to: git.afpy.org
🚧 work in progress, take a look on other branches if you are curious…
An OVH Log Data Platform python client.
Log Data Platform is a log management platform based on opensearch.
💡 Idea
- Access LDP stream
- Query the logs
- Trigger actions
🚀 Use quick-start
Get the source & edit settings:
git clone git@git.afpy.org:fcode/LDPy.git && cd ldpy
cp client.sample.py client.py
${EDITOR} client.py
Set up environment & run help:
mkdir ~/.venvs && python3 -m venv ~/.venvs/ldpy
source ~/.venvs/ldpy/bin/activate
pip install -r requirements.txt
./ldpy.py -h
- Get stream mapping:
./ldpy.py --mapping - Get last
nentries:./ldpy.py --last
🚧 Devel quick-start
- Built with
Python 3.8 - Code linting with
flake8,pylint,black&pydocstyle. - Install development tools:
pip install -r requirements-dev.txt
- A
Makefilewith tools : runmake helpto have a look - Use the
pre-commitgit hookecho "make --no-print-directory --quiet lint" > .git/hooks/pre-commitchmod u+x .git/hooks/pre-commit
📌 Dependences
Details in requirements.txt & requirements-dev.txt