🔐 datapro-python-gui
Reusable DataPRO authentication + CustomTkinter GUI entry point for Python desktop apps.
🔗 Quick Navigation
| Section | Description |
|---|---|
| ✨ Features | What the package provides |
| 🚀 Installation | pip install and requirements |
| 📖 Usage | Three integration patterns |
| 🎨 Branding | Customize look & feel per app |
| ⚙️ Configuration | Config dict vs environment variables |
| 🏗️ Development | Editable install, tests, build |
| 📁 Structure | Package layout |
| ⚖️ License | Terms of use |
📋 Overview
datapro-python-gui is a small, dependency-light library that gives any Python desktop app a ready-made DataPRO sign-in flow plus a hardened CustomTkinter window launcher. It handles:
- talking to the DataPRO REST API (
/auth/login,/auth/password) - persisting and reusing a session token per app
- showing a modal, brandable login dialog
- creating, centering, focusing, and revealing the main CTk window
You bring your app's UI (or none at all). The library brings the authentication and window plumbing.
✨ Features
🔑 DataPRO authentication
REST-based login with token sanitization, atomic session persistence, and password-update support using owner credentials.
🖼️ Brandable login dialog
One LoginWindow class, fully themable per app via kwargs — accent color,
logo emoji, tagline, footer, copyright, window size.
🪟 Hardened window launcher
launch_studio() handles the deiconify → center → lift → focus → on-top →
redraw sequence that desktop apps need on Windows/macOS.
💾 Per-app session isolation
Each downstream app gets ~/.<app_name>/session.json — no session collisions
when multiple DataPRO-backed apps share one machine.
🔒 Zero secrets in the wheel
Configuration comes from a config= dict or DATAPRO_* environment variables.
No .env is ever bundled, read, or written by the library.
🐍 Modern Python
Python 3.9+, pyproject.toml (PEP 621), src-layout, optional [dotenv] extra.
🚀 Installation
Requirements
- Python 3.9+ (3.10 or newer recommended)
- pip
- OS: Windows 10/11, macOS 10.15+, or Linux with Tk support
- Display: a graphical session (this is a desktop GUI library)
From PyPI
pip install datapro-python-gui
Metadata
Release files for datapro-python-gui 0.1.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 |
|---|---|---|---|---|
| datapro_python_gui-0.1.0.tar.gz | 12.5 kB | Without provenance | Details for datapro_python_gui-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datapro_python_gui-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for datapro_python_gui-0.1.0-py3-none-any.whl |
Total release size: 23.8 kB
Release files / datapro_python_gui-0.1.0.tar.gz
| Download URL | datapro_python_gui-0.1.0.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c1215d4e0f03d774f8729fb068ac2f531e2a28ea3f66e18f6d1f40f5edab3d4
|
|
BLAKE2b-256 checksum How to use checksums |
3790596e6ab5474f6ab956ae9a62899b89c36172d23386d3387a8baa7c807689
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / datapro_python_gui-0.1.0-py3-none-any.whl
| Download URL | datapro_python_gui-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90406eec62582b71688953a2f4c6f5f30a6472564a363d996dfe1fe30b4add84
|
|
BLAKE2b-256 checksum How to use checksums |
717da69936d513857b2c28112fa36a754690698c6d749eeaf0ba3fb4df4bf778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for datapro-python-gui 0.1.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.