Skip to main content

May the force be with you.

Project description

Anit

Provided by Animite Software Foundation

Created by Shaurya Pratap Singh

For Python3 and above

Anit 0.0.9

Installation

type the following command in command line

pip install anit

then in your .py file type this,

from anit import *

Email

First we have to create a message class,

msg = Message('Hello World', """
    May the force be with you.
""")

You can also pass in a html file,

msg = Message('Hello World', 'something.html')

Then, create a new class,

mailer = Mailer('email', 'password')

to send it, do this,

mailer.send_message('Your message class here.')
mailer.send_to('recievers email')

Done!

Mailer and Message mixin classes:

class MyMessage(MessageMixin):
    subject = None
    message = None
class MyMailer(MailerMixin):
    email = None
    pwd = None
    person = 'the person who youare sending to'

You can also use the terminal command:

anit -i mailer

Open browser url,

open_browser_url('why do we love star wars?')

Terminal command for this:

anit -i open

Creating package structure

create_package('name of package')

Terminal command for this:

anit -i package

Anit variables

print(anit.OS)# returns your os
print(anit.VERSION) #returns anit version 
print(anit.DATE) # returns the date
print(anit.TIMESTAMP) # returns the timestamp

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for anit, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size anit-0.0.10-py3-none-any.whl (6.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size anit-0.0.10.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page