Skip to main content

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

This version

1.0

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)

Uploaded Source

Built Distribution

exendlr-1.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page