Skip to main content

No project description provided

Project description

Another

"Another" Python backend framework, for fun.

Installation

pip install another

You also need an ASGI server, such as Uvicorn or Granian.

pip install uvicorn
# or
pip install granian

Usage

Create a main.py file and copy-paste the following snippet into it.

from another import Another, Status, Request, Response


app = Another()

@app.get("/hello")
def hellow_another(req: Request):
	return Response({
        "message": "Hello!",
        "extra": req.query
    }, status=Status.HTTP_200_OK)

And then run the server:

uvicorn main:app

Now open this link localhost:8000/hello?first_name=Mads&last_name=Mikkelsen in your browser.

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

another-0.2.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

another-0.2.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file another-0.2.1.tar.gz.

File metadata

  • Download URL: another-0.2.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.0 CPython/3.10.6 Linux/5.15.0-56-generic

File hashes

Hashes for another-0.2.1.tar.gz
Algorithm Hash digest
SHA256 da219c156916838238433469fe931c4c90e7049404d6a02cd73b6648a68f965d
MD5 97603c14bd33369bd0b99348616a44da
BLAKE2b-256 af9a9a9f5b0faa043ea1770ea886db597cf044da36bf1a30218f304ea1d2a4fb

See more details on using hashes here.

File details

Details for the file another-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: another-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.0 CPython/3.10.6 Linux/5.15.0-56-generic

File hashes

Hashes for another-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5e2de68c00f6880dfb0f7ed351d851c485e8563d1370f759ce0ee8680350e7b
MD5 b215c6100283d4f66999b9a7f889d8f8
BLAKE2b-256 1bd6e20f0c8343377fc427b65d1c318eec1f2560db7497c5c32ea50bb8563fa5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page