tmailor


Nametmailor JSON
Version 0.0.12 PyPI version JSON
download
home_pagehttps://github.com/heromr/tmailor
SummaryA temporary email address is: a library that provides email addresses without registration, used to receive incoming emails without disclosing your actual email.
upload_time2023-07-17 08:57:08
maintainer
docs_urlNone
authorHeroMR
requires_python
licenseMIT
keywords python tmailor temp mail disposable email temp mailbox fake email
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  <h1 style="color: #0d47a1; font-size: 3em;">tmailor</h1>
  
  <p>
    <a href="https://github.com/heromr/tmailor/commits/main"><img src="https://img.shields.io/github/last-commit/heromr/tmailor?label=last%20updated&color=blueviolet" alt="GitHub last commit"></a>
    <a href="https://pypi.org/project/tmailor/"><img src="https://img.shields.io/pypi/dw/tmailor?color=blueviolet" alt="PyPI - Downloads"></a>
  </p>

  <p style="font-size: 1.2em; color: #424242;">A temporary email address that provides email addresses without registration, used to receive incoming emails without disclosing your actual email.</p>

  
  <h2 style="color: #0d47a1; font-size: 2em;">Installation</h2>
  
  <p style="font-size: 1.2em; color: #424242;">Recommended installation method is through pip:</p>
  
  <pre style="background-color: #f5f5f5; padding: 10px;"><code style="color: #f44336;">pip install tmailor</code></pre>
  
  <p style="font-size: 1.2em; color: #424242;">Alternatively, you can clone the repository and install it manually:</p>
  
  <pre style="background-color: #f5f5f5; padding: 10px;"><code style="color: #f44336;">git clone https://github.com/heromr/tmailor.git
  cd tmailor
  python setup.py install</code></pre>
  
</div>

<div>
  <h2 align="center">Client Class Usage</h2>

  <pre><code class="language-python">
from tmailor import Client

# Create an instance of the Client class
client = Client()

# Generate a random email address
random_email = client.generate_random_email()
print("Random Email Address:", random_email.email)

# Generate a custom email address
custom_email = client.generate_custom_email("john", "example.com")
print("Custom Email Address:", custom_email.email)

# Delete an email address
response = client.delete_email(random_email.email, random_email.token)
print("Deletion Response:", response)

# Get messages for an email address
messages = client.get_messages(random_email.email)
for message in messages.messages:
    print("Subject:", message.subject)
    print("Sender:", message.sender)
    print("Content:", message.body_text)
    print()

# Get a list of available domains
domains = client.get_domains()
for domain in domains.name:
    print("Domain:", domain)
  </code></pre>
</div>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/heromr/tmailor",
    "name": "tmailor",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,tmailor,temp mail,disposable email,temp mailbox,fake email",
    "author": "HeroMR",
    "author_email": "mrhero4006@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e2/d6/538edeb18b2d7c987862bf05bb1134dee071a0e1bf21a4dc0e789da8d1f0/tmailor-0.0.12.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n  <h1 style=\"color: #0d47a1; font-size: 3em;\">tmailor</h1>\n  \n  <p>\n    <a href=\"https://github.com/heromr/tmailor/commits/main\"><img src=\"https://img.shields.io/github/last-commit/heromr/tmailor?label=last%20updated&color=blueviolet\" alt=\"GitHub last commit\"></a>\n    <a href=\"https://pypi.org/project/tmailor/\"><img src=\"https://img.shields.io/pypi/dw/tmailor?color=blueviolet\" alt=\"PyPI - Downloads\"></a>\n  </p>\n\n  <p style=\"font-size: 1.2em; color: #424242;\">A temporary email address that provides email addresses without registration, used to receive incoming emails without disclosing your actual email.</p>\n\n  \n  <h2 style=\"color: #0d47a1; font-size: 2em;\">Installation</h2>\n  \n  <p style=\"font-size: 1.2em; color: #424242;\">Recommended installation method is through pip:</p>\n  \n  <pre style=\"background-color: #f5f5f5; padding: 10px;\"><code style=\"color: #f44336;\">pip install tmailor</code></pre>\n  \n  <p style=\"font-size: 1.2em; color: #424242;\">Alternatively, you can clone the repository and install it manually:</p>\n  \n  <pre style=\"background-color: #f5f5f5; padding: 10px;\"><code style=\"color: #f44336;\">git clone https://github.com/heromr/tmailor.git\n  cd tmailor\n  python setup.py install</code></pre>\n  \n</div>\n\n<div>\n  <h2 align=\"center\">Client Class Usage</h2>\n\n  <pre><code class=\"language-python\">\nfrom tmailor import Client\n\n# Create an instance of the Client class\nclient = Client()\n\n# Generate a random email address\nrandom_email = client.generate_random_email()\nprint(\"Random Email Address:\", random_email.email)\n\n# Generate a custom email address\ncustom_email = client.generate_custom_email(\"john\", \"example.com\")\nprint(\"Custom Email Address:\", custom_email.email)\n\n# Delete an email address\nresponse = client.delete_email(random_email.email, random_email.token)\nprint(\"Deletion Response:\", response)\n\n# Get messages for an email address\nmessages = client.get_messages(random_email.email)\nfor message in messages.messages:\n    print(\"Subject:\", message.subject)\n    print(\"Sender:\", message.sender)\n    print(\"Content:\", message.body_text)\n    print()\n\n# Get a list of available domains\ndomains = client.get_domains()\nfor domain in domains.name:\n    print(\"Domain:\", domain)\n  </code></pre>\n</div>\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A temporary email address is: a library that provides email addresses without registration, used to receive incoming emails without disclosing your actual email.",
    "version": "0.0.12",
    "project_urls": {
        "Homepage": "https://github.com/heromr/tmailor"
    },
    "split_keywords": [
        "python",
        "tmailor",
        "temp mail",
        "disposable email",
        "temp mailbox",
        "fake email"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8cc7d3f864837bd3ef23e5bb9fb10277436f9cb9ecb9428a30f57972d195eb42",
                "md5": "574e2ce934e3096f75579993fd541c22",
                "sha256": "afc82fa97cdbe68f373aadfdfb0756e565e3eed9efe623b9b7fee0f9dda04428"
            },
            "downloads": -1,
            "filename": "tmailor-0.0.12-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "574e2ce934e3096f75579993fd541c22",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6564,
            "upload_time": "2023-07-17T08:57:07",
            "upload_time_iso_8601": "2023-07-17T08:57:07.009969Z",
            "url": "https://files.pythonhosted.org/packages/8c/c7/d3f864837bd3ef23e5bb9fb10277436f9cb9ecb9428a30f57972d195eb42/tmailor-0.0.12-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e2d6538edeb18b2d7c987862bf05bb1134dee071a0e1bf21a4dc0e789da8d1f0",
                "md5": "0e76d1227218d2e3b45aed5ae6d0332a",
                "sha256": "99fcb91b1affcbb26e96c0dd9d74de524ae85c3b769d7683fdfcc48eb5496c38"
            },
            "downloads": -1,
            "filename": "tmailor-0.0.12.tar.gz",
            "has_sig": false,
            "md5_digest": "0e76d1227218d2e3b45aed5ae6d0332a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6171,
            "upload_time": "2023-07-17T08:57:08",
            "upload_time_iso_8601": "2023-07-17T08:57:08.628446Z",
            "url": "https://files.pythonhosted.org/packages/e2/d6/538edeb18b2d7c987862bf05bb1134dee071a0e1bf21a4dc0e789da8d1f0/tmailor-0.0.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-17 08:57:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "heromr",
    "github_project": "tmailor",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "tmailor"
}
        
Elapsed time: 0.32357s