Skip to main content

A simple FastAPI wrapper package for quick testing of auth endpoints.

Project description

simple-fastapi-backend-server

PyPI version

A minimal, prebuilt FastAPI backend server for quick authentication prototyping.

This package instantly runs a FastAPI server with the following endpoints:

  • GET / — health check
  • POST /register — simulate user registration
  • POST /login — simulate user login

Useful for frontend developers who need a simple, no-setup backend server to test and build authentication flows.


🚀 Features

  • Preconfigured FastAPI server
  • Lightweight, zero-setup
  • CLI entry point: simple-fastapi-backend-server
  • Returns mock responses for login and registration
  • Ideal for frontend devs prototyping login/register UIs

🔧 Installation

pip install simple-fastapi-backend-server

▶️ Usage

Once installed, simply run:

simple-fastapi-backend-server

The server will start at http://localhost:8000.

📋 Endpoints

  • GET /

    { "message": "API is running" }
    
  • POST /register

    Request body:

    {
    "username": "johndoe",
    "password": "secret"
    }
    

    Response:

    {
    "message": "User registered successfully",
    "user": {
        "username": "johndoe",
        "password": "secret"
    }
    }
    
  • POST /login

    Request body:

    {
    "username": "johndoe",
    "password": "secret"
    }
    

    Response:

    {
    "message": "User logged in successfully",
    "user": {
        "username": "johndoe",
        "password": "secret"
    }
    }
    

🧠 When to Use This

  • ✅ You’re a frontend developer building and testing login/signup forms

  • ✅ You don’t want to waste time setting up a full backend

  • ✅ You want to test fetch/axios calls, error handling, and form logic

  • ❌ Not for production — responses are static and no database is used

🧩 No Need to Build Your Own FastAPI Backend

This package eliminates the need to create a FastAPI project from scratch for simple frontend authentication testing. Just install and run it.

Perfect for React, Vue, Angular, or mobile developers building login/registration UIs.

🛑 Not Included

  • No real authentication

  • No token generation or database

  • No user validation or error handling

👨‍💻 Author Created by Ataur Rahman

📄 License

MIT License

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

simple_fastapi_backend_server-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

simple_fastapi_backend_server-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for simple_fastapi_backend_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6521d9fef2084c7eab61193d2f3ee740f9df1566c3b174088f40930cadb15ced
MD5 6f6ed9c80730b2aca9d504b29d611c8e
BLAKE2b-256 0a8e5f7b7de67a9b150bdac3d341dc8549ca0216d49bdf6b9957c703527bcc9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_fastapi_backend_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4c8997c1e4d906a2d273eb9ee99cb9ccb032bdca4774d63824b77b991aa9d72
MD5 d33425d3d2e2ad99c04baa7e1fcfc232
BLAKE2b-256 3308962a740382bfa9e8b0212b14f625dc57adb323a895b8f2f3068c3803b863

See more details on using hashes here.

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