Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Synopsis

Vodem Vodafone K4607-Z Web Interface Python bindings

Documentation Status PyPi Version

Code Example

Use the simple interface:

import vodem.simple

vodem.simple.sms_send("+16175551212", "Message String")

inbox = list(vodem.simple.sms_inbox_unread())

vodem.simple.sms_delete(1)

For more advanced features, use the raw api:

import vodem.api
import vodem.util

message = vodem.util.encode_sms_message("Message String")
time = vodem.util.encode_time(datetime.datetime.now())
number = "+16175551212;"

vodem.api.sms_send({'Number' : number, 'sms_time' : time, 'MessageBody' : message })

Exception handling:

import vodem.api
import vodem.exceptions

try:
    vodem.api.disconnect_network()
except vodem.exceptions.VodemError as exc:
    raise

For more examples consult the examples directory

Motivation

This interface is built to integrate sms capability into an application, or other functions of the vodem that are exposed via the web interface.

It requires the hardware vodem and activated sim card.

Installation

Using PyPi

pip install vodem-vodafone-K4607-Z

Using Git

git clone https://github.com/alzeih/python-vodem-vodafone-K4607-Z.git
cd python-vodem-vodafone-K4607-Z
python setup.py build
python setup.py install

API Reference

See http://python-vodem-vodafone-k4607-z.readthedocs.org/

Tests

Warning

As some of the tests are potentially destructive, expensive, or annoying to others, it is best to run tests in a device without a sim card.

To ensure you have been made aware of the risks, read test/unit/api/__init__.py for instructions.

Unfortunately this restriction doesn’t work without the top test module specified explicitly as this places unittest into discovery mode which ignores the load_tests protocol.

Running Tests

python -m unittest test

Contributors

Bugs, Feature requests, Documentation, and Contributions are tracked via this respository.

This project adheres to the Open Code of Conduct. By participating, you are expected to honor this code.

All code should be checked with pylint, tested and documented.

License

MIT. See LICENCE.

Metadata

Release files for zte-mf823 0.0.1.dev21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zte-mf823 0.0.1.dev21
File Size Uploaded Provenance Actions
zte-mf823-0.0.1.dev21.tar.gz 278.8 kB Without provenance Details for zte-mf823-0.0.1.dev21.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zte-mf823 0.0.1.dev21
File Interpreter ABI Platform Actions
zte_mf823-0.0.1.dev21-py3-none-any.whl Python 3 none any Details for zte_mf823-0.0.1.dev21-py3-none-any.whl

Total release size: 290.4 kB

Release files / zte-mf823-0.0.1.dev21.tar.gz

Download URL zte-mf823-0.0.1.dev21.tar.gz
Size 278.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0935cec808c6652dfbbfdac82afb116dc64351b2283816aa9fb7e5f68fff4cf2
BLAKE2b-256 checksum
How to use checksums
381a1ec20acf96dfdab852109a58e6baf77e2af4479f51f9b05e76694d18f32a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.6.8

Release files / zte_mf823-0.0.1.dev21-py3-none-any.whl

Download URL zte_mf823-0.0.1.dev21-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
667394f3df1e1b560a88fff4a76f34ea409635f4a62a78399dad0ee9e939400c
BLAKE2b-256 checksum
How to use checksums
f9dee655b237723625a0afdaa6027c31b9b2756ab3173cf55854bcc6caea4ab5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.6.8

Security for zte-mf823 0.0.1.dev21

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page