All Projects → CreatCodeBuild → hyper2web

CreatCodeBuild / hyper2web

Licence: other
Super Fast Backend Framework (Educational Purpose)

Programming Languages

python
139335 projects - #7 most used programming language
javascript
184084 projects - #8 most used programming language
Makefile
30231 projects
HTML
75241 projects
CSS
56736 projects
shell
77523 projects

Projects that are alternatives of or similar to hyper2web

next-api-decorators
Collection of decorators to create typed Next.js API routes, with easy request validation and transformation.
Stars: ✭ 187 (+567.86%)
Mutual labels:  backend
pyh2o
Python binding for the H2O HTTP server
Stars: ✭ 25 (-10.71%)
Mutual labels:  http2
cart
Simple Symfony 4 shopping cart application. App boilerplate
Stars: ✭ 18 (-35.71%)
Mutual labels:  backend
multi-projects-architecture-with-Ktor
A Ktor real world example built on multi-projects architecture
Stars: ✭ 29 (+3.57%)
Mutual labels:  backend
bad-cards-game
Bad Cards Game
Stars: ✭ 23 (-17.86%)
Mutual labels:  backend
mojo.js
🦄 The Mojolicious real-time web framework for Node.js
Stars: ✭ 145 (+417.86%)
Mutual labels:  backend
laravel-realworld-example-app
Exemplary RealWorld backend API built with Laravel PHP framework.
Stars: ✭ 34 (+21.43%)
Mutual labels:  backend
fastweb
fastweb is a web-server integration solution. It based on tornado, celery, thrift.
Stars: ✭ 17 (-39.29%)
Mutual labels:  backend
lolhttp
An HTTP Server and Client library for Scala.
Stars: ✭ 93 (+232.14%)
Mutual labels:  http2
safe-transaction-service
Keeps track of transactions sent via Gnosis Safe contacts and confirmed transactions. It also keeps track of Ether and ERC20 token transfers to Safe contracts.
Stars: ✭ 72 (+157.14%)
Mutual labels:  backend
sisyphus
Sisyphus is the way how we provide backend services.
Stars: ✭ 59 (+110.71%)
Mutual labels:  backend
framework
Typetron is a modern Node.js framework for building backend web apps with Typescript
Stars: ✭ 28 (+0%)
Mutual labels:  backend
media manager plus
Ermöglicht das Gruppieren von Media-Manager-Typen und stellt eine Frontend-API (PictureTag) bereit.
Stars: ✭ 21 (-25%)
Mutual labels:  backend
get hired training
A set of videos and tips to help our students to be hired as developers 💯
Stars: ✭ 18 (-35.71%)
Mutual labels:  backend
Nestjs-Typeorm-Auth
NestJS + Typeorm codebase containing a full authentification system with roles, sessions and email verification.
Stars: ✭ 37 (+32.14%)
Mutual labels:  backend
fastapi-framework
A FastAPI Framework for things like Database, Redis, Logging, JWT Authentication, Rate Limits and Sessions
Stars: ✭ 26 (-7.14%)
Mutual labels:  backend
nextjs-graphql-adminpanel
Admin panel built with NextJS(Typescript), Material UI, Apollo Client & GraphQL. In the backend, Prisma 2 with Nexus and Mysql is used.
Stars: ✭ 119 (+325%)
Mutual labels:  backend
Systemizer
A system design tool that allows you to simulate data flow of distributed systems.
Stars: ✭ 1,219 (+4253.57%)
Mutual labels:  backend
async-websocket
Asynchronous WebSocket client and server, supporting HTTP/1 and HTTP/2 for Ruby.
Stars: ✭ 111 (+296.43%)
Mutual labels:  http2
paperclip
A DSL for web UI builders
Stars: ✭ 197 (+603.57%)
Mutual labels:  backend

Hyper2Web

Super Fast HTTP2 Framework for Progressive Web Application

Installation

To install Hyper2Web, run this command in your terminal:

$ # due to a known issue, please install Curio manually
$ pip install git+https://github.com/dabeaz/curio.git
$ pip install hyper2web

This is the preferred method to install Hyper2Web, as it will always install the most recent stable release.

If you don't have pip installed, this Python installation guide can guide you through the process.

Dependency

Python3.6

h2

curio

Quick Start

Assuming you have a directory structure like:

your project/
--public/
  --index.html
  --index.js
  ...
--app.py

Your app.py looks like

from hyper2web import app

if __name__ == '__main__':

        # A basic callback style API is provided
        # Function name is up to you
        async def post_echo(request, response):
                # Send the data received back to the client
                await response.send(request.stream.data)

        app = app.App(port=5000)
        app.post('name', post_echo)
        app.up()

Then run this script

$ python app.py

That's it!

If you just want to serve static files, it's just 2 lines!

from hyper2web import app
app.App(port=5000).up()

Docs

Documentation is hosted on hyper2web.readthedocs.io.

Example

See the example folders for examples.

Test

$ python -m unittest discover test

Run all tests under test/ dir.

Misc

Why did I create this framework?

April 23rd, 2017, Sunday, I woke up and felt bored and decided to create my own HTTP2 web framework.

Since I had little or some prior web knowledge, this would be a super learning and fun project for me.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].