Skip to main content

No project description provided

Project description

Another

"Another" Python backend framework, for fun.

justforfunnoreally.dev badge

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.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

another-0.2.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: another-0.2.2.tar.gz
  • Upload date:
  • Size: 3.7 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.2.tar.gz
Algorithm Hash digest
SHA256 9c1e7829f0ca64a26b3405f20004d619ba15072de94abcb6e363805d5c4d8431
MD5 9cf9d1ff499fc92abd3d90db36f3cba9
BLAKE2b-256 844c46f9b3219cefa0d57b28e8504ad663f838c2eff97a97d70d3d3122a3f76b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: another-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3118607dd176d269878472a1204749c908ba455dfd3b70bd9bcfd341ae96f9ba
MD5 f703fe547bcf7e35ec51fb6320521cea
BLAKE2b-256 90cd57a7655d3196f4e883f4ca09ca7b14d67653a6c1a8671aeced352b8b97d7

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