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.

Source Distribution

anit-0.0.10.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

anit-0.0.10-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

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