# fastcode
A Python Library for simplifying the use of repetitive code in my Python projects.
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install.
```bash
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.
```python
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.
```python
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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/TareqAbeda/Python_Library",
"name": "fastcode",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "Protocols",
"author": "Tareq Abeda",
"author_email": "TareqAbeda@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/39/8a/039639fa74c48bd6054b0d2a8c6f2b95531f5af3ed94a6f2842c9516d1ac/fastcode-1.0.0.tar.gz",
"platform": null,
"description": "# fastcode\r\n\r\nA Python Library for simplifying the use of repetitive code in my Python projects.\r\n\r\n## Installation\r\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install.\r\n\r\n```bash\r\npip install fastcode\r\n```\r\n\r\n## Usage\r\nFor now, I have two functions there all displayed with their parameters and requirements by using typing Library.\r\n \r\nThe first one is IMAP, which is used to read emails and download their attachments in a created folder in the download_folder path.\r\n\r\n\r\n```python\r\nimport fastcode\r\n\r\n# Read email\r\nimap(imap_port: int,\r\n imap_server: str,\r\n email_account: str,\r\n password: str,\r\n mailbox: str = 'inbox',\r\n search_criteria: str = 'ALL',\r\n download_folder: Optional[str] = None\r\n ) -> None\r\n```\r\n\r\nThe Second one is SMTP, which is used to send emails.\r\n\r\n```python\r\nimport fastcode\r\n\r\n# Send email\r\nsmtp(to_emails:List[str], \r\n smtp_port:int, \r\n smtp_server:str, \r\n sender_email:str, \r\n sender_password:str, \r\n subject:str,\r\n body:str,\r\n body_type:str,\r\n attachments: Optional[Dict[str,str]] = None,\r\n cc_emails:Optional[List[str]] = []\r\n ) -> None\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python Library for simplifying the use of repetitive code in my python projects.",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/TareqAbeda/Python_Library"
},
"split_keywords": [
"protocols"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "398a039639fa74c48bd6054b0d2a8c6f2b95531f5af3ed94a6f2842c9516d1ac",
"md5": "b7866298a23883fd1c9212150e069f0d",
"sha256": "aee1f782d3e582bedf88657e7c3bd04f234d89eb90143c5d45e76166bac8407a"
},
"downloads": -1,
"filename": "fastcode-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "b7866298a23883fd1c9212150e069f0d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3523,
"upload_time": "2024-09-10T19:19:28",
"upload_time_iso_8601": "2024-09-10T19:19:28.052979Z",
"url": "https://files.pythonhosted.org/packages/39/8a/039639fa74c48bd6054b0d2a8c6f2b95531f5af3ed94a6f2842c9516d1ac/fastcode-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-10 19:19:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "TareqAbeda",
"github_project": "Python_Library",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "fastcode"
}