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
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
Built Distribution
File details
Details for the file ghee-0.0.2.tar.gz
.
File metadata
- Download URL: ghee-0.0.2.tar.gz
- Upload date:
- Size: 2.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98f3aad1b7a9b62019a309390cedccfa17845e10395d433cd7d4d277de22ca49 |
|
MD5 | bfb35eb47622cba201fe2b54283dc456 |
|
BLAKE2b-256 | aa5a1dd5a125dc12df9d1f1101126575da2adb88284a3674fede3bf8c4bf0c47 |
File details
Details for the file ghee-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ghee-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba602777ab035f8fa7153a6bd872b8bf7a2c5b88c7b97a6f25b5fbd6ad2d0778 |
|
MD5 | 367093e6ef283015c5d6729f1d1a6079 |
|
BLAKE2b-256 | f145f86b06fdd39e6ae480d2591910a018b57b6e5b1772cc2dc156bf130dc018 |