Skip to main content

Access your gotify server

Project description

python-gotify

This python module allows to manage and send messages to your gotify server without handling requests manually.

To send messages:

import gotify

gotify.config(
    base_url="https://gotify.example.com",
    app_token="AsWIJhvlHb.xgKe",
)

gotify.create_message(
    "Hello you wonderful people!",
    title="Hello World",
    priority=0,
)

Note: To send messages you need to create a new application and set app_token accordingly.

You can also manage things like applications:

import gotify

gotify.config(
    base_url="https://gotify.example.com",
    client_token="CoLwHBCAr8z2MMA",
)

app = gotify.create_application("foobar", description="test application")

print("Created new application:", app)

would result in

Created new application: {'id': 42, 'token': 'ArHD_yGYf63-A13', 'name': 'fooba
r', 'description': 'test application', 'internal': False, 'image': 'static/def
aultapp.png'}

Note: For most things you need to create a new client and set client_token accordingly.

More details about the capabilities of gotify's API can be found in its API documentation.

Note: since I don't use any gotify plugins, plugin-related functions are completely untested.

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

gotify-0.1.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gotify-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file gotify-0.1.1.tar.gz.

File metadata

  • Download URL: gotify-0.1.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for gotify-0.1.1.tar.gz
Algorithm Hash digest
SHA256 42eda85b0d90d2a221fa102f157aab3192e58efd042aa87c52381c68b0220681
MD5 d4ff67a5c10df8ac5f20e6292669c1dd
BLAKE2b-256 49c384d522a6e3f188acd3c06d82f26c8ff3584ce58e0b8abd9daa85a0b09c5e

See more details on using hashes here.

File details

Details for the file gotify-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gotify-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for gotify-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c66e5d5d1d1d0fa8e396187afcee85cf6d3b6aa805a2180d3fb3f6ca802fe10
MD5 cbb9e943702a8f9628ad8ce159abd5fe
BLAKE2b-256 284f9817df2340138a63bfbd2c1e63fee83b69d8936151a1574267a51e3b5d0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page