Skip to main content

No project description provided

Project description

A package for convenient sending errors/messages

As for now fps_channels supports sending data through Telegram in formats such as .xlsx, .png, plain text.

It supports both async and sync sending.

Example (sync)

class TelegramAlertChannel(TelegramChannel):
    SHOW_FILENAME = True
    HEADER = "️🆘️ Header text"

alert_channel = TelegramAlertChannel(
    bot_token="bot:token",
    chat_id=12345
)
alert_channel.send_message("Message")

Example (async)

class AsyncTelegramAlertChannel(AsyncTelegramChannel):
    SHOW_FILENAME = True
    HEADER = "️🆘️ Header text"

async alert_channel = AsyncTelegramAlertChannel(
    bot_token="bot:token",
    chat_id=12345
)
await alert_channel.send_message("Message")

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

fps_channels-1.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

fps_channels-1.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file fps_channels-1.3.tar.gz.

File metadata

  • Download URL: fps_channels-1.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for fps_channels-1.3.tar.gz
Algorithm Hash digest
SHA256 81a65509877dd2e96163795a9946efe94feaf83972d6b2152dede1b7d36aaeae
MD5 e56b962684596caa6e0e2cadc99d2fbd
BLAKE2b-256 c76ff92e16e0652992e99725d080880f71bc084e778ac198d6072b83ae0a4c18

See more details on using hashes here.

File details

Details for the file fps_channels-1.3-py3-none-any.whl.

File metadata

  • Download URL: fps_channels-1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for fps_channels-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5c837274074bf28bc193759b3d7f7d424cf6f3fbfa535eb16fb4e19f78c03757
MD5 96f874fc4d302f313ac84d46bd97d14e
BLAKE2b-256 b747e6a7600a546aaab89306c6ca3563f0ce2712ee2cb1dbd39d3a2fd3404bf3

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