Skip to main content

canano

Python library for Canano Raspberry Pi add-on board.

Installation

Use pip to install package on Raspberry Pi

pip install canano

Copy /scripts using svn or by cloning the repo

sudo svn checkout https://github.com/Tbruno25/canano/trunk/scripts

Run rpi_setup.py to modify /boot/config and /etc/network/interfaces for use with the canano board

sudo python3 scripts/rpi_setup.py
sudo reboot

Usage

The api currently gives you control over the components on the board

from canano import red_led, green_led, relay, button

red_led.on() # activate
green_led.off() # deactivate
button.state # returns state 

canano controls the socketcan interface allowing you to easily adjust on the fly

from canano import canano
canano.baud = 250000 # sets bus baudrate to 250k
canano.reset() # clears buffer 
canano.bus # python-can bus object 
canano.bus.recv() # returns next message

Play around with it to find interesting use cases!

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Metadata

Release files for canano 0.0.4

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

Source distribution (sdist)

Source distribution for canano 0.0.4
File Size Uploaded Provenance Actions
canano-0.0.4.tar.gz 3.0 kB Without provenance Details for canano-0.0.4.tar.gz

Built distribution (wheel)

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

Total release size: 7.0 kB

Release files / canano-0.0.4.tar.gz

Download URL canano-0.0.4.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4d4f4e4f396db932814e0d07befb68fd8553e3fc87f92a3310272b4bcce62631
BLAKE2b-256 checksum
How to use checksums
97fd3b97c81c1319b1fa8ddfeba7f62be4fd2859b3d7109414367689f6bd1474
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release files / canano-0.0.4-py3-none-any.whl

Download URL canano-0.0.4-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e62083811a0376f56421ec2e3f4575ae664710aba7e17e747287ad2512405bf
BLAKE2b-256 checksum
How to use checksums
6d8e44d096f7c8ac3023c84f8f8951c7d1dbdbe6c72ad062613cf25bb37c8a1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Security for canano 0.0.4

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.4 This release

2 release files No provenance

0.0.2

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