{"id":28764950,"url":"https://github.com/klen/muffin-peewee-aio","last_synced_at":"2026-04-02T18:38:57.522Z","repository":{"id":46382098,"uuid":"403926862","full_name":"klen/muffin-peewee-aio","owner":"klen","description":"Peewee integration to Muffin framework with async support","archived":false,"fork":false,"pushed_at":"2026-03-12T14:16:52.000Z","size":1111,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2026-03-12T19:53:48.999Z","etag":null,"topics":["asyncio","muffin","peewee-orm","trio"],"latest_commit_sha":null,"homepage":"","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/klen.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":".github/contributing.md","funding":null,"license":null,"code_of_conduct":".github/code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/codeowners","security":".github/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":"2021-09-07T09:55:26.000Z","updated_at":"2026-03-12T14:17:16.000Z","dependencies_parsed_at":"2024-07-31T20:33:31.368Z","dependency_job_id":"0b21cdd3-095e-4dff-aea1-fab625dc3b55","html_url":"https://github.com/klen/muffin-peewee-aio","commit_stats":null,"previous_names":[],"tags_count":79,"template":false,"template_full_name":null,"purl":"pkg:github/klen/muffin-peewee-aio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fmuffin-peewee-aio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fmuffin-peewee-aio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fmuffin-peewee-aio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fmuffin-peewee-aio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klen","download_url":"https://codeload.github.com/klen/muffin-peewee-aio/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klen%2Fmuffin-peewee-aio/sbom","scorecard":{"id":563345,"data":{"date":"2025-08-11","repo":{"name":"github.com/klen/muffin-peewee-aio","commit":"241f59e0c5bfa469a6a7c842b555b98f38a5fabc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"Maintained","score":5,"reason":"6 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5","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":9,"reason":"security policy file detected","details":["Info: security policy file detected: .github/security.md:1","Info: Found linked content: .github/security.md:1","Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy","Info: Found text in security policy: .github/security.md:1"],"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":"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":"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/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.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/publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/muffin-peewee-aio/publish.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/muffin-peewee-aio/tests.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/klen/muffin-peewee-aio/tests.yml/develop?enable=pin","Info:   0 out of   3 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":"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":"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":"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 'develop'"],"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":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"}}]},"last_synced_at":"2025-08-20T14:16:45.440Z","repository_id":46382098,"created_at":"2025-08-20T14:16:45.441Z","updated_at":"2025-08-20T14:16:45.441Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31313092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["asyncio","muffin","peewee-orm","trio"],"created_at":"2025-06-17T10:13:03.726Z","updated_at":"2026-04-02T18:38:57.517Z","avatar_url":"https://github.com/klen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Muffin Peewee AIO\n#################\n\n**muffin-peewee-aio** — Asynchronous Peewee_ ORM integration for the Muffin_ framework.\n\n.. image:: https://github.com/klen/muffin-peewee-aio/workflows/tests/badge.svg\n    :target: https://github.com/klen/muffin-peewee-aio/actions\n    :alt: Tests Status\n\n.. image:: https://img.shields.io/pypi/v/muffin-peewee-aio\n    :target: https://pypi.org/project/muffin-peewee-aio/\n    :alt: PYPI Version\n\n.. image:: https://img.shields.io/pypi/pyversions/muffin-peewee-aio\n    :target: https://pypi.org/project/muffin-peewee-aio/\n    :alt: Python Versions\n\n.. contents::\n\nRequirements\n============\n\n- Python \u003e= 3.10\n\nInstallation\n============\n\nInstall via pip: ::\n\n    $ pip install muffin-peewee-aio\n\nYou can include an async database driver as needed: ::\n\n    $ pip install muffin-peewee-aio[aiosqlite]\n    $ pip install muffin-peewee-aio[aiopg]\n    $ pip install muffin-peewee-aio[asyncpg]\n    $ pip install muffin-peewee-aio[aiomysql]\n\nUsage\n=====\n\n.. code-block:: python\n\n    from muffin import Application\n    from muffin_peewee import Plugin as Peewee\n\n    # Create the application\n    app = Application(\"example\")\n\n    # Initialize the plugin\n    db = Peewee()\n    db.setup(app, PEEWEE_CONNECTION=\"postgresql://postgres:postgres@localhost:5432/database\")\n\n    # Or: db = Peewee(app, **options)\n\n\nConfiguration\n=============\n\nYou can provide options either at initialization or through the application config.\n\n+------------------------+-----------------------------------------+----------------------------------------------------+\n| Name                   | Default                                 | Description                                        |\n+========================+=========================================+====================================================+\n| **CONNECTION**         | ``sqlite:///db.sqlite``                 | Database connection URL                            |\n+------------------------+-----------------------------------------+----------------------------------------------------+\n| **CONNECTION_PARAMS**  | ``{}``                                  | Extra options passed to the database backend       |\n+------------------------+-----------------------------------------+----------------------------------------------------+\n| **AUTO_CONNECTION**    | ``True``                                | Automatically acquire a DB connection per request  |\n+------------------------+-----------------------------------------+----------------------------------------------------+\n| **AUTO_TRANSACTION**   | ``True``                                | Automatically wrap each request in a transaction   |\n+------------------------+-----------------------------------------+----------------------------------------------------+\n| **MIGRATIONS_ENABLED** | ``True``                                | Enable the migration engine                        |\n+------------------------+-----------------------------------------+----------------------------------------------------+\n| **MIGRATIONS_PATH**    | ``\"migrations\"``                        | Path to store migration files                      |\n+------------------------+-----------------------------------------+----------------------------------------------------+\n| **PYTEST_SETUP_DB**    | ``True``                                | Manage DB setup and teardown in pytest             |\n+------------------------+-----------------------------------------+----------------------------------------------------+\n\nYou can also define options in the `Application` config using the `PEEWEE_` prefix: ::\n\n    PEEWEE_CONNECTION = \"postgresql://...\"\n\nNote: Muffin application config is case-insensitive.\n\nModels and Queries\n==================\n\nDefine your model:\n\n.. code-block:: python\n\n    class Test(db.Model):\n        data = peewee.CharField()\n\nQuery the database:\n\n.. code-block:: python\n\n    @app.route(\"/\")\n    async def view(request):\n        return [t.data async for t in Test.select()]\n\nConnection Management\n=====================\n\nBy default, connections and transactions are managed automatically.\nTo manage them manually, disable the config flags and use context managers:\n\n.. code-block:: python\n\n    @app.route(\"/\")\n    async def view(request):\n        async with db.connection():\n            async with db.transaction():\n                # Perform DB operations here\n                ...\n\nMigrations\n==========\n\nCreate a migration: ::\n\n    $ muffin example:app peewee-create [NAME] [--auto]\n\nRun migrations: ::\n\n    $ muffin example:app peewee-migrate [NAME] [--fake]\n\nRollback the latest migration: ::\n\n    $ muffin example:app peewee-rollback\n\nList all migrations: ::\n\n    $ muffin example:app peewee-list\n\nClear migration history from the database: ::\n\n    $ muffin example:app peewee-clear\n\nMerge all migrations into one: ::\n\n    $ muffin example:app peewee-merge\n\nTesting Support\n===============\n\nYou can use the `conftest()` context manager to auto-manage schema setup and teardown during testing:\n\n.. code-block:: python\n\n    import pytest\n\n    @pytest.mark.asyncio\n    async def test_example():\n        async with db.conftest():\n            # Tables are created and dropped automatically\n            ...\n\nBug Tracker\n===========\n\nFound a bug or have a suggestion? Please open an issue at:\nhttps://github.com/klen/muffin-peewee-aio/issues\n\nContributing\n============\n\nDevelopment takes place at: https://github.com/klen/muffin-peewee-aio\nPull requests are welcome!\n\nContributors\n============\n\n* `klen`_ (Kirill Klenov)\n\nLicense\n=======\n\nThis project is licensed under the `MIT license`_.\n\n.. _links:\n\n.. _MIT license: http://opensource.org/licenses/MIT\n.. _Muffin: https://github.com/klen/muffin\n.. _Peewee: http://docs.peewee-orm.com/en/latest/\n.. _klen: https://github.com/klen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklen%2Fmuffin-peewee-aio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklen%2Fmuffin-peewee-aio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklen%2Fmuffin-peewee-aio/lists"}