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

Uploaded Source

Built Distribution

CodeMonitor-1.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: CodeMonitor-1.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for CodeMonitor-1.0.2.tar.gz
Algorithm Hash digest
SHA256 be15a41359d27a1d67b87f264c04b88d8bcdb57eec4ca3bee7c33ffcbde4f240
MD5 5ea982d2e8632abffe73182f646e9922
BLAKE2b-256 caad3629b7d0f76003ebdac3df9f52f8d6fd949624315f59bb6b4c0d335fcb83

See more details on using hashes here.

Provenance

File details

Details for the file CodeMonitor-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: CodeMonitor-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for CodeMonitor-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32d26d4d14bead331d7b284289342e444913bd40b27819fca8f86b4dd0e4f121
MD5 532767ec3d1efbd7eb7781d4c0cfa9e4
BLAKE2b-256 3fac3eb48769e70f7eabee7a5c100d96424410f6e247c77c3b01f2512816c8a4

See more details on using hashes here.

Provenance

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