gurobipy-stubs


Namegurobipy-stubs JSON
Version 2.0.0 PyPI version JSON
download
home_pagehttps://www.gurobi.com
SummaryType stubs for gurobipy
upload_time2022-12-08 19:03:05
maintainer
docs_urlNone
authorGurobi Optimization, LLC
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # gurobipy-stubs

This package provides type hints for
[gurobipy](https://pypi.org/project/gurobipy/), the [Python API for
Gurobi](https://www.gurobi.com/documentation/9.1/refman/py_python_api_overview.html).
These stubs help you to write typed Python code, and enhance many IDE's
built-in auto completion features.

### Example

With this type stubs package installed, static type checkers such as
[mypy](https://mypy.readthedocs.io/en/stable/index.html) willl be able to
verify the types given in source code annotations like in this example:

```
import gurobipy as gp

m: gp.Model = gp.Model()
v: gp.Var = m.addVar()
m.optimize()
vval: float = v.X
```

```
% mypy example.py 
Success: no issues found in 1 source file
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://www.gurobi.com",
    "name": "gurobipy-stubs",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Gurobi Optimization, LLC",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/fc/32/0179eabc5730578bdf5924d00085bbc5dd71e2e824be619c36903d70a07c/gurobipy-stubs-2.0.0.tar.gz",
    "platform": null,
    "description": "# gurobipy-stubs\n\nThis package provides type hints for\n[gurobipy](https://pypi.org/project/gurobipy/), the [Python API for\nGurobi](https://www.gurobi.com/documentation/9.1/refman/py_python_api_overview.html).\nThese stubs help you to write typed Python code, and enhance many IDE's\nbuilt-in auto completion features.\n\n### Example\n\nWith this type stubs package installed, static type checkers such as\n[mypy](https://mypy.readthedocs.io/en/stable/index.html) willl be able to\nverify the types given in source code annotations like in this example:\n\n```\nimport gurobipy as gp\n\nm: gp.Model = gp.Model()\nv: gp.Var = m.addVar()\nm.optimize()\nvval: float = v.X\n```\n\n```\n% mypy example.py \nSuccess: no issues found in 1 source file\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Type stubs for gurobipy",
    "version": "2.0.0",
    "project_urls": {
        "Homepage": "https://www.gurobi.com"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9c2b08ee5e6b5c98c5f38df58a5b3418021adc4e7ed44512b31f62ea0148670d",
                "md5": "3f1cee29ef233a031bbe57ab0b7ee92f",
                "sha256": "7fe3444dff1cfe19a58a746d69202f3ed0151138f43a91d0bce3ec4e6cf00715"
            },
            "downloads": -1,
            "filename": "gurobipy_stubs-2.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3f1cee29ef233a031bbe57ab0b7ee92f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 14127,
            "upload_time": "2022-12-08T19:03:03",
            "upload_time_iso_8601": "2022-12-08T19:03:03.302298Z",
            "url": "https://files.pythonhosted.org/packages/9c/2b/08ee5e6b5c98c5f38df58a5b3418021adc4e7ed44512b31f62ea0148670d/gurobipy_stubs-2.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fc320179eabc5730578bdf5924d00085bbc5dd71e2e824be619c36903d70a07c",
                "md5": "db252e601e2dca86b41e657987c1a0e1",
                "sha256": "64c388ce4f4ec1dd040a4f0119574c44af8fbc8ca56d8c01d3f4cebd593d36fe"
            },
            "downloads": -1,
            "filename": "gurobipy-stubs-2.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "db252e601e2dca86b41e657987c1a0e1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 14298,
            "upload_time": "2022-12-08T19:03:05",
            "upload_time_iso_8601": "2022-12-08T19:03:05.789128Z",
            "url": "https://files.pythonhosted.org/packages/fc/32/0179eabc5730578bdf5924d00085bbc5dd71e2e824be619c36903d70a07c/gurobipy-stubs-2.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-08 19:03:05",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "gurobipy-stubs"
}
        
Elapsed time: 0.62161s