Full Stack Fastapi Template

From GitHub: Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more. https://github.com/fastapi/full-stack-fastapi-template

September 14, 2024 · 1 min · 21 words · DC

Github Fastapi Sqlmodel

From Github: SQLModel is a library for interacting with SQL databases from Python code, with Python objects. It is designed to be intuitive, easy to use, highly compatible, and robust. SQLModel is based on Python type annotations, and powered by Pydantic and SQLAlchemy. https://github.com/fastapi/sqlmodel 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 from typing import Optional from sqlmodel import Field, Session, SQLModel, create_engine class Hero(SQLModel, table=True): id: Optional[int] = Field(default=None, primary_key=True) name: str secret_name: str age: Optional[int] = None hero_1 = Hero(name="Deadpond", secret_name="Dive Wilson") hero_2 = Hero(name="Spider-Boy", secret_name="Pedro Parqueador") hero_3 = Hero(name="Rusty-Man", secret_name="Tommy Sharp", age=48) engine = create_engine("sqlite:///database....

September 12, 2024 · 1 min · 121 words · DC

Set Up SwiftNIO

SwiftNIO is a cross-platform asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. https://github.com/apple/swift-nio 1 2 3 4 5 6 7 8 9 10 sudo apt-get install zlib1g-dev su swift cd ~ git clone https://github.com/apple/swift-nio.git cd swift-nio swift build .build/debug/NIOHTTP1Server <server_ip> 8080 swift build -c release .build/release/NIOHTTP1Server <server_ip> 8080

September 8, 2023 · 1 min · 56 words · DC

Set Up Swift on Ubuntu

Swift is a general-purpose programming language that’s approachable for newcomers and powerful for experts. Open-source Swift can be used on the Mac to target all of the Apple platforms: iOS, macOS, watchOS, and tvOS. Open-source Swift can be used on Linux to build Swift libraries and applications. https://www.swift.org/about/ 1 2 3 4 5 6 7 8 9 10 11 sudo apt update sudo apt install clang libicu-dev build-essential pkg-config VERSION=5.8 wget https://swift....

September 1, 2023 · 1 min · 89 words · DC

Nivo Rocks in React

nivo provides a rich set of dataviz components, built on top of D3 and React. Try with Streamlit too Nivo Component Library Nivo Storybook Interesting visualizations: https://nivo.rocks/storybook/?path=/story/bump--missing-data https://nivo.rocks/storybook/?path=/story/bullet--custom-marker

January 6, 2022 · 1 min · 28 words · DC