Coder Social home page Coder Social logo

litmus's Introduction

CodeFactor

Litmus

A fast asynchronous HTTP server and framework written in Rust for Python. To live and die by speed.

WARNING

This project is intermittently maintained i.e as and when I have some free time to do so. Generally, the LNX project and Lust project take precedence.

Should I use this server over the existing systems?

Probably not, sure Litmus benches considerably faster than uvicorn with your typical small, plain text response benchmarks (generally 70%+ throughput increase) as soon as you put this into a real world situation I doubt you're going to get over 10% increase, you will probably get lower average latency but again by margins of around 10% so pick and choose your poison.

Current state of Litmus:

The main server api has been implemented other than the H2 and WS protocol sections.

litmus's People

Contributors

chillfish8 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

litmus's Issues

How to set host and port of a server?

I got an error if follow case:

async def main():
    global server
    runner = pyre.LSGIToASGIAdapter(app)
    server = pyre.Server(runner, listen_on='localhost:8080')
    server.ignite()
    await server.run_forever()

An example of an error:

pyre       |  INFO  pyre_server::server > binding to :
pyre       | Traceback (most recent call last):
pyre       |   File "test.py", line 34, in <module>
pyre       |     asyncio.run(main())
pyre       |   File "/usr/local/lib/python3.8/asyncio/runners.py", line 44, in run
pyre       |     return loop.run_until_complete(main)
pyre       |   File "uvloop/loop.pyx", line 1494, in uvloop.loop.Loop.run_until_complete
pyre       |   File "test.py", line 28, in main
pyre       |     server = pyre.Server(runner, listen_on='0.0.0.0:8080')
pyre       |   File "/code/pyre/pyre_http/shared.py", line 62, in __init__
pyre       |     self._server = create_server(
pyre       | OSError: invalid port value

Can't run benchmarks locally

I believe that you just need to move files from tests folder to appropriate folders inside the benchmarking folder.

Edit: It seems that there are more details for fixing.

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.