Handy graphical user interface library for daily use
Project description
Pancake Kit
Pancake Kit aims to provide a handy user interface to your Python codes. It provides GUI as a lightweight web app powered by Flask.
Quick tasting
Assume that there is a function that calculates the nth Fibonacci number. In three steps, you can prepare a GUI that wraps this function.
from pancakekit import Pancake
def fibonacci(n=10):
return (fibonacci(n-1) + fibonacci(n-2)) if n >= 2 else n
cake = Pancake() # Step 1: Make a Pancake instance.
cake.add(fibonacci) # Step 2: Add your function to the pancake.
cake.serve() # Step 3: Serve the cake.
When you open http://127.0.0.1:8000/
in a web browser, you will find an input box for entering n
and a button that invokes fibonacci()
.
Adding an interface to your exisiting python script in an instant
pip -m pancakekit __YOUR_SCRIPT_FILE_NAME__
For more details: https://github.com/chocolate-icecream/pancakekit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pancakekit-0.2.2.tar.gz
(36.3 kB
view details)
File details
Details for the file pancakekit-0.2.2.tar.gz
.
File metadata
- Download URL: pancakekit-0.2.2.tar.gz
- Upload date:
- Size: 36.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7567fd064ee32a8fec678de4aa7c7cb2fa787d976ac5644ec582b03557309e9e |
|
MD5 | 640cde35f7b653b289887f3872679171 |
|
BLAKE2b-256 | 055482cd73db851518f90278cdef6c8a16687a4af91903b0961fb442cdfa8993 |