All Projects β†’ daskol β†’ Telepyth

daskol / Telepyth

Licence: mit
Telegram notification with IPython magics.

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Telepyth

Ipytracer
πŸ“Š Algorithm Visualizer for IPython/Jupyter Notebook
Stars: ✭ 138 (+155.56%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Nbstripout
strip output from Jupyter and IPython notebooks
Stars: ✭ 738 (+1266.67%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Ipywebrtc
WebRTC for Jupyter notebook/lab
Stars: ✭ 171 (+216.67%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Sci Pype
A Machine Learning API with native redis caching and export + import using S3. Analyze entire datasets using an API for building, training, testing, analyzing, extracting, importing, and archiving. This repository can run from a docker container or from the repository.
Stars: ✭ 90 (+66.67%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Sqlcell
SQLCell is a magic function for the Jupyter Notebook that executes raw, parallel, parameterized SQL queries with the ability to accept Python values as parameters and assign output data to Python variables while concurrently running Python code. And *much* more.
Stars: ✭ 145 (+168.52%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Vscodejupyter
Jupyter for Visual Studio Code
Stars: ✭ 337 (+524.07%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Ansible Jupyterhub
Ansible role to setup jupyterhub server (deprecated)
Stars: ✭ 14 (-74.07%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Moviemagnetbot
πŸ€– telegram bot for movies
Stars: ✭ 39 (-27.78%)
Mutual labels:  bot, telegram-bot, telegram
Nteract
πŸ“˜ The interactive computing suite for you! ✨
Stars: ✭ 5,713 (+10479.63%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Zabbix In Telegram
Zabbix Notifications with graphs in Telegram
Stars: ✭ 710 (+1214.81%)
Mutual labels:  bot, telegram-bot, telegram
Informer
A Telegram Mass Surveillance Bot in Python
Stars: ✭ 745 (+1279.63%)
Mutual labels:  bot, telegram-bot, telegram
Jupyterlab Lsp
Coding assistance for JupyterLab (code navigation + hover suggestions + linters + autocompletion + rename) using Language Server Protocol
Stars: ✭ 796 (+1374.07%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Java Telegram Bot Api
Telegram Bot API for Java
Stars: ✭ 819 (+1416.67%)
Mutual labels:  bot, telegram-bot, telegram
Tutorials
CatBoost tutorials repository
Stars: ✭ 563 (+942.59%)
Mutual labels:  ipython, jupyter-notebook, ipython-notebook
Cookbook 2nd Code
Code of the IPython Cookbook, Second Edition, by Cyrille Rossant, Packt Publishing 2018 [read-only repository]
Stars: ✭ 541 (+901.85%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Cookbook 2nd
IPython Cookbook, Second Edition, by Cyrille Rossant, Packt Publishing 2018
Stars: ✭ 704 (+1203.7%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Digital Signal Processing Lecture
Digital Signal Processing - Theory and Computational Examples
Stars: ✭ 532 (+885.19%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Telegraf
Modern Telegram Bot Framework for Node.js
Stars: ✭ 5,178 (+9488.89%)
Mutual labels:  bot, telegram-bot, telegram
Marvin
The paranoid bot (framework)
Stars: ✭ 51 (-5.56%)
Mutual labels:  bot, telegram-bot, telegram
Pytelbot
A playful bot in telegram
Stars: ✭ 12 (-77.78%)
Mutual labels:  bot, telegram-bot, telegram

TelePyth

Telegram notification with IPython magics.

Overview

TelePyth (named /telΙ™ΛˆpaΙͺΞΈ/) β€” a Telegram bot that is integrated with IPython. It provides an ability to send any text notification to user from Jupyter notebook or IPython CLI.

Bot Commands

Start chat with @telepyth_bot and get access token using /start command. TelePyth Bot understands some other simple commands. Type

  • /start to begin interaction with bot;
  • /revoke to revoke token issued before;
  • /last to get current valid token or nothing if there is no active one;
  • /help to see help message and credentials.

Usage

TelePyth command is available as an IPython magic command which could be used in Jupyter notebook as well as in plain IPython, qtconsole etc. TelePyth package could be also used directly in Python. And also, there is an HTTP API through which all the things works.

IPython Magics

It is easy to send messages after token is issued. Just install telepyth package by pip install telepyth, import it and notify

    import telepyth

    %telepyth -t 123456789
    %telepyth 'Very magic, wow!'

TelePyth Client

TelepythClient allows to send notifications, figures and markdown messages directly without using magics.

    from telepyth import TelepythClient

    tp = TelepythClient()
    tp.send_text('Hello, World!')  # notify with plain text
    tp.send_text('_bold text_ and then *italic*')  # or with markdown formatted text
    tp.send_figure(some_pyplot_figure, 'Awesome caption here!')  # or even with figure

CLI

TelePyth package also provide command line interface (CLI). It is similar to IPython magic. For example, one can send notifcation as following.

    telepyth -t 31415926 "Moar notifications!"

HTTP API

Note that you can use TelePyth to send notifications via Telegram without any wrappers and bindings. This is useful for bash scripting. Just request TelePyth backend directly to notify user. For instance, to send message from bash:

    curl https://daskol.xyz/api/notify/<access_token_here> \
        -X POST \
        -H 'Content-Type: plain/text' \
        -d 'Hello, World!'

See more examples and usage details here.

Credentials

Β© Daniel Bershatsky <[email protected]>, 2017

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].