`Netius <http://netius.hive.pt>`__
==================================
Fast and readable async non-blocking network apps
Netius is a Python network library that can be used for the rapid creation of asynchronous non-blocking
servers and clients. It has no dependencies, it's cross-platform, and brings some sample netius-powered
servers out of the box, namely a production-ready WSGI server.
Simplicity and performance are the main drivers of this project. The codebase adheres to very strict
code standards, and is extensively commented; and as far as performance is concerned, it aims to
be up to par with equivalent native implementations, where `PyPy <http://pypy.org>`__ can be used to
provide the extra boost to raise performance up to these standards.
Installation
------------
pip install netius
Usage
-----
WSGI Server
~~~~~~~~~~~
.. code:: python
import netius.servers
def app(environ, start_response):
status = "200 OK"
contents = "Hello World"
content_l = len(contents)
headers = (
("Content-Length", content_l),
("Content-Type", "text/plain"),
("Connection", "keep-alive")
)
start_response(status, headers)
yield contents
server = netius.servers.WSGIServer(app = app)
server.serve(port = 8080)
More
----
For more information consult the `website <http://netius.hive.pt>`__.
Raw data
{
"_id": null,
"home_page": "http://netius.hive.pt",
"name": "netius",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "netius net infrastructure wsgi",
"author": "Hive Solutions Lda.",
"author_email": "development@hive.pt",
"download_url": "https://files.pythonhosted.org/packages/a6/08/2c76cd72440d61aa5cbbb577c1910baee68b1b982d0a5e2ae2bf380e816a/netius-1.19.13.tar.gz",
"platform": null,
"description": "`Netius <http://netius.hive.pt>`__\n==================================\n\nFast and readable async non-blocking network apps\n\nNetius is a Python network library that can be used for the rapid creation of asynchronous non-blocking\nservers and clients. It has no dependencies, it's cross-platform, and brings some sample netius-powered\nservers out of the box, namely a production-ready WSGI server.\n\nSimplicity and performance are the main drivers of this project. The codebase adheres to very strict\ncode standards, and is extensively commented; and as far as performance is concerned, it aims to\nbe up to par with equivalent native implementations, where `PyPy <http://pypy.org>`__ can be used to\nprovide the extra boost to raise performance up to these standards.\n\nInstallation\n------------\n\n pip install netius\n\nUsage\n-----\n\nWSGI Server\n~~~~~~~~~~~\n\n.. code:: python\n\n import netius.servers\n\n def app(environ, start_response):\n status = \"200 OK\"\n contents = \"Hello World\"\n content_l = len(contents)\n headers = (\n (\"Content-Length\", content_l),\n (\"Content-Type\", \"text/plain\"),\n (\"Connection\", \"keep-alive\")\n )\n start_response(status, headers)\n yield contents\n\n server = netius.servers.WSGIServer(app = app)\n server.serve(port = 8080)\n\nMore\n----\n\nFor more information consult the `website <http://netius.hive.pt>`__.\n\n\n",
"bugtrack_url": null,
"license": "Apache License, Version 2.0",
"summary": "Netius System",
"version": "1.19.13",
"project_urls": {
"Homepage": "http://netius.hive.pt"
},
"split_keywords": [
"netius",
"net",
"infrastructure",
"wsgi"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "858918f12582cf9d4f9fe9c8dc1f27f3e455ec75495b9b415a76ee050a762e5c",
"md5": "456193d22fa622d993479054ff4f67af",
"sha256": "f8876263e7e6cb099fec0b425a27dab7b4422397a8db1da716477ceb5f0fad66"
},
"downloads": -1,
"filename": "netius-1.19.13-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "456193d22fa622d993479054ff4f67af",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 552664,
"upload_time": "2024-04-23T21:25:48",
"upload_time_iso_8601": "2024-04-23T21:25:48.036319Z",
"url": "https://files.pythonhosted.org/packages/85/89/18f12582cf9d4f9fe9c8dc1f27f3e455ec75495b9b415a76ee050a762e5c/netius-1.19.13-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a6082c76cd72440d61aa5cbbb577c1910baee68b1b982d0a5e2ae2bf380e816a",
"md5": "6d89b34aa46dac0eda84f9f0c92f2a1c",
"sha256": "36dbbf6dea2f926f816bbfbeaf398923d1f94af2bfbef25c483858c7f6bebe57"
},
"downloads": -1,
"filename": "netius-1.19.13.tar.gz",
"has_sig": false,
"md5_digest": "6d89b34aa46dac0eda84f9f0c92f2a1c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 435427,
"upload_time": "2024-04-23T21:25:54",
"upload_time_iso_8601": "2024-04-23T21:25:54.393722Z",
"url": "https://files.pythonhosted.org/packages/a6/08/2c76cd72440d61aa5cbbb577c1910baee68b1b982d0a5e2ae2bf380e816a/netius-1.19.13.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-23 21:25:54",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "netius"
}