Skip to main content

My short description for my project.

Project description

pyangi

pyangi: python dasturchilari uchun kichik wsgi aplication

Purpose PyPI

pyangi amaliyot uchun qilingan gunicorn bilan run qilinadi

installation

   pip install pyangi

How to use it

Basic usage

from pyangi.app import Pyangi

app = Pyangi()


@app.route("/home")
def home(request, response):
    response.text = "hello from home page"



@app.route("/about")
def about(request, response):
    response.text = "hello from about page"

@app.route("/home/{name}")
def greetings(request, response, name):
    response.text = f"hello my friend {name}"

@app.route("/books")
class Books:
    def get(self, request, response):
        response.text = "this method get"

    def post(self, request, response):
        response.text = "Endpoint to create books"

5c5c8e2 (initial commit)

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

pyangi-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyangi-0.1.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file pyangi-0.1.1.tar.gz.

File metadata

  • Download URL: pyangi-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pyangi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 06bd68990689906aecf048c0860ba9c47c735f0960a3069e88f5b3377575f034
MD5 7cf131c1e10beb6ccf4fdd711d0ae6c6
BLAKE2b-256 88c42c0f41bcb5232d505164cb8f35edca3806c38fb964b3cebd8c85d44dc18b

See more details on using hashes here.

File details

Details for the file pyangi-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyangi-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pyangi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2cd4e71af196a82dcaaf5b029b10cc09df86d1b5f32c25ee06a06961957a560a
MD5 99253fb978092bfc3c45835a6f64683d
BLAKE2b-256 9b6eb8cab59c9095c1e926e39a0016a9e454ecd13d79430e169cac350768bf0b

See more details on using hashes here.

Supported by

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