{"id":27633128,"url":"https://github.com/thrzl/perspective","last_synced_at":"2025-10-20T02:22:26.382Z","repository":{"id":105011318,"uuid":"605846613","full_name":"thrzl/perspective","owner":"thrzl","description":"a python library for interacting with google's perspective api","archived":false,"fork":false,"pushed_at":"2024-04-20T00:59:53.000Z","size":50,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T18:13:46.573Z","etag":null,"topics":["perspective","perspective-api","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thrzl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2023-02-24T02:44:55.000Z","updated_at":"2024-05-07T23:28:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ffe8b29-7e3a-4e18-a6fc-33ce78611412","html_url":"https://github.com/thrzl/perspective","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/thrzl/perspective","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thrzl%2Fperspective","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thrzl%2Fperspective/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thrzl%2Fperspective/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thrzl%2Fperspective/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thrzl","download_url":"https://codeload.github.com/thrzl/perspective/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thrzl%2Fperspective/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279981262,"owners_count":26254278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["perspective","perspective-api","python","python3"],"created_at":"2025-04-23T18:13:45.189Z","updated_at":"2025-10-20T02:22:26.300Z","avatar_url":"https://github.com/thrzl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💖 perspective\na strongly typed wrapper for google's perspective api\n\n## 📦 installation\n```sh\npip install perspectiveapi\n```\n\n## 🪴 example\n### async\n```py\nfrom perspective import Perspective, Attribute\n\np = Perspective(key=\"...\")\n\nasync def main():\n    s = await p.score(\n        \"your message here\", attributes=(Attribute.FLIRTATION, Attribute.SEVERE_TOXICITY)\n    )\n    print(s.flirtation) \n    print(s.severe_toxicity)\n```\n\n### blocking\n```py\nfrom perspective.blocking import Perspective, Attribute\n\np = Perspective(key=\"...\")\n\ndef main():\n    s = p.score(\n        \"your message here\", attributes=(Attribute.FLIRTATION, Attribute.SEVERE_TOXICITY)\n    )\n    print(s.flirtation) \n    print(s.severe_toxicity)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthrzl%2Fperspective","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthrzl%2Fperspective","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthrzl%2Fperspective/lists"}