pynator
Python wrapper for Emailnator and SMSNator
simple wrapper for emailnator.com and smsnator.online services, allowing you to generate disposable email addresses and phone numbers. It provides a convenient way to interact with the emailnator.com and smsnator.online APIs using Python.
Features
- Generate disposable email addresses/phone numbers with customizable options.
- Retrieve a list of messages from a disposable email address/phone number.
- Retrieve the content of a specific email/phone message.
Installation:
You can install the pynator library using pip:
pip install pynator
Usage
Here's a basic example of how to use the pynator library to generate an email address:
from pynator import EmailNator
# Initialize the EmailNator client
client = EmailNator()
# Generate a disposable email address
email = client.generate_email()
# Get a list of messages for the generated email address
messages = client.get_messages(email)
# Print the messages
for message in messages:
print(message)
print(client.get_message(email, message.message_id)) # print message text
And a basic example of how to use the pynator library to generate a phone number:
from pynator import SMSNator
# Initialize the SMSNator client
client = SMSNator()
# Generate a disposable phone number
email = client.generate_number()
# Get a list of messages for the generated phone number
messages = client.get_messages(email)
# Print the messages
for message in messages:
print(message)
print(message.message) # print message text
License
This library is released under the MIT License.
Contributing
Contributions to this project are welcome! Feel free to open issues, submit pull requests, or suggest improvements.
Contact
If you have any questions or need further assistance, please contact @hackirby:matrix.org
Metadata
Release files for pynator 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pynator-0.1.1.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pynator-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / pynator-0.1.1.tar.gz
| Download URL | pynator-0.1.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f422ec8dab45ace8fad1b0d105be2d33d8b3d1185d395cc3c852450d1ba475a6
|
|
BLAKE2b-256 checksum How to use checksums |
56c0e7af88361725728bc92397f3de26263d98b39208a2cc8f2f0d21279cd024
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Windows/10
|
Release files / pynator-0.1.1-py3-none-any.whl
| Download URL | pynator-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11b26e68053c5a6738aa60c81b8658effc5f76f77386ecd897d98409ee426b98
|
|
BLAKE2b-256 checksum How to use checksums |
f9cb04d51516623658aa953d4d40e242e25f044fd2e96fe2571ba42be815c5ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Windows/10
|
Security for pynator 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.