Skip to main content

raspycheck

raspycheck is a small tool to grab infos from and execute commands on a Raspberry Pi via SSH.

raspycheck is in an early alpha stage!

Usage:

from raspycheck import RasPyCheck

rpc = RasPyCheck(ip='ip', user='username', password='password', persist=False) # Setting persist to True keeps the connection open

# Commands to grab data from the RPI
ip = rpc.get_rpi_ip()
hostname = rpc.get_rpi_hostname()
cpu_temp = rpc.get_rpi_cpu_temp()
usb_devices = rpc.get_rpi_usb_devices()
rpi_version = rpc.get_rpi_version()
free_mem = rpc.get_rpi_free_memory()
total_mem = rpc.get_rpi_total_memory()
essids = rpc.get_rpi_available_essids()
date = rpc.get_rpi_date()
installed_packages = rpc.get_rpi_list_installed_packages()

all_infos = rpc.get_all_rpi_info()

# Commanding the Pi

rpc.cmd_reboot_pi()

# Generic stuff

output = rpc.run_command_get_output('pwd') # executes pwd on the RPI and returns the output
return_code = rpc.run_command_get_return_code('pwd') # executes pwd on the RPI and returns the return code

# Only when persist=True:

rpc.close_instance_client() # closes SSH client

Supported Versions

raspycheck is currently only tested with Python3.9

TODO:

  • Extend errorhandling
  • Extend functionality
  • Add tests
  • Relax/Check dependencies
  • ...

Release History

0.0.2 (2021-05-24)

Improvements

  • Added README
  • Added HISTORY

Bugfixes

  • Fixed package structure

0.0.1 (2021-05-24)

  • Initial Creation

Metadata

Release files for raspycheck 0.0.2

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

Source distribution (sdist)

Source distribution for raspycheck 0.0.2
File Size Uploaded Provenance Actions
raspycheck-0.0.2.tar.gz 6.3 kB Without provenance Details for raspycheck-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for raspycheck 0.0.2
File Interpreter ABI Platform Actions
raspycheck-0.0.2-py3-none-any.whl Python 3 none any Details for raspycheck-0.0.2-py3-none-any.whl

Total release size: 14.4 kB

Release files / raspycheck-0.0.2.tar.gz

Download URL raspycheck-0.0.2.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
217ccb3899a37bdb76ced7080630db476f7171d7bc52bebfafd812d97e5360c5
BLAKE2b-256 checksum
How to use checksums
3a086cb003142abe057395eb3e29ff26111470b4615dfdf5f0f110cd076a13d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

Release files / raspycheck-0.0.2-py3-none-any.whl

Download URL raspycheck-0.0.2-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf1ab8c59d3023ef3d9a4338ea9f05348337c8512eb1e2a78679feb93b0ccaa4
BLAKE2b-256 checksum
How to use checksums
cefcfaa759866ec60f6b97563dd6202d36fd179ef38a53137ee09166f34fabe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

Security for raspycheck 0.0.2

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

0.0.2 This release

2 release files No provenance

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