Test to see if 1D convolutional networks can learn active patterns in genome cellular strains.
Project description
A simple python package to send you and any other receiver an email when a portion of code is done running.
Setup
Just run:
pip install notipy_me
Usage example
Creating the configuration file
Firstly you would have to setup a file, by default called notipy_me.json.
I strongly advise for you to keep this file out of the repository and generally DO NOT make it public, as it must contain your chosen email password.
Obviously https is used.
Minimal setup
To receive the notification email to the same address as the sender just write:
{
"from":{
"email":"your@email.com",
"password":"your password here",
"server":"smtp.yourserver.com"
}
}
With this setup the port used by default is 465.
Full setup
To receive the notification email to the same address as the sender just write:
{
"from":{
"email":"your@email.com",
"password":"your password here",
"server":"smtp.yourserver.com",
"port":465
},
"to": [
"receiver1@immabereceiver.com",
"another_receiver@immabereceiver.com",
"yet_another_receiver@immabereceiver.com",
]
}
With this setup the port used by default is 465.
Where should I put the file?
Put in the same directory as the script you plan to run:
your_script_directory/
> your_script.py
> your_config_file.json
A basic example script
In these examples it automatically loads the configuration from the path "./notipy_me.json".
Using notipy_me as a context manager
from notipy_me import Notipy
with Notipy():
foo()
Using notipy_me as a decorator
from notipy_me import Notipy
@Notipy()
def foo():
"""Do things here..."""
Loading from custom path and adding script name
Using notipy_me as a context manager
from notipy_me import Notipy
with Notipy("./path/to/my/file.json", "script that does foo"):
foo()
Using notipy_me as a decorator
from notipy_me import Notipy
@Notipy("./path/to/my/file.json", "script that does foo")
def foo():
"""Do things here..."""
Known issues
Gmail
I cannot manage to get gmail to work, but it keeps rising an error logging in with the credentials, even though they are correct. With the other mail providers it works fine.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for notipy_me-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a834f0b0efe253bb9a0d9e4fda48f81b0ee7ea25b9c81e8f3cb89d0126963137 |
|
MD5 | 8b0d2b9d55997fc60ed6d688efb2f9d7 |
|
BLAKE2b-256 | 4c17911cfafd3c5c36aa5afd070b1133082952db99a20ead187382b20a08e673 |