Dynamic Python Forms | Abstra (original) (raw)
Easy as print()
1
2
3
4
5
6
from abstra.forms import *
display("Welcome to your order management app 🤓")
spreadsheet = read_file("Upload your spreadsheet here:")
One step, safe login with logic
7
8
9
10
11
email = get_user().email
if not "@abstra.app" in email:
exit()
display(f"Welcome, {name}!")
Use your favorite libraries
12
13
14
15
16
17
18
19
import requests
def get_customers():
return requests.get(
"https://myapi.com/customers"
).json()
selected = read_cards("Choose a customer", get_customers())
Read and write files just as in your local scripts
20
21
22
23
import pandas as pd
df = spreadsheet.file
display_pandas(df[df.customer_id == selected_customer.id])