Skip to main content

Tiny-api

Tiny-api is a python web framework for creating Restful APIs written for learning purpose out of curiosity. It is written with the help of Webob, a library which provides objects for HTTP requests and responses.

Installation

Install using pip.

$ pip3 install tiny-api

Getting Started

It’s really easy to get started with tiny-api.

from tiny_api import Tinyapi
from tiny_api.Responses import JsonResponse
from tiny_api.Status import HTTP_200_OK

app = Tinyapi()

@app.route('/home')
def home(request):
    return JsonResponse({'data':'hello world'},HTTP_200_OK)

Credits

Thanks to Jahongir Rahmonov’s awesome blog that helped me get started with this project. Visit his blog

Release files for tiny-api 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tiny-api 0.1.1
File Size Uploaded
tiny-api-0.1.1.tar.gz 7.5 kB Details

Release files / tiny-api-0.1.1.tar.gz

Download URL tiny-api-0.1.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1ffff623a1f0b080f8baffff53f99035b837c4ae7c6231367fec5f66a41b5630
BLAKE2b-256 checksum
How to use checksums
6d20f901ac41a52155520dd1775a02f96d97485dedce0aa3dd6aae5b460f3216
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

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