Skip to main content

Code Monitor is a simples way to send feedback about your code to your smartphone

Project description

CodeMonitor

Code Monitor is a simple way to send feedback about your code to your smartphone as a Telegram message!

Set up

Telegram side

  1. Open Telegram and search for CodeMonitor bot.
  1. Send any message to it.
  1. Once you send any message the Bot will return a message like 'Your code is: "123456789"' this is your chat code, it will be used to identify your chat on python side.

Python side

  1. install the Code Monitor dependency through the following command
pip install CodeMonitor
  1. now import it in your code
from CodeMonitor.telegram import Messenger, FitMonitor
  1. Once CodeMonitor is imported you'll be able to use two classes: Messenger and FitMonitor, first let's talk about Messenger class.

Messenger

This class allows you to send any string you want to the Telegram chat, only requiring the chat code as mentioned on the Telegram side section.

messenger = Messenger("123456789")

When the class is instantiated it send the message "All ready!", to send your own messages do like the following code snippet.

messenger.send_message("your awesome message!")

FitMonitor

This class is a callback that send feedback about the training of a Keras Neural Network model, it is very usefull if you're training a model for a very long time and need to leave your computer but still want to know how good your training is doing. At the end of each epoch this callback is going to send information about the accuracy and loss (and validation accuracy and loss when possible) of the model.

model.fit(X_train, Y_train,          
          epochs = 10,
          validation_data = (X_test, Y_test), 
          callbacks=[FitMonitor("123456789")])

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

CodeMonitor-0.1.1.tar.gz (2.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: CodeMonitor-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.2

File hashes

Hashes for CodeMonitor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9f4f241be2234b1bdd76301bb058abd6430132ffc071f426f87a0d740ef01eea
MD5 128148728e22d0ac2c0614e3f0fd45c1
BLAKE2b-256 a810e30ae4d75c747379511ce8cdf64c92660906d538614756979570947e11ca

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