netius


Namenetius JSON
Version 1.20.0 PyPI version JSON
download
home_pagehttp://netius.hive.pt
SummaryNetius System
upload_time2024-05-30 00:23:01
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/a2/09/9c383616bcb9f4cdfc3d234955ace8d7b45c4c2c8d8576229686e21411ad/netius-1.20.0.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.0",
    "project_urls": {
        "Homepage": "http://netius.hive.pt"
    },
    "split_keywords": [
        "netius",
        "net",
        "infrastructure",
        "wsgi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "518f9d1358da6fa83e8495abafa890174e2fa7351e3a60580ec7e6642b59aa71",
                "md5": "aba919d1aaed39361f00e6053e87539b",
                "sha256": "6bc8c3a2196fae3947a88046d05961a3342860a0b013f68c35c160e50f673940"
            },
            "downloads": -1,
            "filename": "netius-1.20.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "aba919d1aaed39361f00e6053e87539b",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 555721,
            "upload_time": "2024-05-30T00:22:55",
            "upload_time_iso_8601": "2024-05-30T00:22:55.657042Z",
            "url": "https://files.pythonhosted.org/packages/51/8f/9d1358da6fa83e8495abafa890174e2fa7351e3a60580ec7e6642b59aa71/netius-1.20.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2099c383616bcb9f4cdfc3d234955ace8d7b45c4c2c8d8576229686e21411ad",
                "md5": "f68c773999e374a07db73ef6318ce45f",
                "sha256": "b6d382fc51051178f7c6e7762067a59ddff433d46bd9c948d6a489b8e49daeae"
            },
            "downloads": -1,
            "filename": "netius-1.20.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f68c773999e374a07db73ef6318ce45f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 442451,
            "upload_time": "2024-05-30T00:23:01",
            "upload_time_iso_8601": "2024-05-30T00:23:01.359473Z",
            "url": "https://files.pythonhosted.org/packages/a2/09/9c383616bcb9f4cdfc3d234955ace8d7b45c4c2c8d8576229686e21411ad/netius-1.20.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-30 00:23:01",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "netius"
}
        
Elapsed time: 0.28704s