An OVH Logs Data Platform python client. Logs Data Platform is a log management platform based on OpenSearch.
Go to file
freezed 48e81048dc 🔀 Merge branch 12-fields
Reviewed-on: #16

Close #12
2022-10-11 00:43:10 +00:00
.gitignore Add HTTP request recording for tests #6 2022-09-29 00:25:07 +02:00
.gitlab-ci.yml Format last entries from stream #4 2022-09-28 23:55:10 +02:00
LICENSE.md 📝 Define project base 2022-09-24 17:05:34 +02:00
Makefile 🚚 Rename main module to ldpy 2022-09-28 00:00:29 +02:00
README.md 📝 Update README #12 2022-10-11 02:37:09 +02:00
client.sample.py Add a basic OpenSearch client 2022-09-24 20:14:32 +02:00
ldpy.py ️ Build request with stream specific fields #12 2022-10-11 02:14:17 +02:00
pyproject.toml Setup 1st tests 2022-09-26 00:01:33 +02:00
requirements-dev.txt 📝 Mention AFPy talk 2022-09-29 15:54:31 +02:00
requirements.txt Add a basic OpenSearch client 2022-09-24 20:14:32 +02:00
tests_ldpy.py ️ Build request with stream specific fields #12 2022-10-11 02:14:17 +02:00

README.md

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

  1. Access LDP stream
  2. Query the logs
  3. 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 n entries: ./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 Makefile with tools: run make help to have a look
  • Use the pre-commit git hook
    • echo "make --no-print-directory --quiet lint" > .git/hooks/pre-commit
    • chmod u+x .git/hooks/pre-commit

📌 Dependences

Details in requirements.txt & requirements-dev.txt

Talk about this project