Skip to main content

Tiny tool for sending messages to google chat via http webhook

Project description

Ghee echoes to Google Hangouts Chat easly

How to install

Simply:

pip install ghee

How to use

You should now have a command line application:

ghee https://chat.googleapis.com/v1/... The message you want to send!

It's extremely dumb. First argument is the Google Chat room webhook URL. Everything that follows is the message (*bold* and _italics_ work).

For the information about the api go to: https://developers.google.com/hangouts/chat/how-tos/webhooks

Create PyPI package

Important: following assumes that you are using virtualenv.

Install build tools:

$ pip install --upgrade pip setuptools wheel

Build package:

$ python setup.py sdist bdist_wheel
# [output edited out]
$ ls -l dist 
total 8
-rw-rw-r-- 1 michal_chalupczak michal_chalupczak 3032 paź  7 16:22 ghee-0.0.1-py3-none-any.whl
-rw-rw-r-- 1 michal_chalupczak michal_chalupczak 1602 paź  7 16:22 ghee-0.0.1.tar.gz

Upload the package to the PyPI!

Important: following assumes that you are using virtualenv.

Install upload tools:

$ pip install --upgrade twine

First register at the test repo: https://test.pypi.org/account/register/ and upload:

$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*

And check if that worked:

$ pip install --index-url https://test.pypi.org/simple/ --no-deps ghee

If that worked repeat with the real https://pypi.org/.

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

ghee-0.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

ghee-0.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file ghee-0.0.1.tar.gz.

File metadata

  • Download URL: ghee-0.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3+

File hashes

Hashes for ghee-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c869cb886f45a2a4666a41a04bbb85629809579694441bae78601a28a8e77a6c
MD5 bd9858a05bd296b8569da94563e341c0
BLAKE2b-256 00e709ceea002ed5a4b90f966ee4d2e583f28e50a7ad09b3559a968fc1a8c7a5

See more details on using hashes here.

File details

Details for the file ghee-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ghee-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3+

File hashes

Hashes for ghee-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4f6d04206835fc93e14a0126b0dd1164a25629ad70dd496cd708cb9595082c3
MD5 257137de97e4048148c70cd35e59bdc4
BLAKE2b-256 80417908bd5e26f6774dbc953eebd9ce9dc0f1a7973e796c3399ae9fd26178bf

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