{"id":19879502,"url":"https://github.com/pvlbzn/gobject","last_synced_at":"2026-04-29T15:06:34.373Z","repository":{"id":57435159,"uuid":"81566153","full_name":"pvlbzn/gobject","owner":"pvlbzn","description":"Pythonic Google Geocode API wrapper","archived":false,"fork":false,"pushed_at":"2017-02-12T18:48:53.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-19T00:38:28.928Z","etag":null,"topics":["geocoding","google-api","google-geolocation","json","wrapper"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"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/pvlbzn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-10T13:07:30.000Z","updated_at":"2022-12-23T19:18:27.000Z","dependencies_parsed_at":"2022-09-06T03:10:43.335Z","dependency_job_id":null,"html_url":"https://github.com/pvlbzn/gobject","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pvlbzn/gobject","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Fgobject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Fgobject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Fgobject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Fgobject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pvlbzn","download_url":"https://codeload.github.com/pvlbzn/gobject/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Fgobject/sbom","scorecard":{"id":750555,"data":{"date":"2025-08-11","repo":{"name":"github.com/pvlbzn/gobject","commit":"2e67adbc75534511b0a75c10e79760b23f032f27"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/24 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-22T20:13:28.121Z","repository_id":57435159,"created_at":"2025-08-22T20:13:28.121Z","updated_at":"2025-08-22T20:13:28.121Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32430832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: 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":["geocoding","google-api","google-geolocation","json","wrapper"],"created_at":"2024-11-12T17:08:41.842Z","updated_at":"2026-04-29T15:06:34.356Z","avatar_url":"https://github.com/pvlbzn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Test Coverage](https://codeclimate.com/github/pvlbzn/gobject/badges/coverage.svg)](https://codeclimate.com/github/pvlbzn/gobject/coverage)\n\n\n# Gobject\nGoogle Geocode API wrapper supercharged with Python Data Model,\nwhich makes Gobject behave like a first class citizen. \n\n\n## Install\n\n```\npip install gobject\n```\n\n## Example\n\n_Assume we are working in Python REPL environement_\n\nImport modules: requests to make a request, json as a utility, gobject. Note that `gobject` dependency free library.\nIt does not care about a source of JSON containing response from Google Geocode API.\n\n```\nimport gobject, requests, json\n```\n\nGet JSON response from Google API\n\n```\nresp = requests.get('https://maps.googleapis.com/maps/api/geocode/json?address=Jakarta\u0026key=YOUR_API_KEY')\nresp\n\u003e \u003cResponse [200]\u003e\n```\n\nWe got the response from API, now lets initialize `gobject`. It can be done in two ways, first one is preffered.\n\n```\ngobj = gobject.load(resp.text)\n\n# Or another way using the class Gobject\ngobj_alt = gobject.Gobject(resp.text)\n```\n\nBeeing a Pythonic, `gobject` leverages Python Data Model to be first-class citizen in your code.\n\n```\ngobj == gobj_alt\n\u003e True\n```\n\nImportant feature: `gobject.load` has an inverse function `gobject.serialize`. There exists a _bijection_ relation.\nWrap the data into an object, serialize it and compare to original data.\n\n```\n(gobject.load(resp.text)).serialize() == json.loads(resp.text)\n\u003e True\n```\n\n`gobject` API follows Google Geocode API, just read Geocode docs and you will find it in Gobject too\n\n```\ngobj.bounds\n\u003e \u003cnortheast: \u003clat: -5.1843219 ; lng: 106.972825\u003e, southwest: \u003clat: -6.3708331 ; lng: 106.3831259\u003e\u003e\n\ngobj.bounds.northeast\n\u003e \u003clat: -5.1843219 ; lng: 106.972825\u003e\n\ngobj.bounds.northeast == gobj.bounds.southwest\n\u003e False\n\ngobj.bounds.northeast = gobj.bounds.southwest\ngobj.bounds.northeast == gobj.bounds.southwest\n\u003e True\n\nlen(gobj.address_components)\n\u003e 2\n```\n\n#### Errors\n\nGobject handles all (5 kinds) errors which may occur in 'status' field of a JSON\nresponse from Google Geocode API.\n\nLets make a request with non-existent place, such as _Cappleble_.\n\n```\nresp = requests.get('https://maps.googleapis.com/maps/api/geocode/json?address=Cappleble\u0026key=API_KEY')\nresp\n\u003e \u003cResponse [200]\u003e\n```\n\nAnd load its data into the `gobject`\n\n```\nwobj = gobject.load(resp.text)\n\u003e Traceback (most recent call last):\n\u003e ...\n\u003e gobject.exception.ZeroResultsError: The geocode was successful but returned no results.\nThis may occur if the geocoder was passed a non-existent address.\n```\n\nException message says exactly what we did, the cause of it is a non-existent place.\n\n`gobject` supports all exceptions from Google API with their explanation messages.\n\n\n## Code Quality\n\nCode quality is measured by codeclimate, you can find badge on a first line.\n\nTo test the code run:\n\n```\npy.test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvlbzn%2Fgobject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpvlbzn%2Fgobject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvlbzn%2Fgobject/lists"}