Python SDK for Hoopoe
Project description
Hoopoe Python
Python SDK for Hoopoe | Get notified of what's important
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
About The Project
Hoopoe is a platform that helps you notify yourself when something important happens in your platform!
Getting Started
There's two ways to use hoopoe, either you can user Hoopoe.app or host it yourself.
Installation
- Get a free API Key at https://hoopoe.app
- Install PyPI packages
pip install hoopoe-python
Usage
First import hoopoe-python and create an instance of it.
from hoopoe import Hoopoe
hoopoe = new Hoopoe({
api_key: 'your_hoopoe_api_key',
version: '1', # API version, default 1
base_url: 'https://...', # self-hosted only, ignore if you're using Hoopoe Cloud
})
Then you can send a notification to yourself using like this:
hoopoe.upupa("Your message here", extra = {
"extra": "info",
"could": "be",
"added": "here",
})
By default the upupa
command will send the code trace back, you have the option to disable it:
hoopoe.upupa("", extra={}, include_trace_back=False)
See the open issues for a full list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/amazing-feature
) - Commit your Changes (
git commit -m 'Add some amazing-feature'
) - Push to the Branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE.txt
for more information.
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
File details
Details for the file hoopoe-python-0.0.8.tar.gz
.
File metadata
- Download URL: hoopoe-python-0.0.8.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f49f95a66a3de88a5a53d34c4e4278f67be5e9bbc1a12b96b2420810766dd9e |
|
MD5 | a139dc55c015e2c63aa1f15a784ded23 |
|
BLAKE2b-256 | d77e275449fa38fd20a6d7fc78fc36d972648c36b4ee283d9f128d2473cdcbae |