{"id":13424614,"url":"https://github.com/piccolo-orm/piccolo","last_synced_at":"2026-02-11T02:16:47.815Z","repository":{"id":37484405,"uuid":"155008334","full_name":"piccolo-orm/piccolo","owner":"piccolo-orm","description":"A fast, user friendly ORM and query builder which supports asyncio.","archived":false,"fork":false,"pushed_at":"2026-01-12T18:19:24.000Z","size":4522,"stargazers_count":1853,"open_issues_count":81,"forks_count":97,"subscribers_count":16,"default_branch":"master","last_synced_at":"2026-01-29T17:36:06.062Z","etag":null,"topics":["asgi","asyncio","database","fastapi","hacktoberfest","orm","piccolo","postgresql","python","python3","query-builder","sqlite","starlette"],"latest_commit_sha":null,"homepage":"https://piccolo-orm.com/","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/piccolo-orm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.rst","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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-10-27T20:53:26.000Z","updated_at":"2026-01-26T02:49:14.000Z","dependencies_parsed_at":"2025-12-16T22:11:42.613Z","dependency_job_id":null,"html_url":"https://github.com/piccolo-orm/piccolo","commit_stats":{"total_commits":1724,"total_committers":46,"mean_commits":37.47826086956522,"dds":"0.12529002320185612","last_synced_commit":"df86c2e189849356ac766f8c89c366b97a468aca"},"previous_names":[],"tags_count":286,"template":false,"template_full_name":null,"purl":"pkg:github/piccolo-orm/piccolo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piccolo-orm%2Fpiccolo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piccolo-orm%2Fpiccolo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piccolo-orm%2Fpiccolo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piccolo-orm%2Fpiccolo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piccolo-orm","download_url":"https://codeload.github.com/piccolo-orm/piccolo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piccolo-orm%2Fpiccolo/sbom","scorecard":{"id":732974,"data":{"date":"2025-08-18","repo":{"name":"github.com/piccolo-orm/piccolo","commit":"5139ec0644675bc3b195d46de2d50571cfa9e4c7"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":5,"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Code-Review","score":4,"reason":"Found 12/30 approved changesets -- score normalized to 4","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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"26 commit(s) and 12 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yaml:1","Warn: no topLevel permission defined: .github/workflows/tests.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/40576783fda6698350fcbbeaea760ff827433034/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/release.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:110: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:112: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/tests.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yaml:136: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:147: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:149: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/tests.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yaml:170: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:181: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/tests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:183: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/tests.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yaml:195: update your workflow using https://app.stepsecurity.io/secureworkflow/piccolo-orm/piccolo/tests.yaml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/release.yaml:20","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:117","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:118","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:119","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:120","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:154","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:155","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:156","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:157","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:188","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:189","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:190","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:191","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:29","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:30","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:31","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:32","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:65","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:66","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:67","Warn: pipCommand not pinned by hash: .github/workflows/tests.yaml:68","Info:   0 out of  12 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of  21 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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-29gw-9793-fvw7","Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: PYSEC-2021-66 / GHSA-g3rq-g295-4j3m","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: PYSEC-2021-47 / GHSA-5jqp-qgf6-3pvh","Warn: Project is vulnerable to: GHSA-mr82-8j83-vxmv"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/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 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T14:57:32.823Z","repository_id":37484405,"created_at":"2025-08-22T14:57:32.823Z","updated_at":"2025-08-22T14:57:32.823Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29181265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T23:15:33.022Z","status":"ssl_error","status_checked_at":"2026-02-06T23:15:09.128Z","response_time":59,"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":["asgi","asyncio","database","fastapi","hacktoberfest","orm","piccolo","postgresql","python","python3","query-builder","sqlite","starlette"],"created_at":"2024-07-31T00:00:57.037Z","updated_at":"2026-02-07T00:05:08.475Z","avatar_url":"https://github.com/piccolo-orm.png","language":"Python","funding_links":[],"categories":["Third-Party Extensions","Python","HarmonyOS","Database Clients","Object Mapping","Database Drivers"],"sub_categories":["Databases","Windows Manager"],"readme":"![Logo](https://raw.githubusercontent.com/piccolo-orm/piccolo/master/docs/logo_hero.png \"Piccolo Logo\")\n\n![Tests](https://github.com/piccolo-orm/piccolo/actions/workflows/tests.yaml/badge.svg)\n![Release](https://github.com/piccolo-orm/piccolo/actions/workflows/release.yaml/badge.svg)\n[![Documentation Status](https://readthedocs.org/projects/piccolo-orm/badge/?version=latest)](https://piccolo-orm.readthedocs.io/en/latest/?badge=latest)\n[![PyPI](https://img.shields.io/pypi/v/piccolo?color=%2334D058\u0026label=pypi)](https://pypi.org/project/piccolo/)\n[![codecov](https://codecov.io/gh/piccolo-orm/piccolo/branch/master/graph/badge.svg?token=V19CWH7MXX)](https://codecov.io/gh/piccolo-orm/piccolo)\n\nPiccolo is a fast, user friendly ORM and query builder which supports asyncio. [Read the docs](https://piccolo-orm.readthedocs.io/en/latest/).\n\n## Features\n\nSome of it’s stand out features are:\n\n- Support for sync and async.\n- A builtin playground, which makes learning a breeze.\n- Tab completion support - works great with iPython and VSCode.\n- Batteries included - a User model, authentication, migrations, an [admin GUI](https://github.com/piccolo-orm/piccolo_admin), and more.\n- Modern Python - fully type annotated.\n- Make your codebase modular and scalable with Piccolo apps (similar to Django apps).\n\n## Syntax\n\nThe syntax is clean and expressive.\n\nYou can use it as a query builder:\n\n```python\n# Select:\nawait Band.select(\n    Band.name\n).where(\n    Band.popularity \u003e 100\n)\n\n# Join:\nawait Band.select(\n    Band.name,\n    Band.manager.name\n)\n\n# Delete:\nawait Band.delete().where(\n    Band.popularity \u003c 1000\n)\n\n# Update:\nawait Band.update({Band.popularity: 10000}).where(\n    Band.name == 'Pythonistas'\n)\n```\n\nOr like a typical ORM:\n\n```python\n# To create a new object:\nb = Band(name='C-Sharps', popularity=100)\nawait b.save()\n\n# To fetch an object from the database, and update it:\nb = await Band.objects().get(Band.name == 'Pythonistas')\nb.popularity = 10000\nawait b.save()\n\n# To delete:\nawait b.remove()\n```\n\n## Installation\n\nInstalling with PostgreSQL driver:\n\n```bash\npip install 'piccolo[postgres]'\n```\n\nInstalling with SQLite driver:\n\n```bash\npip install 'piccolo[sqlite]'\n```\n\nInstalling with all optional dependencies (easiest):\n\n```bash\npip install 'piccolo[all]'\n```\n\n## Building a web app?\n\nLet Piccolo scaffold you an ASGI web app, using Piccolo as the ORM:\n\n```bash\npiccolo asgi new\n```\n\n[Starlette](https://www.starlette.io/), [FastAPI](https://fastapi.tiangolo.com/), [BlackSheep](https://www.neoteroi.dev/blacksheep/), [Litestar](https://litestar.dev/), [Ravyn](https://www.ravyn.dev/), [Lilya](https://lilya.dev/), [Quart](https://quart.palletsprojects.com/en/latest/), [Falcon](https://falconframework.org/) and [Sanic](https://sanic.dev/en/) are currently supported.\n\n## Piccolo ecosystem\n\n### Piccolo Admin\n\nPiccolo Admin is a powerful admin interface / content management system for Python, built on top of Piccolo.\n\nIt was created at a design agency to serve the needs of customers who demand a high quality, beautiful admin interface for their websites. It's a modern alternative to tools like Wordpress and Django Admin.\n\nIt's built using the latest technologies, with Vue.js on the front end, and a powerful REST backend.\n\nSome of it's standout features:\n\n* Powerful data filtering\n* Builtin security\n* Multi-factor Authentication\n* Media support, both locally and in S3 compatible services\n* Dark mode support\n* CSV exports\n* Easily create custom forms\n* Works on mobile and desktop\n* Use standalone, or integrate with several supported ASGI frameworks\n* Multilingual out of box\n* Bulk actions, like updating and deleting data\n* Flexible UI - only show the columns you want your users to see\n\nYou can read the docs [here](https://piccolo-admin.readthedocs.io/en/latest/).\n\n### Piccolo API\n\nUtilities for easily exposing [Piccolo](https://piccolo-orm.readthedocs.io/en/latest/) tables as REST endpoints in ASGI apps, such as [Starlette](https://www.starlette.io) and [FastAPI](https://fastapi.tiangolo.com/).\n\nIncludes a bunch of useful ASGI middleware:\n\n- Session Auth\n- Token Auth\n- Rate Limiting\n- CSRF\n- Content Security Policy (CSP)\n- And more\n\nYou can read the docs [here](https://piccolo-api.readthedocs.io/en/latest/).\n\n## Are you a Django user?\n\nWe have a handy page which shows the equivalent of [common Django queries in Piccolo](https://piccolo-orm.readthedocs.io/en/latest/piccolo/query_types/django_comparison.html).\n\n## Documentation\n\nOur documentation is on [Read the docs](https://piccolo-orm.readthedocs.io/en/latest/piccolo/getting_started/index.html).\n\nWe also have some great [tutorial videos on YouTube](https://www.youtube.com/channel/UCE7x5nm1Iy9KDfXPNrNQ5lA).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiccolo-orm%2Fpiccolo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiccolo-orm%2Fpiccolo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiccolo-orm%2Fpiccolo/lists"}