pyembedded
Python library to get data from embedded modules like RFID, GPS, GSM, Raspberry Pi
Note that some of the hardware like RFID, GPS, GSM can directly be interfaced with Windows or Linux based machine but some of the modules will require Raspberry Pi or other similar embedded devices.
Installation:
Package can be installed via pip:
$ pip3 install pyembedded
Verify if it is installed:
$ import pyembedded $ pyembedded.__version__
RFID Usage:
Run below basic code to get the rfid id
Note: Use port as ‘COM1’, ‘COM2’ etc in case of windows machine. Use port as ‘/dev/ttyUSB0’ in case of linux based devices:
$ from pyembedded.rfid_module.rfid import RFID $ rfid = RFID(port='COM3', baud_rate=9600) $ print(rfid.get_id())
GPS Usage:
Run below code to get GPS related data
Note: Use port as ‘COM1’, ‘COM2’ etc in case of windows machine. Use port as ‘/dev/ttyUSB0’ in case of linux based devices:
$ from pyembedded.gps_module.gps import GPS $ gps = GPS(port='COM3', baud_rate=9600) $ print(gps.get_lat_long())
Other methods available:
$ get_lat_long() $ get_time() $ get_quality_indicator() $ get_no_of_satellites() $ get_raw_data()
GSM Usage:
Run below code to interface with GSM SIMCOM module
Note: Use port as ‘COM1’, ‘COM2’ etc in case of windows machine. Use port as ‘/dev/ttyUSB0’ in case of linux based devices:
$ from pyembedded.gsm_module.gsm import GSM $ import time $ phone = GSM(port='COM3', baud_rate=9600) $ if phone.modem_active(): $ phone.make_call(number='9876543210') $ time.sleep(4) $ phone.end_ongoing_call()
Other methods available:
$ phone.make_miss_call(number='9876543210', timeout=5) $ phone.get_international_subscriber_identity() $ phone.get_modem_serial_number() $ phone.get_modem_revision_number() $ phone.get_modem_model_no() $ phone.get_modem_manufacturer() $ phone.get_signal_strength() $ phone.send_sms(number="+14691234567", message="Hello World") $ phone.read_all_sms() $ phone.read_sms_by_msg_id(msg_id=3)
Raspberry Pi Usage:
Run below code to get some useful data from Raspberry Pi
NOTE: Some of the below methods can also run on other linux based os:
$ from pyembedded.raspberry_pi_tools.raspberrypi import PI $ pi = PI() $ pi.get_ram_info() $ pi.get_disk_space() $ pi.get_cpu_usage() $ pi.get_connected_ip_addr(network='wlan0') $ pi.get_cpu_temp() $ pi.get_wifi_status()
Change Log
1.0 (12/6/2020)
First Release
1.14 (12/6/2020)
Added RFID module
2.1 (12/6/2020)
Added GPS module
3.1 (12/27/2020)
Added GSM module
Added modem and phone related functions
Added end ongoing call
3.3 (12/28/2020)
Added sms functionality in GSM
3.4 (1/2/2021)
Added Pi tools
3.5 (1/2/2021)
Added Pi tools
Metadata
Release files for pyembedded 3.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 | Actions |
|---|---|---|---|---|
| pyembedded-3.5.tar.gz | 8.2 kB | Without provenance | Details for pyembedded-3.5.tar.gz |
Release files / pyembedded-3.5.tar.gz
| Download URL | pyembedded-3.5.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc47680688df2858b01834db305d0a2b29d0622986b654e6991de02f4f9b1e28
|
|
BLAKE2b-256 checksum How to use checksums |
7a96f0f81ba94c84e84a935120369d0be058af7fbbda5db3f9a386be32b21ee1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.6
|
Security for pyembedded 3.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.