Coder Social home page Coder Social logo

florimondmanca / awesome-asgi Goto Github PK

View Code? Open in Web Editor NEW
1.5K 1.5K 94.0 82 KB

A curated list of awesome ASGI servers, frameworks, apps, libraries, and other resources

License: Creative Commons Zero v1.0 Universal

Python 97.85% Makefile 2.15%
asgi awesome awesome-list python

awesome-asgi's Introduction

NOTICE

Now unused. See florimondmanca/www.


Personal

Build Status Angular DigitalOcean

This is the repository for the frontend application powering my personal blog.

For the backend API, see personal-api.

Install

Install Angular CLI:

$ npm install -g @angular/cli

Install the dependencies:

$ npm install

Quickstart

Create an environment file called .env (it will be excluded from version control) at the project root, containing the following variables:

  • API_KEY: a valid API key created via the backend admin site.
  • BACKEND_URL: the URL to the backend root (without trailing slash).

For example:

# .env
API_KEY=myapikey
BACKEND_URL=http://localhost:8000

Generate your development environment file:

$ npm run config -- --env=dev

Start the development server, which will run on http://localhost:4200/:

$ ng serve -c dev

Using server-side rendering

Server side rendering is implemented using Angular Universal.

Server-side rendering allows to send fully-rendered HTML pages to clients, instead of sending them a blank page and letting Angular fill it in the browser. This reduces the "first meaningful paint" time, helps with referencing and allows integration with social media.

To use the server-rendered app, you must first create a build of the app:

$ npm run build:dev

Note: in production, use npm run build instead to create a production-optimized build.

Then start the server-rendered app (an Express server):

$ npm run serve:ssr

Scripts

See package.json for the available NPM scripts.

CI/CD

TravisCI is configured on this repo and generates a production build on every push to a branch.

awesome-asgi's People

Contributors

abersheeran avatar adamchainz avatar akx avatar almarklein avatar ayehavgunne avatar berislavlopac avatar dantownsend avatar davidbrochart avatar dongreenberg avatar euri10 avatar florimondmanca avatar fullonic avatar i404788 avatar jordaneremieff avatar kludex avatar masipcat avatar mmaybeno avatar patrick91 avatar paurakhsharma avatar pgjones avatar qweeze avatar rr0214 avatar sanderfoobar avatar simonw avatar sondrelg avatar taoufik07 avatar vytas7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

awesome-asgi's Issues

Section categories

First, I just want to save thank you for creating this repo! It is really exciting to see how the ASGI ecosystem is progressing, and I think this will be a useful addition.

My issue relates to the sections, particularly the placement of Bonnette and Mangum. They are similar in usage to ASGI middleware (wrapping an application), but they actually provide adapter classes - not middleware.

Should these projects be listed under the "Libraries" section, or should there be a new section created labeled "Adapters"? I'd be happy to PR the changes based on discussion in this issue.

more frameworks and other stuff

hi @florimondmanca , please find some stuff I came by when looking at the environnement for a new project. If I'm not making a mistake I didnt see them here yet:

frameworks:
https://github.com/abersheeran/baize
https://github.com/starlite-api/starlite
https://github.com/adriangb/xpresso

di systems, not purely asgi related but those have integration with frameworks so worth mentionning imho:
https://github.com/meadsteve/lagom
https://github.com/adriangb/di

some goodies I'm using all the time, not sure where it fits in your classification:
https://github.com/alex-oleshkevich/starsessions
https://github.com/alex-oleshkevich/starception

add a release when README gets updated

Thanks for maintaining this awesome list. I'd like to suggest to add a release when a change is made to the README file. With this, we can watch the project without getting lots of activity emails.

Usage-centric classification

Discussion in #24 (comment) brought up to me that the categories in this list may not be optimal right now.

Eg. we have "applications", "libraries", and "middleware", and the separation between the three may not be clear enough.

If this list is aimed at promoting projects that help work with ASGI (i.e. mainly building web apps), then perhaps we could switch to a more use-case-centric classification, where each section is an answer to "how do I XYZ with ASGI?".

(We have this for "application frameworks" vs "servers", which respectively address "how do I build an ASGI web app" and "how do I serve it on the internet", and I think it works well.)

An ASGI toy example

Hi!
I wrote a very tiny ASGI web framework as an experiment and I thought maybe I could share it here. It is not for production usage of course but it could be useful as a learning resource to grasp the concept of how does ASGI work and to demystify how asyncio frameworks operate under the hood on a toy example. I'm not sure if it fits in this list so if it doesn't - please close this :)

Project proposal: ASGI profiling middleware using yappi

(Apologies in advance if this isn't an appropriate place to start a discussion like this!)


It looks like yappi support for coroutine profiling is just about complete: tiangolo/fastapi#701 (comment)

This should enable ASGI-compatible request-specific profiling (during development at least; yappi probably adds too much overhead to make sense during production). In particular, I think this could make it relatively easy to perform performance regression testing, etc.

If you look in that thread, you'll also see it can be used to display profiling info directly inside the browser. 🔥


I think it would be great if we could throw together a small ASGI middleware profiling package similar to the proposal from this comment, making use of the new yappi capabilities once they are released.

Eventually, I think it might make sense to try to package up functionality similar to what you'd expect from pytest --profile-svg in a non-asyncio context, as described in this comment.


If anyone is interested in collaborating on this let me know! I don't have experience publishing packages on PyPI so it would be great if someone more knowledgeable about that process could help out.

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.