Skip to main content

Add your description here

Project description

FastAPI Freelance Backend Template

This repository is a reusable FastAPI backend template for a freelancing platform. It includes:

  • FastAPI with async endpoints
  • PostgreSQL with SQLAlchemy 2.0 async sessions
  • JWT authentication for users
  • A fastapi-ready CLI to scaffold new projects from this template
  • GitHub Actions workflows for CI and PyPI publishing with OIDC trusted publishing

Quick Start

Install the template command with pip:

python -m pip install .

Install dependencies:

uv sync

Run the app:

uvicorn main:app --reload

Create a New Project

After installing this package, generate a fresh project from the template:

fastapi-ready my-new-app
cd my-new-app
uv sync
uvicorn main:app --reload

Environment Variables

Create a .env file in the project root:

DATABASE_URL=postgresql+asyncpg://postgres:root@localhost:5432/users
SECRET_KEY=your-secret-key
ACCESS_TOKEN_EXPIRE_MINUTES=60
SQL_ECHO=False
JWT_ALGORITHM=HS256

CI

The repository includes a GitHub Actions workflow that installs dependencies and runs checks on every push and pull request.

CD to PyPI

Publishing uses GitHub Actions OpenID Connect trusted publishing through PyPI.

When configuring the PyPI trusted publisher, use these values:

  • PyPI project name: project name
  • Owner: owner
  • Repository name: repository
  • Workflow name: workflow.yml
  • Environment name: pypi

The publishing workflow lives at .github/workflows/workflow.yml.

Files

  • .github/workflows/ci.yml - test workflow
  • .github/workflows/workflow.yml - PyPI publish workflow

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_ready-0.1.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_ready-0.1.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_ready-0.1.1.tar.gz.

File metadata

  • Download URL: fastapi_ready-0.1.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fastapi_ready-0.1.1.tar.gz
Algorithm Hash digest
SHA256 65003771116db6f3a526045290054733cbe96bad2fe1bca3f9622114a137f043
MD5 6665a909c592b8eda2154eeb51fbcbbd
BLAKE2b-256 493f2a8cce65591527493dcea775e2dd31ae23b2887504f4717f01ccff4f4132

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastapi_ready-0.1.1.tar.gz:

Publisher: workflow.yml on Sachinn-p/fastapi-ready

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fastapi_ready-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fastapi_ready-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fastapi_ready-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d57296585182dd69994c7f416e8c31f24ee128b4a2ca95652417894050525bb
MD5 807f493eb9c8b701d71c21e44c40de6a
BLAKE2b-256 bd1beb9cb2504024fb505cc14c1389f19447f14dfdc2c56733b4d5a5d4cfe035

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastapi_ready-0.1.1-py3-none-any.whl:

Publisher: workflow.yml on Sachinn-p/fastapi-ready

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page