비전공자 개발일기

Pynecone 본문

기타

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

'기타' 카테고리의 다른 글

gitignore 사용법  (0) 2023.04.12
IPhone Toggle Switch  (0) 2022.04.10
PWA Install Ready  (0) 2022.04.07
모바일 웹 페이지 바로가기 아이콘 등록  (0) 2022.04.06
MacBook M1에서 Homebrew 설치 + unknown command cask 문제  (0) 2022.01.22