tempinbox


Nametempinbox JSON
Version 0.2.1 PyPI version JSON
download
home_pagehttps://github.com/ishanoshada/tempinbox
SummaryA Python package for generating temporary email addresses using Emailnator.
upload_time2024-10-07 08:07:43
maintainerNone
docs_urlNone
authorIshan Oshada
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TempInbox - Your Temporary Email Solution 📧

Welcome to TempInbox, a Python package designed to simplify your interaction with temporary email addresses. With TempInbox, you can effortlessly generate disposable email addresses and access their content.

## Installation 🛠️

To get started, simply install TempInbox using pip:

```bash
pip install tempinbox
```

## Usage Example 🚀


```python
from tempinbox import TempEmail

# Create a TempEmail instance
client = TempEmail()

# Generate a temporary email address with specific options
email_address = client.generate_temp_email(domain=False, dot_gmail=True, plus_gmail=False)["email"][0]

# Get a list of emails for the generated address
email_list = client.get_mail_list(email_address)

# Get the content of a specific email (ID=2)
email_content = client.get_mail_content(email_address, id=2)

print(email_content)
```

This code snippet demonstrates how to generate a temporary email address with the following options:

- `domain`: Generates an email address without an additional domain.( example@exampledomain.com )
- `dot_gmail`: Generates an email address with a dot and 'gmail.com' (as in the example). ( ex.ex.ex@gmail.com)
- `plus_gmail`: Generates an email address without a plus sign followed by 'gmail.com'. ( example+exam@gmail.com)


## Sample Output 📋

**Generated Email Address**:
```plaintext
m.ar.io.sgl.ade@gmail.com
```

**List of Received Emails**:
```python
{
    'messageData': [
        {
            'messageID': 'ADSVPN',
            'from': 'AI TOOLS',
            'subject': 'Unleash the power of AI with our ultimate directory of online tools!',
            'time': 'Just Now'
        },
        {
            'messageID': 'MThiODcwYWI5Mzk3MDYwNg==',
            'from': 'GPTDOS Access <hi@gptdos.com>',
            'subject': 'GPTDOS Access Code',
            'time': '14 hrs ago'
        },
        {
            'messageID': 'MThiODZmNjlhNzhjYmI5Zg==',
            'from': 'LOVO <hello@lovo.ai>',
            'subject': 'LOVO Newsletter 👻',
            'time': '19 hrs ago'
        }
    ]
}
```

**Email Content (ID=2)**:
```html
<div id="subject-header">
    <b>From: </b>GPTDOS Access &lt;hi@gptdos.com&gt;<br/>
    <b>Subject: </b>GPTDOS Access Code
</div>
<html>
    <head>
        <title></title>
    </head>
    <body>
        您好,<br>
        您在使用 GPTDOS, 请输入验证码:<br/>
        <br/>
        <b>81269658</b>
        <br/>
        GPTDOS<br/>
        <img src="https://u13032898.ct.sendgrid.net/wf/open?upn=rqJJO9-2BJL8i62yHtdgY1cWouC7RdXlcfG3E73dU1e9bPvX1VDl-2BssK4tZTTDPVKiIzaKX2ZiEbmPYpW1BM32GVs-2FvWGiq0R-2BAvavNooikOlxpsMBCJehGSg33aHAZgfSpipfZ1gyuFsxIrfleaNTIuL8Nhu2y5on3fe6rpukhEi-2BHtezMLmZig6IHrWHV12TR94QgEhzPmLoXOHUXx76bqlGEZLGixTo6lCYGECJfgezt6vsLL78PtVSJpanSdYvdoPj-2BNgztK6xsXmw6ZhVWEBeMYBIBQ9BCW7od6JzUo6DaVoLj1iOQcexl-2BOC9COGhif32U42TOV04TnEnFNQ106dIjBtPU3VgTxEZA0cAR35d5AJUgCGRi4-2B-2FqqnPM2-2F" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom0 !important;padding-right:0 !important;padding-left:0 !important;"/>
    </body>
</html>
```

## Features 🌟

- Quickly generate temporary email addresses.
- Retrieve a list of received emails with details.
- Access the content of specific emails.

## Contribution 🤝

We welcome contributions! If you'd like to enhance TempInbox, feel free to open an issue or create a pull request.

## License 📜

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.


**Repository Views** ![Views](https://profile-counter.glitch.me/tempinbox/count.svg)

---

[![GitHub](https://img.shields.io/github/license/ishanoshada/tempinbox)](https://github.com/ishanoshada/tempinbox)
[![GitHub stars](https://img.shields.io/github/stars/ishanoshada/tempinbox)](https://github.com/ishanoshada/tempinbox/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/ishanoshada/tempinbox)](https://github.com/ishanoshada/tempinbox/network)

For more information, visit our [GitHub repository](https://github.com/ishanoshada/tempinbox).

**Happy Emailing!** 📬🎉



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ishanoshada/tempinbox",
    "name": "tempinbox",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Ishan Oshada",
    "author_email": "ic31908@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/91/de/21521bcb7ee1ddd9873442b8c8d9be6176f93d8379a14dc8249af022ae88/tempinbox-0.2.1.tar.gz",
    "platform": null,
    "description": "# TempInbox - Your Temporary Email Solution \ud83d\udce7\r\n\r\nWelcome to TempInbox, a Python package designed to simplify your interaction with temporary email addresses. With TempInbox, you can effortlessly generate disposable email addresses and access their content.\r\n\r\n## Installation \ud83d\udee0\ufe0f\r\n\r\nTo get started, simply install TempInbox using pip:\r\n\r\n```bash\r\npip install tempinbox\r\n```\r\n\r\n## Usage Example \ud83d\ude80\r\n\r\n\r\n```python\r\nfrom tempinbox import TempEmail\r\n\r\n# Create a TempEmail instance\r\nclient = TempEmail()\r\n\r\n# Generate a temporary email address with specific options\r\nemail_address = client.generate_temp_email(domain=False, dot_gmail=True, plus_gmail=False)[\"email\"][0]\r\n\r\n# Get a list of emails for the generated address\r\nemail_list = client.get_mail_list(email_address)\r\n\r\n# Get the content of a specific email (ID=2)\r\nemail_content = client.get_mail_content(email_address, id=2)\r\n\r\nprint(email_content)\r\n```\r\n\r\nThis code snippet demonstrates how to generate a temporary email address with the following options:\r\n\r\n- `domain`: Generates an email address without an additional domain.( example@exampledomain.com )\r\n- `dot_gmail`: Generates an email address with a dot and 'gmail.com' (as in the example). ( ex.ex.ex@gmail.com)\r\n- `plus_gmail`: Generates an email address without a plus sign followed by 'gmail.com'. ( example+exam@gmail.com)\r\n\r\n\r\n## Sample Output \ud83d\udccb\r\n\r\n**Generated Email Address**:\r\n```plaintext\r\nm.ar.io.sgl.ade@gmail.com\r\n```\r\n\r\n**List of Received Emails**:\r\n```python\r\n{\r\n    'messageData': [\r\n        {\r\n            'messageID': 'ADSVPN',\r\n            'from': 'AI TOOLS',\r\n            'subject': 'Unleash the power of AI with our ultimate directory of online tools!',\r\n            'time': 'Just Now'\r\n        },\r\n        {\r\n            'messageID': 'MThiODcwYWI5Mzk3MDYwNg==',\r\n            'from': 'GPTDOS Access <hi@gptdos.com>',\r\n            'subject': 'GPTDOS Access Code',\r\n            'time': '14 hrs ago'\r\n        },\r\n        {\r\n            'messageID': 'MThiODZmNjlhNzhjYmI5Zg==',\r\n            'from': 'LOVO <hello@lovo.ai>',\r\n            'subject': 'LOVO Newsletter \ud83d\udc7b',\r\n            'time': '19 hrs ago'\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\n**Email Content (ID=2)**:\r\n```html\r\n<div id=\"subject-header\">\r\n    <b>From: </b>GPTDOS Access &lt;hi@gptdos.com&gt;<br/>\r\n    <b>Subject: </b>GPTDOS Access Code\r\n</div>\r\n<html>\r\n    <head>\r\n        <title></title>\r\n    </head>\r\n    <body>\r\n        \u60a8\u597d,<br>\r\n        \u60a8\u5728\u4f7f\u7528 GPTDOS, \u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801:<br/>\r\n        <br/>\r\n        <b>81269658</b>\r\n        <br/>\r\n        GPTDOS<br/>\r\n        <img src=\"https://u13032898.ct.sendgrid.net/wf/open?upn=rqJJO9-2BJL8i62yHtdgY1cWouC7RdXlcfG3E73dU1e9bPvX1VDl-2BssK4tZTTDPVKiIzaKX2ZiEbmPYpW1BM32GVs-2FvWGiq0R-2BAvavNooikOlxpsMBCJehGSg33aHAZgfSpipfZ1gyuFsxIrfleaNTIuL8Nhu2y5on3fe6rpukhEi-2BHtezMLmZig6IHrWHV12TR94QgEhzPmLoXOHUXx76bqlGEZLGixTo6lCYGECJfgezt6vsLL78PtVSJpanSdYvdoPj-2BNgztK6xsXmw6ZhVWEBeMYBIBQ9BCW7od6JzUo6DaVoLj1iOQcexl-2BOC9COGhif32U42TOV04TnEnFNQ106dIjBtPU3VgTxEZA0cAR35d5AJUgCGRi4-2B-2FqqnPM2-2F\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" style=\"height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom0 !important;padding-right:0 !important;padding-left:0 !important;\"/>\r\n    </body>\r\n</html>\r\n```\r\n\r\n## Features \ud83c\udf1f\r\n\r\n- Quickly generate temporary email addresses.\r\n- Retrieve a list of received emails with details.\r\n- Access the content of specific emails.\r\n\r\n## Contribution \ud83e\udd1d\r\n\r\nWe welcome contributions! If you'd like to enhance TempInbox, feel free to open an issue or create a pull request.\r\n\r\n## License \ud83d\udcdc\r\n\r\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\r\n\r\n\r\n**Repository Views** ![Views](https://profile-counter.glitch.me/tempinbox/count.svg)\r\n\r\n---\r\n\r\n[![GitHub](https://img.shields.io/github/license/ishanoshada/tempinbox)](https://github.com/ishanoshada/tempinbox)\r\n[![GitHub stars](https://img.shields.io/github/stars/ishanoshada/tempinbox)](https://github.com/ishanoshada/tempinbox/stargazers)\r\n[![GitHub forks](https://img.shields.io/github/forks/ishanoshada/tempinbox)](https://github.com/ishanoshada/tempinbox/network)\r\n\r\nFor more information, visit our [GitHub repository](https://github.com/ishanoshada/tempinbox).\r\n\r\n**Happy Emailing!** \ud83d\udcec\ud83c\udf89\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python package for generating temporary email addresses using Emailnator.",
    "version": "0.2.1",
    "project_urls": {
        "Homepage": "https://github.com/ishanoshada/tempinbox"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "91de21521bcb7ee1ddd9873442b8c8d9be6176f93d8379a14dc8249af022ae88",
                "md5": "cce703a7ad0d3f1dbc3bc383f9b2c981",
                "sha256": "a428380bafd3a096751fe5ce7ecbca4ca85eb9e688c069e7318c18dbe9a5720b"
            },
            "downloads": -1,
            "filename": "tempinbox-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "cce703a7ad0d3f1dbc3bc383f9b2c981",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5428,
            "upload_time": "2024-10-07T08:07:43",
            "upload_time_iso_8601": "2024-10-07T08:07:43.334690Z",
            "url": "https://files.pythonhosted.org/packages/91/de/21521bcb7ee1ddd9873442b8c8d9be6176f93d8379a14dc8249af022ae88/tempinbox-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-07 08:07:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ishanoshada",
    "github_project": "tempinbox",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "tempinbox"
}
        
Elapsed time: 1.88883s