{"id":13802629,"url":"https://github.com/nakagami/micropg","last_synced_at":"2025-12-24T14:17:19.679Z","repository":{"id":50617438,"uuid":"70363112","full_name":"nakagami/micropg","owner":"nakagami","description":"PostgreSQL database driver for MicroPython","archived":false,"fork":false,"pushed_at":"2025-01-06T03:38:08.000Z","size":283,"stargazers_count":26,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-10-31T10:56:04.527Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nakagami.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2016-10-08T23:30:56.000Z","updated_at":"2025-01-06T00:00:11.000Z","dependencies_parsed_at":"2024-02-11T03:26:40.649Z","dependency_job_id":"8fc52715-e2dc-45c0-9039-625ae4663218","html_url":"https://github.com/nakagami/micropg","commit_stats":{"total_commits":72,"total_committers":1,"mean_commits":72.0,"dds":0.0,"last_synced_commit":"1eacf43f47575e954614d618371a48adbd81a62c"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/nakagami/micropg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakagami%2Fmicropg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakagami%2Fmicropg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakagami%2Fmicropg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakagami%2Fmicropg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nakagami","download_url":"https://codeload.github.com/nakagami/micropg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakagami%2Fmicropg/sbom","scorecard":{"id":673316,"data":{"date":"2025-08-11","repo":{"name":"github.com/nakagami/micropg","commit":"bd2ceff1fbc793fd61095744e106d38d034b829d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"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":"Code-Review","score":0,"reason":"Found 1/29 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.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":"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":"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/test.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/nakagami/micropg/test.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned 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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT 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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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-21T20:51:08.777Z","repository_id":50617438,"created_at":"2025-08-21T20:51:08.777Z","updated_at":"2025-08-21T20:51:08.777Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28003727,"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-12-24T02:00:07.193Z","response_time":83,"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":[],"created_at":"2024-08-04T00:01:48.896Z","updated_at":"2025-12-24T14:17:19.656Z","avatar_url":"https://github.com/nakagami.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":["Storage"],"readme":"=============\nmicropg\n=============\n\nPostgreSQL database driver for Python and MicroPython.\n\n\nInstallation\n-----------------\n\nPython\n+++++++++++++++\n\n::\n\n   pip install micropg\n\nMicroPython\n+++++++++++++++\n\nGo interactive shell and install with mip as follow.\n::\n\n   \u003e\u003e\u003e import mip\n   \u003e\u003e\u003e mip.install(\"https://github.com/nakagami/micropg/blob/master/micropg.py\")\n\nExample\n-----------------\nYou find more examples in the `examples \u003chttps://github.com/nakagami/micropg/tree/master/examples\u003e`_ folder.\n\nQuery::\n\n   import micropg\n   conn = micropg.connect(host='127.0.0.1',\n                       user='postgres',\n                       password='secret',\n                       database='database_name',\n                       use_ssl=False)\n   cur = conn.cursor()\n\n   cur.execute('select foo, bar from baz')\n   for r in cur.fetchall():\n      print(r[0], r[1])\n\n   # execute with parameter\n   cur.execute('select foo, bar from baz where name=%s ', ['nakagami'])\n   for r in cur.fetchall():\n      print(r[0], r[1])\n\n   conn.close()\n\nRestrictions and Unsupported Features\n--------------------------------------\n\n- If installed in Python, it can only handle types supported by MicroPython.\n- Supported Authentication METHOD are only 'trust', 'md5' and 'scram-sha-256'.\n- Not support for array data types.\n- Not support for prepared statements.\n\nIf you use md5 authentication METHOD, you may need a patch\nhttps://github.com/nakagami/micropg/issues/2\n\n\n\nFor CPython\n---------------------\n\nI also wrote a pure Python driver.\nhttps://github.com/nakagami/minipg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakagami%2Fmicropg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnakagami%2Fmicropg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakagami%2Fmicropg/lists"}