Code Monkey home page Code Monkey logo

python-modules's Introduction

Python Modules

Repository for general purpose Python modules.
These modules are intended for example purposes, but can also be used as-is or as a basis for use within other projects.

Note: Modules written using Python 3.


Database Module

The freedom35/database directory contains modules related to database operations.

Module freedom35/database/sqlite.py contains the class FreedomTestDatabase to demonstrate simple SQLite v3 database operations. For usage of this class, refer to the example code in test_database_sqlite.py.

To run test_database_sqlite.py, use command line:

$ python3 test_database_sqlite.py

Note: The test example uses an in-memory SQLite database (:memory:), but you can change the database name to use a file instead. I.e. test.db.


I/O Modules

The freedom35/io directory contains modules related to file handling.

File

Module freedom35/io/file.py contains methods to demonstrate basic text file read/write operations. For usage, refer to the example code in test_io_file.py.

To run test_io_file.py, use command line:

$ python3 test_io_file.py

CSV (Comma Separated Values)

Module freedom35/io/csv.py contains methods to demonstrate basic CSV file read/write operations. For usage, refer to the example code in test_io_csv.py.

To run test_io_csv.py, use command line:

$ python3 test_io_csv.py

SMTP Modules

The freedom35/smtp directory contains modules related to sending emails via SMTP.

Note: In the SMTP test modules, you will need to change the example email configuration to match your own SMTP server login etc.

Plaintext

Module freedom35/smtp/plaintext.py contains a method to demonstrate sending plaintext emails. For usage, refer to the example code in test_smtp_plaintext.py.

To run test_smtp_plaintext.py, use command line:

$ python3 test_smtp_plaintext.py

MIME (Multipurpose Internet Mail Extensions)

Module freedom35/smtp/mime.py contains the class FreedomMimeEmail to handle sending MIME emails. For usage, refer to the example code in test_smtp_mime.py.

To run test_smtp_mime.py, use command line:

$ python3 test_smtp_mime.py

python-modules's People

Contributors

freedom35 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

python-modules's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.