Python-Foneworx
Twisted based library for interacting with Foneworx.co.za’s XML API
Methods implemented
Login
Logout
NewMessages
DeleteNewMessages
SendMessages
SentMessages
DeleteSentMessages
Usage:
It runs in Twisted, uses Trial for unittests.
$ virtualenv --no-site-packages ve $ source ve/bin/activate
Run the client tests, the responses for these are mocked and do not need a Foneworx account set up.
(ve)$ trial tests.client_tests
Run the connection tests, these tests do actually connect to Foneworx to send & receive SMSs. Running these tests will cost you money / SMS credits.
(ve)$ MSISDN=+27xxx USERNAME=xxx PASSWORD=xxx trial tests.connection_tests
Part of the tests is a full stack: receive, reply, delivery report & delete.
(ve)$ USERNAME=xxx PASSWORD=xxx trial \
> tests.connection_tests.FoneworxConnectionTestCase.test_full_stack
tests.connection_tests
FoneworxConnectionTestCase
test_full_stack ... Please send a test SMS to Foneworx in order to fill the inbox.
Checking for new SMSs every 2 seconds
Checking for new SMSs every 2 seconds
Checking for new SMSs every 2 seconds
Checking for new SMSs every 2 seconds
Replying to an SMS received from +27xxxxxxxxx
Waiting until delivered
Not delivered yet: At Network
Not delivered yet: At Network
Not delivered yet: At Network
Delivered!
Deleting the received message
Deleted: Success
Deleting the sent message
Deleted: None
Logging out
Logged out: Success
[OK]
--------------------------------------------------
Ran 1 tests in 51.191s
PASSED (successes=1)
Metadata
Release files for python-foneworx 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-foneworx-0.1.tar.gz | 10.4 kB | Without provenance | Details for python-foneworx-0.1.tar.gz |
Release files / python-foneworx-0.1.tar.gz
| Download URL | python-foneworx-0.1.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
247db999fd542dfe3459da85bd79e34a1a7078cbd29c26c872b9ba5cebc473f5
|
|
BLAKE2b-256 checksum How to use checksums |
257c3d247c34339d47f92907cacca15fe3d83596ae5b28bd3c4c8265f8b4dda2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-foneworx 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.