PyLuxafor
===============================
.. image:: https://img.shields.io/pypi/v/pyluxafor.svg
:target: https://pypi.python.org/pypi/pyluxafor
:remote:
.. image:: https://img.shields.io/travis/takeontom/pyluxafor.svg
:target: https://travis-ci.org/takeontom/pyluxafor
:remote:
.. image:: https://readthedocs.org/projects/pyluxafor/badge/?version=latest
:target: https://pyluxafor.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
:remote:
.. image:: https://pyup.io/repos/github/takeontom/pyluxafor/shield.svg
:target: https://pyup.io/repos/github/takeontom/pyluxafor/
:alt: Updates
:remote:
Python API for the Luxafor Flag
* Free software: MIT license
* Documentation: https://pyluxafor.readthedocs.io.
Features
--------
* Python 3+
* Simple, clean API to control the
`Luxafor Flag <http://luxafor.com/luxafor-flag/>`
* Where possible, allows the setting of multiple, specific LEDs at once.
Installation
------------
Install via pip::
$ pip install pyluxafor
Create the file: `/etc/udev/rules.d/10-luxafor.rules` with the following
contents::
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idProduct}=="f372", ATTRS{idVendor}=="04d8", MODE:="666"
Then reload udev::
$ sudo service udev reload
Then unplug your Luxafor Flag and reinsert it.
Example usage
-------------
::
from pyluxafor import LuxaforFlag
from time import sleep
flag = LuxaforFlag()
flag.off()
flag.do_fade_colour(
leds=[LuxaforFlag.LED_TAB_1, LuxaforFlag.LED_BACK_1, LuxaforFlag.LED_BACK_2],
r=10, g=10, b=0,
duration=255
)
flag.do_static_colour(leds=LuxaforFlag.LED_BACK_3, r=0, g=0, b=100)
sleep(3)
flag.off()
flag.do_pattern(LuxaforFlag.PATTERN_POLICE, 3)
Credits
---------
Many thanks to `vmitchell85 <https://github.com/vmitchell85>` for his
`luxafor-python <https://github.com/vmitchell85/luxafor-python>` project,
which provided the initial inspiration for this project, and provided easy
answers to the problems I encountered.
If you're looking to control a Luxafor Flag in Windows using Python,
vmitchell85's project is probably the best bet:
* https://github.com/vmitchell85/luxafor-python
=======
History
=======
0.1.0 (2016-12-13)
------------------
* First release on PyPI.
Metadata
Release files for pyluxafor 0.2.0
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 |
|---|---|---|---|---|
| pyluxafor-0.2.0.tar.gz | 23.2 kB | Without provenance | Details for pyluxafor-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyluxafor-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pyluxafor-0.2.0-py2.py3-none-any.whl |
Total release size: 29.2 kB
Release files / pyluxafor-0.2.0.tar.gz
| Download URL | pyluxafor-0.2.0.tar.gz |
|---|---|
| Size | 23.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a810886503657f5fdc1314b081d11cd5b1ae9d5eaef2f751947d98de5627615
|
|
BLAKE2b-256 checksum How to use checksums |
3391519c8ce34c4456ddd7488239a8899952247d430ff7b17fd8b720707294fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyluxafor-0.2.0-py2.py3-none-any.whl
| Download URL | pyluxafor-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
576ecbe7406107f58790269a6b09649a4af14ffa4054e234b66f61257468fa06
|
|
BLAKE2b-256 checksum How to use checksums |
60e36158ee76e342efde4eef75d9375e81f2e277783d99fe34f970aa81e9797b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyluxafor 0.2.0
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.