{"id":39633248,"url":"https://github.com/sprockets/sprockets-postgres","last_synced_at":"2026-01-18T08:48:57.059Z","repository":{"id":48210777,"uuid":"253554410","full_name":"sprockets/sprockets-postgres","owner":"sprockets","description":"An asynchronous Postgres client mixin for Tornado applications","archived":false,"fork":false,"pushed_at":"2022-12-01T21:09:09.000Z","size":159,"stargazers_count":2,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-11-27T21:40:21.546Z","etag":null,"topics":["asyncio","postgresql","python3","tornado"],"latest_commit_sha":null,"homepage":"https://sprockets-postgres.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sprockets.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-06T16:27:32.000Z","updated_at":"2022-06-28T15:39:22.000Z","dependencies_parsed_at":"2023-01-23T21:15:42.612Z","dependency_job_id":null,"html_url":"https://github.com/sprockets/sprockets-postgres","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/sprockets/sprockets-postgres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprockets%2Fsprockets-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprockets%2Fsprockets-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprockets%2Fsprockets-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprockets%2Fsprockets-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sprockets","download_url":"https://codeload.github.com/sprockets/sprockets-postgres/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprockets%2Fsprockets-postgres/sbom","scorecard":{"id":842619,"data":{"date":"2025-08-11","repo":{"name":"github.com/sprockets/sprockets-postgres","commit":"c2a2f54c61c8c121151c81ef37fd8c5356f179c8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"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":"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":"Code-Review","score":5,"reason":"Found 7/14 approved changesets -- score normalized to 5","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":"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":"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/deploy.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/sprockets/sprockets-postgres/deploy.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sprockets/sprockets-postgres/deploy.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yaml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/sprockets/sprockets-postgres/testing.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/testing.yaml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/sprockets/sprockets-postgres/testing.yaml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/deploy.yaml:1","Warn: no topLevel permission defined: .github/workflows/testing.yaml: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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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 'main'"],"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":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2019-130","Warn: Project is vulnerable to: PYSEC-2019-131"],"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 23 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-23T20:48:48.791Z","repository_id":48210777,"created_at":"2025-08-23T20:48:48.792Z","updated_at":"2025-08-23T20:48:48.792Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":["asyncio","postgresql","python3","tornado"],"created_at":"2026-01-18T08:48:56.710Z","updated_at":"2026-01-18T08:48:57.045Z","avatar_url":"https://github.com/sprockets.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sprockets Postgres\n==================\nAn set of mixins and classes for interacting with PostgreSQL using asyncio in\nTornado / sprockets.http applications using aiopg.\n\n|Version| |Status| |Coverage| |License|\n\nInstallation\n------------\n``sprockets-postgres`` is available on the Python package index and is installable via pip:\n\n.. code:: bash\n\n    pip install sprockets-postgres\n\nDocumentation\n-------------\nDocumentation is available at `sprockets-postgres.readthedocs.io \u003chttps://sprockets-postgres.readthedocs.io\u003e`_.\n\nConfiguration\n-------------\nConfiguration of sprockets-postgres is done by using of environment variables or\n`tornado.web.Application.settings \u003chttps://www.tornadoweb.org/en/stable/web.html#tornado.web.Application.settings\u003e`_\ndictionary. The `sprockets_postgres.ApplicationMixin \u003chttps://sprockets-postgres.readthedocs.io/en/stable/application.html\u003e`_\nwill use configuration as applied to the settings dictionary, falling back to the\nenvironment variable if the value is not set in the dictionary. Keys in the\nsettings dictionary are lowercase, and if provided as environment variables,\nare uppercase.\n\nThe following table details the available configuration options:\n\n+---------------------------------+--------------------------------------------------+------+-----------+\n| Variable                        | Definition                                       | Type | Default   |\n+=================================+==================================================+======+===========+\n| ``postgres_url``                | The PostgreSQL URL to connect to                 | str  |           |\n+---------------------------------+--------------------------------------------------+------+-----------+\n| ``postgres_max_pool_size``      | Maximum connection count to Postgres per backend | int  | ``10``    |\n+---------------------------------+--------------------------------------------------+------+-----------+\n| ``postgres_min_pool_size``      | Minimum or starting pool size.                   | int  | ``1``     |\n+---------------------------------+--------------------------------------------------+------+-----------+\n| ``postgres_connection_timeout`` | The maximum time in seconds to spend attempting  | int  | ``10``    |\n|                                 | to create a new connection.                      |      |           |\n+---------------------------------+--------------------------------------------------+------+-----------+\n| ``postgres_connection_ttl``     | Time-to-life in seconds for a pooled connection. | int  | ``300``   |\n+---------------------------------+--------------------------------------------------+------+-----------+\n| ``postgres_query_timeout``      | Maximum execution time for a query in seconds.   | int  | ``60``    |\n+---------------------------------+--------------------------------------------------+------+-----------+\n| ``postgres_hstore``             | Enable HSTORE support in the client.             | bool | ``FALSE`` |\n+---------------------------------+--------------------------------------------------+------+-----------+\n| ``postgres_json``               | Enable JSON support in the client.               | bool | ``FALSE`` |\n+---------------------------------+--------------------------------------------------+------+-----------+\n| ``postgres_uuid``               | Enable UUID support in the client.               | bool | ``TRUE``  |\n+---------------------------------+--------------------------------------------------+------+-----------+\n\nIf ``postgres_url`` uses a scheme of ``postgresql+srv``, a SRV DNS lookup will be\nperformed and the lowest priority record with the highest weight will be selected\nfor connecting to Postgres.\n\nAWS's ECS service discovery does not follow the SRV standard, but creates SRV\nrecords. If ``postgres_url`` uses a scheme of ``aws+srv``, a SRV DNS lookup will be\nperformed and the URL will be constructed containing all host and port combinations\nin priority and weighted order, utilizing `libpq's supoprt \u003chttps://www.postgresql.org/docs/12/libpq-connect.html\u003e`_\nfor multiple hosts in a URL.\n\nRequirements\n------------\n- `aiodns \u003chttps://github.com/saghul/aiodns\u003e`_\n- `aiopg \u003chttps://aioboto3.readthedocs.io/en/latest/\u003e`_\n- `sprockets.http \u003chttps://sprocketshttp.readthedocs.io/en/master/\u003e`_\n- `Tornado \u003chttps://tornadoweb.org\u003e`_\n\nVersion History\n---------------\nAvailable at https://sprockets-postgres.readthedocs.org/en/latest/history.html\n\n.. |Version| image:: https://img.shields.io/pypi/v/sprockets-postgres.svg?\n   :target: https://pypi.python.org/pypi/sprockets-postgres\n\n.. |Status| image:: https://github.com/sprockets/sprockets-postgres/workflows/Testing/badge.svg?\n   :target: https://github.com/sprockets/sprockets-postgres/actions?workflow=Testing\n   :alt: Build Status\n\n.. |Coverage| image:: https://img.shields.io/codecov/c/github/sprockets/sprockets-postgres.svg?\n   :target: https://codecov.io/github/sprockets/sprockets-postgres?branch=master\n\n.. |License| image:: https://img.shields.io/pypi/l/sprockets-postgres.svg?\n   :target: https://sprockets-postgres.readthedocs.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsprockets%2Fsprockets-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsprockets%2Fsprockets-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsprockets%2Fsprockets-postgres/lists"}