Skip to main content

🔐 datapro-python-gui

Reusable DataPRO authentication + CustomTkinter GUI entry point for Python desktop apps.

Version Python License Category

🔗 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.1

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

Source distribution (sdist)

Source distribution for datapro-python-gui 0.1.1
File Size Uploaded Provenance Actions
datapro_python_gui-0.1.1.tar.gz 14.8 kB Without provenance Details for datapro_python_gui-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datapro-python-gui 0.1.1
File Interpreter ABI Platform Actions
datapro_python_gui-0.1.1-py3-none-any.whl Python 3 none any Details for datapro_python_gui-0.1.1-py3-none-any.whl

Total release size: 28.7 kB

Release files / datapro_python_gui-0.1.1.tar.gz

Download URL datapro_python_gui-0.1.1.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fce334cd30b33a9630a3bbc9df17b1162342f89280eb238254781eea3d563bc1
BLAKE2b-256 checksum
How to use checksums
f00b23bde071af91a9d9316d5e4f4020674e2f18188f513ddaea69e396231286
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.1-py3-none-any.whl

Download URL datapro_python_gui-0.1.1-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4098c79bbd0ade033260dd016d31e7bd3b41b2f252a027548c110c2ecd5290a0
BLAKE2b-256 checksum
How to use checksums
3ec80e23b253ccda1c104f39a5588b5322df97044f20d80c32926d2d139ddb5d
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.1

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

2 release files No provenance

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