FrameDirect
FrameDirect es una librería en Python para dibujar píxeles directamente en el framebuffer de Linux. Perfecta para proyectos que necesitan control directo del hardware gráfico sin depender de entornos gráficos como X11 o Wayland.
Características
- Acceso directo al framebuffer
/dev/fb0 - Dibujo de píxeles a bajo nivel
- Compatible con pantallas de 32 bits de color
- Colores predefinidos para facilitar el uso
- Colores en formato ARGB (en hexadecimal)
- Simple, ligera y sin dependencias pesadas
Requisitos
- Linux con framebuffer habilitado y acceso a
/dev/fb0 - Python 3.6 o superior
Instalación
Puedes instalar la libreria desde PyPi:
pip install FrameDirect
O directamente desde GitHub:
pip install git+https://github.com/gneval9/FrameDirect.git
Uso básico
import framedirect
framedirect.init() # Inicializa el framebuffer
framedirect.resolution() # Devuelve la resolución de la pantalla (Variables: screen_width y screen_height)
framedirect.draw_pixel(100, 100, framedirect.RED) # Dibuja un píxel rojo en (100, 100)
framedirect.draw_line(200, 200, 300, 300, framedirect.GREEN) # Dibuja una línea verde de (200, 200) a (300, 300)
framedirect.draw_circle(400, 400, 50, 0xFF0000FF) # Dibuja un circulo azul en (400, 400) con radio 50px
framedirect.fill(framedirect.BLACK) # Llena la pantalla con el color negro
framedirect.update() # Actualiza el framebuffer
framedirect.close() # Cierra el framebuffer
Licencia
MIT License
Autor
Hecho con amor por gneval9 Software <3 Contacto: gneval99@gmail.com
Metadata
Release files for framedirect 0.6.2
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 |
|---|---|---|---|---|
| framedirect-0.6.2.tar.gz | 4.1 kB | Without provenance | Details for framedirect-0.6.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| framedirect-0.6.2-py3-none-any.whl | Python 3 | none | any | Details for framedirect-0.6.2-py3-none-any.whl |
Total release size: 8.6 kB
Release files / framedirect-0.6.2.tar.gz
| Download URL | framedirect-0.6.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60151ff3486a92b4e9ce1d2f94fef39d569b5ea54cbcf6138d4d22f2c87dbc5f
|
|
BLAKE2b-256 checksum How to use checksums |
0582d37f524be6ecacd7c90f6211133a5c740605229a9b6abb0845abaf7094e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / framedirect-0.6.2-py3-none-any.whl
| Download URL | framedirect-0.6.2-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61b8ac53fa8cef039da11caf733ba3d37f565d11bc2120c62e4a466f1bce4f6f
|
|
BLAKE2b-256 checksum How to use checksums |
3979ee865bd9ae54de35a37fc0683983b237c139ca1b312aa708f23b9e101a9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for framedirect 0.6.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.