This is a lightweight library that works as a connector to Sms-Man public API
Installation
pip install smsmanpy
Documentation
https://sms-man.com/site/docs-apiv2
RESTful APIs
Usage examples:
from smsmanpy import Smsman
#To receive an API key, you need to register on the sms-man.com website.
api_key = "api_key"
client = Smsman(api_key)
# Get current balance
print(client.get_balance())
# Get information about all services
print(client.get_all_services())
# Get information about all countries
print(client.get_all_countries())
# Get the number of numbers for the selected country and service
print(client.get_limits(country_id=1, application_id=1))
# Buy new number
request_id, phone_number = client.request_phone_number(country_id=1,
application_id=1)
# Buy many numbers
print(client.request_phone_numbers(country_id=1,
application_id=1,
amount=10))
# Receive a SMS to the number
sms_code = client.get_sms('request_id')
# Reject the number
client.reject_number('request_id')
Contributing
Contributions are welcome.
If you've found a bug within this project, please open an issue to discuss what you would like to change.
If it's an issue with the API, please write it on out site Sms-man Feedback
Metadata
Release files for smsmanpy 0.0.5
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 | |
|---|---|---|---|---|
| smsmanpy-0.0.5.tar.gz | 3.8 kB | Without provenance | Details |
Release files / smsmanpy-0.0.5.tar.gz
| Download URL | smsmanpy-0.0.5.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2082fd2efbb20801c0e785b2cef11dcc6b520ffb52b13821de314458d948c4dd
|
|
BLAKE2b-256 checksum How to use checksums |
1dd0c842367d671b0b212ed6e81e71ee8d6d0b5f2cf46ca0568aa52ef00549c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for smsmanpy 0.0.5
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.