Skip to main content

Lapis is a file-based REST API framework inspired by Modern Serverless Cloud Services

To create a basic Lapis server, create a folder called api and create python script named path.py then within your main folder create a python script to start the server (we will call this script main.py in our example)

Your project directory should look like this:

project-root/
|-- api/
|  |-- path.py
`-- main.py

Then within the api/path.py file create your first GET api endpoint by adding the following code:

from lapis import Response, Request

async def GET (req : Request) -> Response:
    return Response(status_code=200, body="Hello World!")

Finally by adding the following code to main.py and running it:

from lapis import Lapis

server = Lapis()

server.run("localhost", 80)

You can now send an HTTP GET request to localhost:80 and recieve the famous Hello World! response!

Development

Install the project and its test and lint dependencies:

uv sync --locked --extra test --group lint

Run the tests, format and lint the code, or build distributions directly with uv:

uv run --locked python -m pytest -v
uv run --locked black .
uv run --locked pylint src tests
uv build

Metadata

Release files for lapis-api 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lapis-api 0.2.3
File Size Uploaded Provenance Actions
lapis_api-0.2.3.tar.gz 45.4 kB With provenance Details for lapis_api-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lapis-api 0.2.3
File Interpreter ABI Platform Actions
lapis_api-0.2.3-py3-none-any.whl Python 3 none any Details for lapis_api-0.2.3-py3-none-any.whl

Total release size: 60.6 kB

Release files / lapis_api-0.2.3.tar.gz

Download URL lapis_api-0.2.3.tar.gz
Size 45.4 kB
Tags Source
SHA-256 checksum
How to use checksums
54fe71058a01213ddc70a6e8040de9933b898d5d6d5da1aa097d3606d3792119
BLAKE2b-256 checksum
How to use checksums
bcb1a1c9ade486db24ae920e5fda2de1e953f125bfbff882d0726ce192423602
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / lapis_api-0.2.3-py3-none-any.whl

Download URL lapis_api-0.2.3-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc2423059894d44ed9d75bfb90611fe8db28574ef73a464c123bebd925331789
BLAKE2b-256 checksum
How to use checksums
dfc8911726d33b7bc66c5efcfa3fd40aa46f2d485bdfbc167b17387dc08807d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for lapis-api 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lapis_api-0.2.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page