Flask-HTTPAuth-stubs


NameFlask-HTTPAuth-stubs JSON
Version 0.1.6 PyPI version JSON
download
home_page
SummaryMypy plugin and stubs for Flask-HTTPAuth
upload_time2023-11-05 10:27:21
maintainerMartin Thoma
docs_urlNone
authorMartin Thoma
requires_python
licenseMIT license
keywords utility mypy stubs
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPI version](https://badge.fury.io/py/Flask-HTTPAuth-stubs.svg)](https://pypi.org/project/Flask-HTTPAuth-stubs)
[![Code on Github](https://img.shields.io/badge/Code-GitHub-brightgreen)](https://github.com/MartinThoma/Flask-HTTPAuth-stubs)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
![GitHub last commit](https://img.shields.io/github/last-commit/MartinThoma/Flask-HTTPAuth-stubs)

# Flask-HTTPAuth-stubs

Add types for [Flask-HTTPAuth](https://pypi.org/project/Flask-HTTPAuth/) for mypy.

## Installation

```
$ pip install flask-httpauth-stubs
```

## Usage

Mypy will automatically use the type annotations in this package, once it is
installed. You just need to annotate your code:

```python
from typing import Optional
from flask_httpauth import HTTPAuth, Authorization


def foo(bar: HTTPAuth) -> Optional[Authorization]:
    return bar.get_auth()
```

For general hints how to use type annotations, please read [Type Annotations in Python 3.8](https://medium.com/analytics-vidhya/type-annotations-in-python-3-8-3b401384403d)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "Flask-HTTPAuth-stubs",
    "maintainer": "Martin Thoma",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "info@martin-thoma.de",
    "keywords": "utility,mypy,stubs",
    "author": "Martin Thoma",
    "author_email": "info@martin-thoma.de",
    "download_url": "https://files.pythonhosted.org/packages/4c/de/900970b098fa3e55693cad4813099f7bbb5bd14463e7a8347e0da756196b/Flask-HTTPAuth-stubs-0.1.6.tar.gz",
    "platform": null,
    "description": "[![PyPI version](https://badge.fury.io/py/Flask-HTTPAuth-stubs.svg)](https://pypi.org/project/Flask-HTTPAuth-stubs)\n[![Code on Github](https://img.shields.io/badge/Code-GitHub-brightgreen)](https://github.com/MartinThoma/Flask-HTTPAuth-stubs)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n![GitHub last commit](https://img.shields.io/github/last-commit/MartinThoma/Flask-HTTPAuth-stubs)\n\n# Flask-HTTPAuth-stubs\n\nAdd types for [Flask-HTTPAuth](https://pypi.org/project/Flask-HTTPAuth/) for mypy.\n\n## Installation\n\n```\n$ pip install flask-httpauth-stubs\n```\n\n## Usage\n\nMypy will automatically use the type annotations in this package, once it is\ninstalled. You just need to annotate your code:\n\n```python\nfrom typing import Optional\nfrom flask_httpauth import HTTPAuth, Authorization\n\n\ndef foo(bar: HTTPAuth) -> Optional[Authorization]:\n    return bar.get_auth()\n```\n\nFor general hints how to use type annotations, please read [Type Annotations in Python 3.8](https://medium.com/analytics-vidhya/type-annotations-in-python-3-8-3b401384403d)\n",
    "bugtrack_url": null,
    "license": "MIT license",
    "summary": "Mypy plugin and stubs for Flask-HTTPAuth",
    "version": "0.1.6",
    "project_urls": null,
    "split_keywords": [
        "utility",
        "mypy",
        "stubs"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f6fe82b1856a374474c2e505bb19e649ff9d94f667c6ed3d1cef53dcc0cf9754",
                "md5": "6ce2cb953f1be09845988c81d3d403b4",
                "sha256": "366a4d0b7bd570659ea327e09217595ca96ddec3194425b80256bdadbf145f97"
            },
            "downloads": -1,
            "filename": "Flask_HTTPAuth_stubs-0.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6ce2cb953f1be09845988c81d3d403b4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4018,
            "upload_time": "2023-11-05T10:27:20",
            "upload_time_iso_8601": "2023-11-05T10:27:20.133414Z",
            "url": "https://files.pythonhosted.org/packages/f6/fe/82b1856a374474c2e505bb19e649ff9d94f667c6ed3d1cef53dcc0cf9754/Flask_HTTPAuth_stubs-0.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4cde900970b098fa3e55693cad4813099f7bbb5bd14463e7a8347e0da756196b",
                "md5": "bddf40ee2f17c9cbeebdcc537e8a39c0",
                "sha256": "c8f6179a58bd3b58747fbc40754c0b35f3b32fd7f4b25ee9ec259fd02e4accda"
            },
            "downloads": -1,
            "filename": "Flask-HTTPAuth-stubs-0.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "bddf40ee2f17c9cbeebdcc537e8a39c0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4116,
            "upload_time": "2023-11-05T10:27:21",
            "upload_time_iso_8601": "2023-11-05T10:27:21.658466Z",
            "url": "https://files.pythonhosted.org/packages/4c/de/900970b098fa3e55693cad4813099f7bbb5bd14463e7a8347e0da756196b/Flask-HTTPAuth-stubs-0.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-05 10:27:21",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "flask-httpauth-stubs"
}
        
Elapsed time: 3.18362s