Code Monkey home page Code Monkey logo

rocket's Introduction

Rocket 1.2.7

Modern, multi-threaded and extensible web server.

The Rocket web server is a server designed to handle the increased needs of modern web applications implemented in pure Python. It can serve WSGI applications and static files. Rocket has the ability to be extended to handle different types of networked request-response jobs. Rocket runs on cPython 2.5- 3.x and Jython 2.5 (without the need to run through the 2to3 translation tool). Rocket is similar in purpose to Cherrypy's Wsgiserver but with added flexibility and concurrency.

Rocket Documentation is viewable at Python Docs.

rocket's People

Contributors

explorigin avatar lordjabez avatar themainframe avatar

Stargazers

 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

rocket's Issues

Getting the following error when running `Rocket==1.2.8`

Traceback (most recent call last):
  File "/opt/ev/api/rocket_app.py", line 5, in <module>
    server = Rocket(('0.0.0.0', 6555), 'wsgi', {"wsgi_app": main_app()}, min_threads=4, max_threads=0)
  File "/opt/ev/venv/local/lib/python2.7/site-packages/rocket/main.py", line 74, in __init__
    self._threadpool = ThreadPool(get_method(method),
  File "/opt/ev/venv/local/lib/python2.7/site-packages/rocket/worker.py", line 400, in get_method
    from .methods.wsgi import WSGIWorker
ImportError: No module named methods.wsgi

Routing in Rocket

Hi,
how can I serve specific route in Rocket? I have a json array to be displayed by GET method in a specific route. I could not find any help for this in the web.
Thanks.

Push new version to pypi

Hi!

Are there plans to push a new version up to pypi now that #5 is merged? It would help me out a lot, as I get errors installing 1.2.4.

[1.2.8] Package "rocket.methods" needed but no longer installed

Hi!

Commit 5331367 broke the installation of as package rocket.methods (including needed module rocket.methods.wsgi) is no longer installed.

No folder methods around:

# ls -1 ./py2/lib/python2.7/site-packages/rocket/
connection.py
connection.pyc
filelike.py
filelike.pyc
futures.py
futures.pyc
__init__.py
__init__.pyc
listener.py
listener.pyc
main.py
main.pyc
monitor.py
monitor.pyc
threadpool.py
threadpool.pyc
worker.py
worker.pyc

web2py + IE8 + Downloading Files > 64kb = Corrupt Downloads

web2py users have reported corrupt downloads using Rocket. It seems that only IE8 (and lower versions) are affected. I can reproduce this with web2py but I cannot reproduce it with Rocket alone.

web2py with any other webserver does not exhibit this issue. There is some interaction between Rocket and web2py that causes this.

This also only happens when downloading files. Uploaded files seem to be unaffected.

In this scenario, files are sent to the browser in 64k blocks. In what seems to be random circumstance, 4kb may be missing from the beginning of a block. I've never seen this happen with the first block. It is typically first shows on the 4th or 5th block.

The steps to reproduce this in web2py are detailed here: http://groups.google.com/group/web2py/browse_thread/thread/d7f6faddb841790b/d67ed796649fc3f1?pli=1

Any help with this issue would be much appreciated.

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.