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!

Metadata

Release files for lapis-api 0.2.2

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.2
File Size Uploaded Provenance Actions
lapis_api-0.2.2.tar.gz 16.6 kB With provenance Details for lapis_api-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 31.0 kB

Release files / lapis_api-0.2.2.tar.gz

Download URL lapis_api-0.2.2.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
eb63e58c5ead14249db08ffe72b39c0fcc280ce9dd35a7d3d2b7952905ff3a96
BLAKE2b-256 checksum
How to use checksums
3c3fbd957c13fe86530df43d27d72c18e26d7c8a4526b1cb81f68d6a827a8e45
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 21, 2026.

Transparency log

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

Download URL lapis_api-0.2.2-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
567f0fb600af28f17d55e4fd24ffd29c22d937f208454f6fd24911ba6b26b633
BLAKE2b-256 checksum
How to use checksums
d63db8bfbdf2bd7a347e1f4075abb46dd1b7468f07919aed729a53aa71220226
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 21, 2026.

Transparency log

Security for lapis-api 0.2.2

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.2.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 21, 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