Skip to main content

A simple todo list REST API

Project description

Todo List REST API

A simple todo list application with REST endpoints and a web dashboard.

Installation

pip install todo-rest

Running the App

After installation, you can run the app with the installed command:

todo-rest

Or using the development commands:

uv run python main.py

Or with uvicorn directly (with auto-reload for development):

uv run uvicorn todo_rest.app:app --reload

The API will be available at http://localhost:8000

Dashboard

Open http://localhost:8000 in your browser to view the todo dashboard. The dashboard shows:

  • Total tasks, completed, and pending counts
  • All todos with their status
  • Auto-refreshes every 5 seconds

API Endpoints

Get all todos

GET /todos

Get a specific todo

GET /todos/{id}

Create a new todo

POST /todos
Content-Type: application/json

{
  "title": "Buy groceries",
  "description": "Milk, eggs, bread",
  "completed": false
}

Update a todo

PUT /todos/{id}
Content-Type: application/json

{
  "title": "Buy groceries",
  "description": "Milk, eggs, bread, cheese",
  "completed": true
}

Delete a todo

DELETE /todos/{id}

Interactive API Documentation

FastAPI provides automatic interactive documentation:

  • Swagger UI: http://localhost:8000/docs
  • ReDoc: http://localhost:8000/redoc

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

todo_rest-0.1.5.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

todo_rest-0.1.5-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file todo_rest-0.1.5.tar.gz.

File metadata

  • Download URL: todo_rest-0.1.5.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for todo_rest-0.1.5.tar.gz
Algorithm Hash digest
SHA256 79324472e3ac7341f36b9cec63a74a9115059aafcd7dafa8d49164ac2adc2f36
MD5 7a7072f2fdcd4745349096513638f870
BLAKE2b-256 70b8d92887ac12c691180cab031f72f94799968b6cc8f0d7e19447d289846935

See more details on using hashes here.

File details

Details for the file todo_rest-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: todo_rest-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for todo_rest-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 22702dda247a773fb7e74aa5c79c2e6cb7403cba27fd2f5ef50a28d718f37fec
MD5 536eecbd3d6f5061b2270c0cab548717
BLAKE2b-256 4bb980599be6f6b648bd1bc906ceed06173b818d14324a9bf201f99528217647

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