Skip to main content

Raspberry Pi controller

help

Raspberrypi controller Wiki

Feature

  1. Connect in ssh to the Raspberry Pi or any linux (Feature may be not presents)
  2. Can connect using IP or DOMAIN (.local included)
  3. Module and Global call are supported
  4. The function can be run on the Raspberry Pi by adding @raspberry_control.raspberry_command() on top of a function and get the result
  5. Get Output of a function that was run on the raspberry
  6. Real-time output
  7. Run command on the Raspberry Pi with raspberry_control.run_command("command here")
  8. You can do @raspberrypi.timeout(time,default) will change the timeout for a functions
  9. Get file from the server and read it ? / write it localy and update after on the server

Example

import raspberrypi_control # import package for raspberrypi controlling over ssh  
import os # raspberryPi control can automacly install package.
import time  
  
rp = raspberrypi_control # rp is for RaspberryPi  
  
i = 1234567890  
  
  
@rp.raspberry_command() # When function is called its automatcly run on the raspberrypi fallback : local
def test():  
    print("Hello RaspBerryPi")  
    return "finished"  
  
  
@rp.raspberry_command() # When function is called its automatcly run on the raspberrypi fallback : local
def other():  
    global i  
    print("Hello RaspberryPi h")  
    th = 0  
    print(i)  
    os.system("echo Hello World")  
    while True:  
        th = th + 1  
        if th == 30:  
            time.sleep(0.1)  
            break  
    return th  
  
  
if __name__ == "__main__": # put all you're code to run at start here. Because if not the code will be run 2 time  
    rp.raspberrypi().set_raspberry_info("username here", "password here") # set login info here
    rp.raspberrypi().set_preparation("raspberrypi.local", 8, 1) # config locator for the raspberrypi  
    rp.raspberrypi().local() # set the start ip set in the line in the top  
    rp.config("main") # file name if this file (no .py)  
    rp.run_command("Hello World",True) # true is for if console ouput is print or no
    print(test())  
    print(other()) # you can get the output after

How to install the package

Do pip install raspberry-control Supported for python 3.10 and higher* *note not tested for lower version
Was tested to work on linux and window. Mac support may be limited
dependencies = [ "requests", "paramiko", "psutil" ]

Bug report

Github - Issues

Metadata

Release files for raspberrypi-control 2.0.6

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

Source distribution (sdist)

Source distribution for raspberrypi-control 2.0.6
File Size Uploaded Provenance Actions
raspberrypi_control-2.0.6.tar.gz 12.1 kB Without provenance Details for raspberrypi_control-2.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for raspberrypi-control 2.0.6
File Interpreter ABI Platform Actions
raspberrypi_control-2.0.6-py3-none-any.whl Python 3 none any Details for raspberrypi_control-2.0.6-py3-none-any.whl

Total release size: 23.4 kB

Release files / raspberrypi_control-2.0.6.tar.gz

Download URL raspberrypi_control-2.0.6.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d228871f33263e43642ef0a511b7be4789c87ffa3e47cc0ca6ccab4e235979ab
BLAKE2b-256 checksum
How to use checksums
bc2029c3c9f9e356c0d4ddaabe11e9b020b20ee413b6c1ff8c5646112be27f18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release files / raspberrypi_control-2.0.6-py3-none-any.whl

Download URL raspberrypi_control-2.0.6-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0886f2ed65c4c2ec736a2b32c203a3ceab1a20998ef14d3d96cd5539ffc3b483
BLAKE2b-256 checksum
How to use checksums
c65363cbaf57eb8f34491b05987ff6042747da7ed5a5fa02c0535a82af5d8a50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Security for raspberrypi-control 2.0.6

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.

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