기타

Pynecone

HiroDaegu 2023. 1. 15. 22:14
728x90
SMALL

Pynecone

https://pynecone.io/

 

Pynecone: The easiest way to build web apps.

Build anything, faster. Create your whole app in a single language. Don't worry about writing APIs to connect your frontend and backend. With Pynecone you can build anything from internal tools and data apps to complex multi-page apps. This entire website

pynecone.io

 

 

Pynecone is a full-stack framework for building and deploying web apps

웹앱을 빌드 및 개발하기 위한 풀스택 프레임워크

 

제작 목표
순수 파이썬으로 구성
배우기 쉬움
완전한 유연성
프론트엔드, 백엔드, 배포 전부 포함

 

// Example

import pynecone as pc


class State(pc.State):
    count: int = 0

    def increment(self):
        self.count += 1

    def decrement(self):
        self.count -= 1


def index():
    return pc.hstack(
        pc.button(
            "Decrement",
            color_scheme="red",
            border_radius="1em",
            on_click=State.decrement,
        ),
        pc.heading(State.count, font_size="2em"),
        pc.button(
            "Increment",
            color_scheme="green",
            border_radius="1em",
            on_click=State.increment,
        ),
    )


app = pc.App(state=State)
app.add_page(index)
app.compile()
728x90
LIST