My short description for my project.
Project description
pyangi
pyangi: python dasturchilari uchun kichik wsgi aplication
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06bd68990689906aecf048c0860ba9c47c735f0960a3069e88f5b3377575f034
|
|
| MD5 |
7cf131c1e10beb6ccf4fdd711d0ae6c6
|
|
| BLAKE2b-256 |
88c42c0f41bcb5232d505164cb8f35edca3806c38fb964b3cebd8c85d44dc18b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cd4e71af196a82dcaaf5b029b10cc09df86d1b5f32c25ee06a06961957a560a
|
|
| MD5 |
99253fb978092bfc3c45835a6f64683d
|
|
| BLAKE2b-256 |
9b6eb8cab59c9095c1e926e39a0016a9e454ecd13d79430e169cac350768bf0b
|