{ "info": { "author": "Akshay Takkar", "author_email": "akshay.takkar101@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Thruster\nHTTP/2 Server that just works\n\nThis is my attempt at writing a fully functional HTTP 2.0 Server in Python. Its a work in progress right now.\nThe server supports the ASGI 1.0 specification. Has no dependency on the hyper/h2 (except hpack) and twisted packages.\nThe HTTP/2 stack is being implemented completely from scratch.\nDepends on [bitstring](https://pythonhosted.org/bitstring/) for handling binary data for the HTTP/2 protocol implementation.\n\n## HTTP/2 (Current Status)\n- Implementation of most HTTP/2 frames is done. Implemenation of rest of the frames will be done as use cases arise.\n- All frames are organized in classes, with the Frame class as the parent.\n- ASGI 1.0 is supported. Will be adding support for 2.0 soon.\n- Flow Control (To be added)\n- Stream prioritization (To be added)\n- Works with Django (Tested against Django 1.11 and 2.2)\n\n## Usage\nInstall the package using pip\n- pip3 install thruster\n\nRun the following command:\n- thruster --app path_to_your_asgi_app --cert-file path_to_certificate_file --key-file path_to_key_file\n- eg: thruster --app mysite --cert-file server_cert.crt --key-file server_key.key\n\n--cert-file is expected to be a .crt file and --key-file is expected to be a .key file. If --cert-file and --key-file options are not passed, thruster will look for server.crt and server.key in the current directory.\n--cert-file and --key-file are required for SSL connections and HTTP2 only works with SSL. You can use --help to know about for more options.\nIf everything goes fine you should see the following output on the terminal.\n\nServing HTTP on port 8000 ...\n\nThe structure of your ASGI application is expected to be something like this. Eg: If you're using django.\n\nroot_directory/\n\tasgi.py\n\trouting.py\n\tsettings.py\n\nasgi.py\n\n```python\nimport os\nimport django\nfrom channels.routing import get_default_application\n\nos.environ.setdefault(\"DJANGO_SETTINGS_MODULE\", \"mysite.settings\")\ndjango.setup()\napplication = get_default_application()\n```\n\nrouting.py\n```python\nfrom channels.routing import ProtocolTypeRouter\n\napplication = ProtocolTypeRouter({})\n```\n\nsettings.py\n```python\nASGI_APPLICATION = 'mysite.routing.application'\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/blackblood/Thruster", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "thruster", "package_url": "https://pypi.org/project/thruster/", "platform": "", "project_url": "https://pypi.org/project/thruster/", "project_urls": { "Homepage": "https://github.com/blackblood/Thruster" }, "release_url": "https://pypi.org/project/thruster/0.0.8/", "requires_dist": null, "requires_python": "", "summary": "ASGI compatible HTTP/2 web server", "version": "0.0.8" }, "last_serial": 5758898, "releases": { "0.0.7": [ { "comment_text": "", "digests": { "md5": "7065f60e2df0f9b6d08e707856562fa9", "sha256": "abbc251c865537ba71d297bdf3d3cbbfbed1580513e9b3a9639af3bfee4d245d" }, "downloads": -1, "filename": "thruster-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "7065f60e2df0f9b6d08e707856562fa9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 25697, "upload_time": "2019-08-18T17:55:11", "url": "https://files.pythonhosted.org/packages/f0/67/787a8319943be138a9cb5f7708a1bf0691657244a0eef9bb4c03e7221ea4/thruster-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "72314029b48968b1b0195111a50950df", "sha256": "03adfb2a13c79a8b0bd889ee8de79c758bc88ea086b42edbd6d980cc2e092fe8" }, "downloads": -1, "filename": "thruster-0.0.7.tar.gz", "has_sig": false, "md5_digest": "72314029b48968b1b0195111a50950df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10003, "upload_time": "2019-08-18T17:55:13", "url": "https://files.pythonhosted.org/packages/75/fb/037ac10ba5b9ba7e5d51b26485f70398d939c3d8c8628c9ac8e036e8c04e/thruster-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "97665c7ba604aa890d7502a3b5477b8d", "sha256": "cecf38ab695c61f28510b6c6353a282d999ea4a4ebfcff5b954bad7ebb398552" }, "downloads": -1, "filename": "thruster-0.0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "97665c7ba604aa890d7502a3b5477b8d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16857, "upload_time": "2019-08-30T07:53:43", "url": "https://files.pythonhosted.org/packages/d5/59/08d16e3b7841f34f74dddf4441f7d9a01d7c5a3e2f4852a71d6c0c93b5ee/thruster-0.0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "00c50926584317b64c3dd96fa6de71d5", "sha256": "845e2b923df366364e554dc2c5bb2ed08ee5db85276ae05a6d8422dadba57e3d" }, "downloads": -1, "filename": "thruster-0.0.8.tar.gz", "has_sig": false, "md5_digest": "00c50926584317b64c3dd96fa6de71d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11113, "upload_time": "2019-08-30T07:53:46", "url": "https://files.pythonhosted.org/packages/00/b2/ce2429d402eb2a93f746ab62d43f2dcc417ff700c995eb8d898c2a28bdc3/thruster-0.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "97665c7ba604aa890d7502a3b5477b8d", "sha256": "cecf38ab695c61f28510b6c6353a282d999ea4a4ebfcff5b954bad7ebb398552" }, "downloads": -1, "filename": "thruster-0.0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "97665c7ba604aa890d7502a3b5477b8d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16857, "upload_time": "2019-08-30T07:53:43", "url": "https://files.pythonhosted.org/packages/d5/59/08d16e3b7841f34f74dddf4441f7d9a01d7c5a3e2f4852a71d6c0c93b5ee/thruster-0.0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "00c50926584317b64c3dd96fa6de71d5", "sha256": "845e2b923df366364e554dc2c5bb2ed08ee5db85276ae05a6d8422dadba57e3d" }, "downloads": -1, "filename": "thruster-0.0.8.tar.gz", "has_sig": false, "md5_digest": "00c50926584317b64c3dd96fa6de71d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11113, "upload_time": "2019-08-30T07:53:46", "url": "https://files.pythonhosted.org/packages/00/b2/ce2429d402eb2a93f746ab62d43f2dcc417ff700c995eb8d898c2a28bdc3/thruster-0.0.8.tar.gz" } ] }