{"id":15559843,"url":"https://github.com/richardarpanet/hasattr-safe","last_synced_at":"2026-05-15T16:06:34.494Z","repository":{"id":138867203,"uuid":"127968196","full_name":"richardARPANET/hasattr-safe","owner":"richardARPANET","description":"Python 3 hasattr behaviour for Python 2.","archived":false,"fork":false,"pushed_at":"2018-04-28T22:01:41.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-28T02:51:08.094Z","etag":null,"topics":["hasattr","python-library","python2","python3"],"latest_commit_sha":null,"homepage":"https://code.richard.do/richardARPANET/hasattr-safe","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/richardARPANET.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.rst","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-03T20:59:22.000Z","updated_at":"2018-04-28T22:01:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea2d7c68-52d8-44c1-baab-ff93cf39d881","html_url":"https://github.com/richardARPANET/hasattr-safe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/richardARPANET/hasattr-safe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardARPANET%2Fhasattr-safe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardARPANET%2Fhasattr-safe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardARPANET%2Fhasattr-safe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardARPANET%2Fhasattr-safe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richardARPANET","download_url":"https://codeload.github.com/richardARPANET/hasattr-safe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardARPANET%2Fhasattr-safe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33071618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hasattr","python-library","python2","python3"],"created_at":"2024-10-02T15:58:30.281Z","updated_at":"2026-05-15T16:06:34.477Z","avatar_url":"https://github.com/richardARPANET.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"**NOTICE**: If you're reading this on GitHub.com please be aware this is a mirror of the primary remote located at https://code.richard.do/explore/projects.\nPlease direct issues and pull requests there.\n\n# hasattr_safe\n[![Build Status](https://travis-ci.org/richardasaurus/hasattr-safe.png?branch=master)](https://travis-ci.org/richardasaurus/hasattr-safe)\n\n`hasattr()` in Python 2 hides all exceptions, `hasattr_safe()` does not, as is the behaviour in Python 3.\n\n### Installation\n\n```bash\npip install hasattr-safe\n```\n\n### Usage\n\n\n```python\nimport hasattr_safe\n\ncake_is_a_lie = hasattr_safe(TheCake, 'lies')\n```\n\n[https://docs.python.org/3/library/functions.html#hasattr](https://docs.python.org/3/library/functions.html#hasattr)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardarpanet%2Fhasattr-safe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichardarpanet%2Fhasattr-safe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardarpanet%2Fhasattr-safe/lists"}