netius


Namenetius JSON
Version 1.19.3 PyPI version JSON
download
home_pagehttp://netius.hive.pt
SummaryNetius System
upload_time2024-01-18 11:19:56
maintainer
docs_urlNone
authorHive Solutions Lda.
requires_python
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": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "netius net infrastructure wsgi",
    "author": "Hive Solutions Lda.",
    "author_email": "development@hive.pt",
    "download_url": "https://files.pythonhosted.org/packages/dc/a1/0efd7c81018ebe54181a13770c37b31565a36f5e243026d4fb6f1a1ce7d0/netius-1.19.3.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.3",
    "project_urls": {
        "Homepage": "http://netius.hive.pt"
    },
    "split_keywords": [
        "netius",
        "net",
        "infrastructure",
        "wsgi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "955e78f640457042776bcfdb2e6f5531961b548fe87ab10d4651f804b175aa4c",
                "md5": "3504698705f9f05424bfa4f5235889ce",
                "sha256": "6055e9a18b0d519632fd4f135fcac05e21bd160d5ca0ee703991b75e68b0da50"
            },
            "downloads": -1,
            "filename": "netius-1.19.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3504698705f9f05424bfa4f5235889ce",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 548542,
            "upload_time": "2024-01-18T11:19:51",
            "upload_time_iso_8601": "2024-01-18T11:19:51.467223Z",
            "url": "https://files.pythonhosted.org/packages/95/5e/78f640457042776bcfdb2e6f5531961b548fe87ab10d4651f804b175aa4c/netius-1.19.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dca10efd7c81018ebe54181a13770c37b31565a36f5e243026d4fb6f1a1ce7d0",
                "md5": "f20591cc6b9a1d805488228878386f55",
                "sha256": "4935aa22dc834c0e31ac0412c61c387cdb082f44490051e025293373abd44a01"
            },
            "downloads": -1,
            "filename": "netius-1.19.3.tar.gz",
            "has_sig": false,
            "md5_digest": "f20591cc6b9a1d805488228878386f55",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 430100,
            "upload_time": "2024-01-18T11:19:56",
            "upload_time_iso_8601": "2024-01-18T11:19:56.627207Z",
            "url": "https://files.pythonhosted.org/packages/dc/a1/0efd7c81018ebe54181a13770c37b31565a36f5e243026d4fb6f1a1ce7d0/netius-1.19.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-18 11:19:56",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "netius"
}
        
Elapsed time: 0.17151s