netius


Namenetius JSON
Version 1.20.4 PyPI version JSON
download
home_pagehttp://netius.hive.pt
SummaryNetius System
upload_time2025-02-17 23:49:04
maintainerNone
docs_urlNone
authorHive Solutions Lda.
requires_pythonNone
licenseApache License, Version 2.0
keywords netius net infrastructure wsgi
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            `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/c6/6b/275ebe4915c6915b80bec59a5a9c5452b5c693f6252a3deacb3c2ee8fd8c/netius-1.20.4.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.20.4",
    "project_urls": {
        "Homepage": "http://netius.hive.pt"
    },
    "split_keywords": [
        "netius",
        "net",
        "infrastructure",
        "wsgi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ead7a2a4288670c0ba8ad8b8fd21bcdcbe912a2a850c14ff8cf44fead21f08cf",
                "md5": "b59c66748ba566572deaa819df61e245",
                "sha256": "5c87d1d2377095824048162d82b259928f80e0e6486cc040a2a2527aad2ba85b"
            },
            "downloads": -1,
            "filename": "netius-1.20.4-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b59c66748ba566572deaa819df61e245",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 556554,
            "upload_time": "2025-02-17T23:49:02",
            "upload_time_iso_8601": "2025-02-17T23:49:02.739201Z",
            "url": "https://files.pythonhosted.org/packages/ea/d7/a2a4288670c0ba8ad8b8fd21bcdcbe912a2a850c14ff8cf44fead21f08cf/netius-1.20.4-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c66b275ebe4915c6915b80bec59a5a9c5452b5c693f6252a3deacb3c2ee8fd8c",
                "md5": "0d1a693e4f1245cb3276c63ed4e394c4",
                "sha256": "7f9f4c55eac06cd49b40afb281b07a88c60fc9eeed5d9089b53be23170479d6a"
            },
            "downloads": -1,
            "filename": "netius-1.20.4.tar.gz",
            "has_sig": false,
            "md5_digest": "0d1a693e4f1245cb3276c63ed4e394c4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 443122,
            "upload_time": "2025-02-17T23:49:04",
            "upload_time_iso_8601": "2025-02-17T23:49:04.645781Z",
            "url": "https://files.pythonhosted.org/packages/c6/6b/275ebe4915c6915b80bec59a5a9c5452b5c693f6252a3deacb3c2ee8fd8c/netius-1.20.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-17 23:49:04",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "netius"
}
        
Elapsed time: 0.40330s