Module for reading docker logs
Project description
ExenDLR
Exenifix's Docker Logs Reader
Description
Module for reading docker logs for GitHub actions. Includes CLI and program tools.
Usage
CLI
$ python3 -m exendlr <container-name> <stop-phrase>
# example
$ python3 -m exendlr my-nice-bot "bot is ready!"
Code
from exendlr import Reader
reader = Reader("my-nice-bot", "bot is ready!")
code = reader.start()
if code == 0:
print("Bot was started successfully!")
elif code == 1:
print("There was an error running the bot!")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
exendlr-1.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
exendlr-1.0-py3-none-any.whl
(3.4 kB
view hashes)