Skip to content

v1.0.0

Choose a tag to compare

@tanrax tanrax released this 04 Jul 19:14

First stable release of Bitpoint: create HTTP endpoints quickly using files.

Highlights

  • File-based routing: the directory structure under routes/ defines the routes, the file name (get.py, post.py, ...) defines the HTTP method. Dynamic segments with [param] directories, shared code in routes/lib/.
  • Per-endpoint dependencies: declare dependencies with a PEP 723 block and each endpoint runs in its own isolated, cached environment managed by uv, inside a persistent worker process. Two endpoints can use incompatible versions of the same library.
  • Hot reload: save the file and the server updates automatically. Reloads are always a fresh process or module, never stale bytecode. In production, deploy with git pull && kill -HUP $(cat bitpoint.pid).
  • Simple contract: one handle(request) function per file. Return a str, dict, list, bytes, a tuple with status and headers, or None, and the sensible response happens by default.
  • No configuration: everything is controlled from the command line (--port, --host, --dir, --production, --no-install).

Install

pip install bitpoint

See the README for the full guide.