Skip to main content

A Python Library for simplifying the use of repetitive code in my python projects.

Project description

fastcode

A Python Library for simplifying the use of repetitive code in my Python projects.

Installation

Use the package manager pip to install.

pip install fastcode

Usage

For now, I have two functions there all displayed with their parameters and requirements by using typing Library.

The first one is IMAP, which is used to read emails and download their attachments in a created folder in the download_folder path.

import fastcode

# Read email
imap(imap_port: int,
    imap_server: str,
    email_account: str,
    password: str,
    mailbox: str = 'inbox',
    search_criteria: str = 'ALL',
    download_folder: Optional[str] = None
    ) -> None

The Second one is SMTP, which is used to send emails.

import fastcode

# Send email
smtp(to_emails:List[str], 
         smtp_port:int, 
         smtp_server:str, 
         sender_email:str, 
         sender_password:str, 
         subject:str,
         body:str,
         body_type:str,
         attachments: Optional[Dict[str,str]] = None,
         cc_emails:Optional[List[str]] = []
         ) -> None

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

fastcode-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file fastcode-1.0.0.tar.gz.

File metadata

  • Download URL: fastcode-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for fastcode-1.0.0.tar.gz
Algorithm Hash digest
SHA256 aee1f782d3e582bedf88657e7c3bd04f234d89eb90143c5d45e76166bac8407a
MD5 b7866298a23883fd1c9212150e069f0d
BLAKE2b-256 398a039639fa74c48bd6054b0d2a8c6f2b95531f5af3ed94a6f2842c9516d1ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page