`Parsnip` is a basic python interface to allow the sending of web texts via the main 4 Irish mobile operators websites. It is influenced by [cabbage](http://cabbagetexter.com/), a popular `php` implementation.
* **Meteor** : [http://mymeteor.ie](https://www.mymeteor.ie/mymeteorapi/index.cfm)
* **O2** : [http://o2online.ie](https://messaging.o2online.ie/smscenter_send.osp)
* **Vodafone** : [http://vodafone.ie](https://www.vodafone.ie/myv/messaging/webtext/Process.shtml)
* **Three** : [http://three.ie](http://webtext.three.ie/send.jsp)
##Install##
pip install -e git+https://github.com/timmyomahony/python-parsnip.git#egg=parsnip
##Usage##
import parsnip
texter = parsnip.get_webtexter("Meteor", "0851111111", "1234")
texter.login()
texter.send("Heyo", ["0866666666", "0877777777", "0863333333"])
print texter.get_remaining_webtexts()
255
texter.logout()
* `get_webtexter(operator, phone_number, online_pin)` : is a factory method which returns an instance of `Webtexter`.
* A webtexter instance has the following methods:
* `login()` : login to remote operator site
* `logout()` : clear cookies and perform logout on remote operator site
* `send(message, recipients)` : sends a web text to the provided recipients, where `recipient` is either a comma separated string of phone numbers, or a list of phone numbers.
* `get_remaining_webtexts` : returns an integer
##Features##
* For messages that have more characters then the provider allows (i.e. sending a message greater than 160 characters on Three), the message will be broken into smaller chunks and sent separately. The same can be said for recipients : if there are more recipients then the provider handles, they are split up and the message numerous times
##TODO##
* incorporate group texting
* add ellipses to chunked messages
##Contact##
[me@timmyomahony.com](mailto://me@timmyomahony.com)
Metadata
Release files for python-parsnip 0.0.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 | Actions |
|---|---|---|---|---|
| python-parsnip-0.0.1.tar.gz | 16.7 kB | Without provenance | Details for python-parsnip-0.0.1.tar.gz |
Release files / python-parsnip-0.0.1.tar.gz
| Download URL | python-parsnip-0.0.1.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1403d97b359dbabd94f764c8a22477a5fa50988f0b6b33a00dba396aa6335fb4
|
|
BLAKE2b-256 checksum How to use checksums |
87e59c04431331dc93848b31f77037238ba32db8c764d3855e5aa4a8a925d11b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-parsnip 0.0.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.