Skip to main content

Programmers' tools. Enjoy Coffee time!

Project description

☕ pycoffee

Assign your work to the machine and enjoy coffee!

Stars Issues Size

 

Table of contents

description

pycoffee is a toolbox for improving the efficiency in daily work. Our goal is saving your time and offer you more time to enjoy coffee!

We provide some features you may like:

  • Data extracting, processing and visualizing
    • Extract data from log file, see Coffee.Data.DataLoader
    • Store data to timeseries database, see Coffee.Data.Database
    • Generate Grafana dashboard by code, see Coffee.Data.DataViz
  • All workflows are provided with the playbooks, see the default playbook Coffee.Playbook.PowerToys
  • Plugin based architecture, you can extend the coffee by writing your playbooks

Getting started

you can install the stable version pycoffee by pip:

# use pip to install the latest version
pip install pycoffee

or you can download the code and run python ./setup.py install in the project root.

Just run --help to see what features pycoffee provided.

# use `--help` to see tools
cof --help

# show external playbooks
cof play --help

Extend your playbooks

Custom playbooks are located in ~/.coffee/CustomPlays/. You should create a new directory to hold the playbook's source code and the directory name is the playbook's package name. An example can be found in Coffee.Playbook.PowerToys.

For Example, code in ~/.coffee/CustomPlays/HelloWorld/__init__.py:

import click


@click.command("hello", help="print hello world")
def play_hello():
  click.echo('hello world')

# commands should be placed in the package's `__init__.py` file
commands = [play_hello, ]

Then type cof play hello in your console, and you will see the printed hello world.

Author

tkorays tkorays@hotmail.com

Contributing

Welcome to contribute code!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycoffee-1.0.6.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

pycoffee-1.0.6-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

Details for the file pycoffee-1.0.6.tar.gz.

File metadata

  • Download URL: pycoffee-1.0.6.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pycoffee-1.0.6.tar.gz
Algorithm Hash digest
SHA256 68941c1d3efaf870015801a1de9494c279fba9d713b2b0aa72f15a7b85dfc5da
MD5 01e276f1e4a8a6b95ec5bf222a16e1a6
BLAKE2b-256 501688dbea42c2309647d0a1a421469bb811bcdae2ff4b5756ffd35f022c83fc

See more details on using hashes here.

File details

Details for the file pycoffee-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: pycoffee-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 35.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pycoffee-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ad73ec06c59565ad5cc9107449f095522fe6b7bc570cbb00996b0096ee5f2096
MD5 6a84a4ebb33e970acd8ef0c9537fa10e
BLAKE2b-256 163618c59b94e3f594ccc72acc5573ae6c763aca5964602351c1575df7b4a122

See more details on using hashes here.

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