{"id":34066362,"url":"https://github.com/cityofaustin/pypgrest","last_synced_at":"2026-03-12T19:14:03.359Z","repository":{"id":33718071,"uuid":"159991389","full_name":"cityofaustin/pypgrest","owner":"cityofaustin","description":"A python client for interacting with PostgREST APIs. http://postgrest.com","archived":false,"fork":false,"pushed_at":"2023-02-15T21:32:29.000Z","size":18,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":12,"default_branch":"production","last_synced_at":"2026-02-22T09:21:25.900Z","etag":null,"topics":["api","postgrest","python"],"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/cityofaustin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-12-01T22:06:16.000Z","updated_at":"2024-04-02T16:11:14.000Z","dependencies_parsed_at":"2022-08-07T23:00:33.046Z","dependency_job_id":null,"html_url":"https://github.com/cityofaustin/pypgrest","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cityofaustin/pypgrest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityofaustin%2Fpypgrest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityofaustin%2Fpypgrest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityofaustin%2Fpypgrest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityofaustin%2Fpypgrest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cityofaustin","download_url":"https://codeload.github.com/cityofaustin/pypgrest/tar.gz/refs/heads/production","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityofaustin%2Fpypgrest/sbom","scorecard":{"id":283655,"data":{"date":"2025-08-11","repo":{"name":"github.com/cityofaustin/pypgrest","commit":"f997c5a2dfbdb0ccb41f7d6dc0acdabe0bc488db"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":1,"reason":"Found 2/15 approved changesets -- score normalized to 1","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":"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pypi-dev.yml:1","Warn: no topLevel permission defined: .github/workflows/pypi-prod.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi-dev.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/cityofaustin/pypgrest/pypi-dev.yml/production?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi-dev.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/cityofaustin/pypgrest/pypi-dev.yml/production?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi-prod.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/cityofaustin/pypgrest/pypi-prod.yml/production?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi-prod.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/cityofaustin/pypgrest/pypi-prod.yml/production?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pypi-dev.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/pypi-dev.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/pypi-prod.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/pypi-prod.yml:24","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"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":"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":"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 'production'"],"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"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg","Warn: Project is vulnerable to: PYSEC-2015-17","Warn: Project is vulnerable to: PYSEC-2023-74"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T16:39:18.101Z","repository_id":33718071,"created_at":"2025-08-17T16:39:18.102Z","updated_at":"2025-08-17T16:39:18.102Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30439647,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"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":["api","postgrest","python"],"created_at":"2025-12-14T06:32:50.854Z","updated_at":"2026-03-12T19:14:03.352Z","avatar_url":"https://github.com/cityofaustin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pypgrest\n\nA Python client for interacting with PostgREST APIs.\n\n## Installation\n\n```\n$ pip install pypgrest\n```\n\n## Quick start\n\n```python\n\u003e\u003e\u003e from pypgrest import Postgrest\n\n\u003e\u003e\u003e client = Postgrest(\"https://api.tacos.com\", token=\"secretsalsa\")\n\n# See postgrest docs for supported query params\n\u003e\u003e\u003e params = {\n        \"select\" : \"name,tortilla,cost\",\n        \"tortilla\" : \"is.corn\",\n        \"limit\" : 100,\n        \"order\": \"name\"\n    }\n\n# Supported methods are select, insert, update, upsert, and delete\n\u003e\u003e\u003e client.select(resource=\"menu\", params=params, pagination=True, headers=None)\n# [{ \"name\" : \"al pastor\", \"tortilla\" : \"corn\", \"cost\" : \"2.01\" }, ... ]\n\n\u003e\u003e\u003e payload = [{ \"id\" : 23, \"cost\" : \"2.25\" }, { \"id\" : 26, \"cost\" : \"1.25\" }]\n\n\u003e\u003e\u003e pgrest.upsert(payload)\n# [{ \"id\" : 23, \"cost\" : \"2.25\", \"name\" : \"al pastor\", ... }, ... ]\n\n# You can inspect the response object at `self.res`:\n\u003e\u003e\u003e client.res.status_code\n# 201\n```\n\n## Headers\n\nThe client is initialized with `Content-Type=application/json` and (if you supply a token) `Authorization` headers. You can supply additional headers on construction, or per request.\n\n```python\n\u003e\u003e\u003e client = Postgrest(\n    \"https://api.tacos.com\",\n    token=\"secretsalsa\", \n    headers={\"Prefer\": \"return=representation\"}\n)\n\n\u003e\u003e\u003e client.headers\n# {\"Content-Type\": 'application/json', 'Authorization': 'Bearer secretsalsa', 'Prefer': 'return=representation'}\n\n\u003e\u003e\u003e client.insert(\n    resource=\"menu\",\n    data={\"id\": 5, \"name\": \"barbacoa\"},\n    headers={\"Prefer\": \"return=headers-only\"}\n)\n\n```\n\n## Limits and pagination\n\nBy default, the client will paginate requests until all records have been retrieved. You can supply a `limit` param to limit the number of results returned by `select`. \n\nYou can disable pagination with `pagination=False`, in which case the record limit will be capped by your API's [`max-rows`](https://postgrest.org/en/v8.0/configuration.html#max-rows) setting. \n\n## Development\n\nWe use Github Actions to publish to PyPI. The workflows are defined in .github/workflows.\n\nAny commit/merge to the dev branch will trigger a PyPI publication to the knackpy-dev package. Any *release* on the master branch will trigger publication to the knackpy package on PyPI. Note that PyPI publications will fail if don’t bump the version number in setup.py.\n\n\n## License\n\nAs a work of the City of Austin, this project is in the public domain within the United States.\n\nAdditionally, we waive copyright and related rights of the work worldwide through the [CC0 1.0 Universal public domain dedication](https://creativecommons.org/publicdomain/zero/1.0/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityofaustin%2Fpypgrest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcityofaustin%2Fpypgrest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityofaustin%2Fpypgrest/lists"}