Skip to main content

Python SDK for Hoopoe

Project description


Logo Python

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

  1. Get a free API Key at https://hoopoe.app
  2. 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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/amazing-feature)
  3. Commit your Changes (git commit -m 'Add some amazing-feature')
  4. Push to the Branch (git push origin feature/amazing-feature)
  5. 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

hoopoe-python-0.0.8.tar.gz (4.5 kB view details)

Uploaded Source

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

Hashes for hoopoe-python-0.0.8.tar.gz
Algorithm Hash digest
SHA256 5f49f95a66a3de88a5a53d34c4e4278f67be5e9bbc1a12b96b2420810766dd9e
MD5 a139dc55c015e2c63aa1f15a784ded23
BLAKE2b-256 d77e275449fa38fd20a6d7fc78fc36d972648c36b4ee283d9f128d2473cdcbae

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