tolerant-isinstance


Nametolerant-isinstance JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/tolerant_isinstance
Summaryisinstance - more tolerant
upload_time2023-01-05 03:10:36
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords isinstance none pd.na
VCS
bugtrack_url
requirements isiter
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# isinstance - more tolerant 

```python
# Tested with:
# Python 3.9.13
# Windows 10

This function checks: 
isinstance(__object, modul)
type(__object).__module__ == getattr(modul, "__name__")
str(type(__object)) == str(type(modul))


p = pd.NA
isinstance(p, pd.NA) # Exception
isinstance_tolerant(p, pd.NA) # no Exception
p = None
isinstance(p, None) # Exception
isinstance_tolerant(p, None)  # no Exception


```




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/tolerant_isinstance",
    "name": "tolerant-isinstance",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "isinstance,None,pd.NA",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/52/bd/df1f0062fa4f04a8167bd274ca7539d2711fc2bf99bf71675285b76b770b/tolerant_isinstance-0.10.tar.gz",
    "platform": null,
    "description": "\n# isinstance - more tolerant \n\n```python\n# Tested with:\n# Python 3.9.13\n# Windows 10\n\nThis function checks: \nisinstance(__object, modul)\ntype(__object).__module__ == getattr(modul, \"__name__\")\nstr(type(__object)) == str(type(modul))\n\n\np = pd.NA\nisinstance(p, pd.NA) # Exception\nisinstance_tolerant(p, pd.NA) # no Exception\np = None\nisinstance(p, None) # Exception\nisinstance_tolerant(p, None)  # no Exception\n\n\n```\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "isinstance - more tolerant",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/tolerant_isinstance"
    },
    "split_keywords": [
        "isinstance",
        "none",
        "pd.na"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "50a22004dc6d1908d98b8df53ede9ad13a80c49238ed112acdbd031e5a009ab1",
                "md5": "a15dcc1e90d0adf62e1d81f13cd131b5",
                "sha256": "c6ff44b20b7bb92c0d935a3b3b6be168102d082ec1e87b893bf018159c504894"
            },
            "downloads": -1,
            "filename": "tolerant_isinstance-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a15dcc1e90d0adf62e1d81f13cd131b5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4479,
            "upload_time": "2023-01-05T03:10:34",
            "upload_time_iso_8601": "2023-01-05T03:10:34.876620Z",
            "url": "https://files.pythonhosted.org/packages/50/a2/2004dc6d1908d98b8df53ede9ad13a80c49238ed112acdbd031e5a009ab1/tolerant_isinstance-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "52bddf1f0062fa4f04a8167bd274ca7539d2711fc2bf99bf71675285b76b770b",
                "md5": "bb6a49f3115d527d8a71609424ff2424",
                "sha256": "ac5174e7b2760deaeb8f08ad54c594ffc8b4eddad0134a7fe4043d861631f9c6"
            },
            "downloads": -1,
            "filename": "tolerant_isinstance-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "bb6a49f3115d527d8a71609424ff2424",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3122,
            "upload_time": "2023-01-05T03:10:36",
            "upload_time_iso_8601": "2023-01-05T03:10:36.133698Z",
            "url": "https://files.pythonhosted.org/packages/52/bd/df1f0062fa4f04a8167bd274ca7539d2711fc2bf99bf71675285b76b770b/tolerant_isinstance-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-05 03:10:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "tolerant_isinstance",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "isiter",
            "specs": []
        }
    ],
    "lcname": "tolerant-isinstance"
}
        
Elapsed time: 1.88129s