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.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

fps_channels-1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fps_channels-1.1.tar.gz
  • Upload date:
  • Size: 3.5 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.1.tar.gz
Algorithm Hash digest
SHA256 52406d6ebfb43800edb8374e7f6278127b2b05f33757b0209ea9259e7bd336d6
MD5 42b19cab48c7b19a12af0a8fb50ca1ab
BLAKE2b-256 f2120b92f149286a644dc9643c5089376f45bda0001d5e00ee2e75343c8e8ecc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fps_channels-1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c604811ef34924927327f7ebfbb846ef5d3b7c64a49bc007aead61ab9922546f
MD5 8ab130805248deae4358083d3a2f890b
BLAKE2b-256 7ae53d50bd0d48228fa962deee0a481b5a73518191c81daedde8bb998cfd3450

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