static_parameters


Namestatic_parameters JSON
Version 0.4 PyPI version JSON
download
home_pagehttps://github.com/mrf345/static_parameters/
SummarySimple decorators to raise a TypeError, if paramates type not satisfied
upload_time2018-07-15 07:20:05
maintainer
docs_urlNone
authorMohamed Feddad
requires_python
licenseMIT
keywords static
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
static_parameters
-------------
Simple decorators to raise a TypeError, if parameters
and it's static type added to the description __doc__
as such (parameter_name: str) not satisfied.

Example:
from static_parameters import (
    function_parameters,
    class_parameters
)

@function_parameters
def example(a, b):
    '''Some example to demo ((a: str)) ((b: str))'''
    return a + b

# For all methods in a class

@class_parameters(function_parameters)
class Example:
    def exm1(a, b):
        ''' ((a: bool)), ((b: int))
    
    def exm2():
        ...

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mrf345/static_parameters/",
    "name": "static_parameters",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "static",
    "author": "Mohamed Feddad",
    "author_email": "mrf345@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ed/cd/c9e448690b21e3b6183b9f976d7cc6744570daa79025db898bda359e7b09/static_parameters-0.4.tar.gz",
    "platform": "any",
    "description": "\nstatic_parameters\n-------------\nSimple decorators to raise a TypeError, if parameters\nand it's static type added to the description __doc__\nas such (parameter_name: str) not satisfied.\n\nExample:\nfrom static_parameters import (\n    function_parameters,\n    class_parameters\n)\n\n@function_parameters\ndef example(a, b):\n    '''Some example to demo ((a: str)) ((b: str))'''\n    return a + b\n\n# For all methods in a class\n\n@class_parameters(function_parameters)\nclass Example:\n    def exm1(a, b):\n        ''' ((a: bool)), ((b: int))\n    \n    def exm2():\n        ...\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Simple decorators to raise a TypeError, if paramates type not satisfied",
    "version": "0.4",
    "project_urls": {
        "Download": "https://github.com/mrf345/static_parameters/archive/0.4.tar.gz",
        "Homepage": "https://github.com/mrf345/static_parameters/"
    },
    "split_keywords": [
        "static"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "edcdc9e448690b21e3b6183b9f976d7cc6744570daa79025db898bda359e7b09",
                "md5": "66d044a21a2fa9e5fa1e828670cb2938",
                "sha256": "a107c504ee431a1fd21876c3dc00b8253aad66fad527887025e07e38fc392053"
            },
            "downloads": -1,
            "filename": "static_parameters-0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "66d044a21a2fa9e5fa1e828670cb2938",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2745,
            "upload_time": "2018-07-15T07:20:05",
            "upload_time_iso_8601": "2018-07-15T07:20:05.346072Z",
            "url": "https://files.pythonhosted.org/packages/ed/cd/c9e448690b21e3b6183b9f976d7cc6744570daa79025db898bda359e7b09/static_parameters-0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2018-07-15 07:20:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mrf345",
    "github_project": "static_parameters",
    "github_not_found": true,
    "lcname": "static_parameters"
}
        
Elapsed time: 0.30135s