Skip to main content

A tiny web framework to create APIs rapidly

Project description

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

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

tiny-api-0.1.1.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file tiny-api-0.1.1.tar.gz.

File metadata

  • Download URL: tiny-api-0.1.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for tiny-api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1ffff623a1f0b080f8baffff53f99035b837c4ae7c6231367fec5f66a41b5630
MD5 23ceb67bef463c116c7e129824e08b44
BLAKE2b-256 6d20f901ac41a52155520dd1775a02f96d97485dedce0aa3dd6aae5b460f3216

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