Giter Site home page Giter Site logo

showhilllee / apistar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from encode/apistar

0.0 2.0 0.0 3.69 MB

A smart Web API framework, for Python 3. ๐ŸŒŸ

Home Page: https://docs.apistar.com

License: BSD 3-Clause "New" or "Revised" License

Python 76.14% CSS 12.04% HTML 10.62% JavaScript 0.83% Shell 0.37%

apistar's Introduction

API Star

A smart Web API framework, for Python 3.

Build Status codecov Package version


Community: https://discuss.apistar.org ๐Ÿค” ๐Ÿ’ญ ๐Ÿค“ ๐Ÿ’ฌ ๐Ÿ˜Ž

Documentation: https://docs.apistar.com ๐Ÿ“˜


Features

Why might you consider using API Star for your next Web API project?

  • Schema generation - Support for automatically generating OpenAPI schemas.
  • Expressive - Type annotated views, that make for expressive, testable code.
  • Performance - Dynamic behaviour for determining how to run each view makes API Star incredibly efficient.
  • Throughput - Support for asyncio allows for building high-throughput non-blocking applications.

Quickstart

Install API Star:

$ pip3 install apistar

Create a new project in app.py:

from apistar import App, Route


def welcome(name=None):
    if name is None:
        return {'message': 'Welcome to API Star!'}
    return {'message': 'Welcome to API Star, %s!' % name}


routes = [
    Route('/', method='GET', handler=welcome),
]

app = App(routes=routes)


if __name__ == '__main__':
    app.serve('127.0.0.1', 5000, debug=True)

Open http://127.0.0.1:5000/docs/ in your browser:

API documentation


API Star is BSD licensed code.
Designed & built in Brighton, England.

API Star

apistar's People

Contributors

aartgoossens avatar adevore avatar akalipetis avatar alpower avatar anze3db avatar ciplazar avatar dorianpula avatar drpoggi avatar ewjoachim avatar hackebrot avatar jairhenrique avatar jeamland avatar jriggins avatar kinabalu avatar kristenwidman avatar linuxlewis avatar maackle avatar mammuth avatar maximilianhurl avatar netoxico avatar perdy avatar pslacerda avatar rhelms avatar rougeth avatar sonictherocketman avatar thedrow avatar thimslugga avatar tomchristie avatar upy avatar vickumar1981 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.