Skip to content

Latest commit

 

History

History
67 lines (54 loc) · 2.7 KB

File metadata and controls

67 lines (54 loc) · 2.7 KB

Botlet

Communication and commands bot.

Requirements

  • Python >=3.7 as code interpreter for all important tasks
  • (Optional) git for git plugin
  • (Optional) Docker for container building & running

Usage

Preparation

  • Use virtual environment:
    • Install: python -m venv .venv
    • Activate (Windows): .venv\Scripts\activate.bat
    • Activate (Linux): source .venv/bin/activate
  • Install dependencies: pip install -r requirements.txt -r requirements-dev.txt

Code quality

  • Run code linting: pylint botlet
  • Run unit tests: coverage run
  • Report test coverage: coverage report
    (For other output formats, replace report by html|json|xml)

Deploy

  • Show code documentation: pdoc -o html/ botlet
  • Manage distribution:
    • Source archive: python setup.py sdist
    • Install locally: pip install .

Run

  • Start application:
    • From source: python -m botlet
    • From installation: botlet
  • Create docker container:

Configuration

  • Call command line with -h for a help text
  • See configuration file formats in botlet.config package (config.ini & logging.ini)
  • Environment variables serve as parameters (f.e. secrets for server access)

For more, see plugins.

IDE support

Contributing

You can help with bug reports or feature ideas by opening issues.
Code contributions should be submitted as merge requests.
Please keep the quality up by checking your changes, using mentioned tools and following conventions.

TODO

Features

Infrastructure

  • Gitlab CI