{"id":13502651,"url":"https://github.com/coleifer/flask-peewee","last_synced_at":"2025-05-15T11:01:40.239Z","repository":{"id":1675630,"uuid":"2402668","full_name":"coleifer/flask-peewee","owner":"coleifer","description":"flask integration for peewee, including admin, authentication, rest api and more","archived":false,"fork":false,"pushed_at":"2024-04-11T12:57:30.000Z","size":1614,"stargazers_count":782,"open_issues_count":34,"forks_count":177,"subscribers_count":41,"default_branch":"master","last_synced_at":"2025-04-14T16:58:00.428Z","etag":null,"topics":["flask","peewee","python","web-framework"],"latest_commit_sha":null,"homepage":"http://flask-peewee.readthedocs.org/","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/coleifer.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":"2011-09-16T23:32:56.000Z","updated_at":"2025-03-30T23:40:08.000Z","dependencies_parsed_at":"2024-06-18T18:48:33.320Z","dependency_job_id":"899dfa33-02a0-4fff-a8f9-bd1cf4d3572e","html_url":"https://github.com/coleifer/flask-peewee","commit_stats":{"total_commits":362,"total_committers":21,"mean_commits":"17.238095238095237","dds":0.07182320441988954,"last_synced_commit":"e5433b1e4cfa49e3d0570ebd144bb3257135cc38"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coleifer%2Fflask-peewee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coleifer%2Fflask-peewee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coleifer%2Fflask-peewee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coleifer%2Fflask-peewee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coleifer","download_url":"https://codeload.github.com/coleifer/flask-peewee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328384,"owners_count":22052632,"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","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":["flask","peewee","python","web-framework"],"created_at":"2024-07-31T22:02:21.140Z","updated_at":"2025-05-15T11:01:40.212Z","avatar_url":"https://github.com/coleifer.png","language":"Python","funding_links":[],"categories":["Python","Uncategorized","介绍"],"sub_categories":["Uncategorized"],"readme":"This package is in maintenance-only mode!\n=========================================\n\nI'm sorry to announce that flask-peewee will now be in maintenance-only mode. This decision is motivated by a number of factors:\n\n* `Flask-Admin \u003chttps://flask-admin.readthedocs.io/en/latest/\u003e`_ provides a superior admin interface and has support for peewee models.\n* `Flask-Security \u003chttps://pythonhosted.org/Flask-Security/\u003e`_ and `Flask-Login \u003chttps://flask-login.readthedocs.io/en/latest/\u003e`_ both provide authentication functionality, and work well with Peewee.\n* Most importantly, though, I do not find myself wanting to work on flask-peewee.\n\nI plan on rewriting the ``Database`` and ``REST API`` portions of flask-peewee and repackaging them as a new library, but flask-peewee as it stands currently will be in maintenance-only mode.\n\nflask-peewee\n============\n\nprovides a layer of integration between the `flask \u003chttp://flask.pocoo.org/\u003e`_\nweb framework and the `peewee orm \u003chttps://peewee.readthedocs.io/\u003e`_.\n\nbatteries included:\n\n* admin interface\n* authentication\n* rest api\n\nrequirements:\n\n* `flask \u003chttps://github.com/mitsuhiko/flask\u003e`_\n* `peewee \u003chttps://github.com/coleifer/peewee\u003e`_\n* `wtforms \u003chttps://github.com/wtforms/wtforms\u003e`_\n* `wtf-peewee \u003chttps://github.com/coleifer/wtf-peewee\u003e`_\n* python 2.5 or greater\n\n\ncheck out the `documentation \u003chttps://flask-peewee.readthedocs.io/\u003e`_.\n\n\nadmin interface\n---------------\n\ninfluenced heavily by the `django \u003chttp://djangoproject.com\u003e`_ admin, provides easy\ncreate/edit/delete functionality for your project's models.\n\n.. image:: http://i.imgur.com/EtzdO.jpg\n\n\nrest api\n--------\n\ninfluenced by `tastypie \u003chttps://github.com/toastdriven/django-tastypie\u003e`_, provides\na way to expose a RESTful interface for your project's models.\n\n::\n\n    curl localhost:5000/api/user/\n    {\n      \"meta\": {\n        \"model\": \"user\",\n        \"next\": \"\",\n        \"page\": 1,\n        \"previous\": \"\"\n      },\n      \"objects\": [\n        {\n          \"username\": \"admin\",\n          \"admin\": true,\n          \"email\": \"\",\n          \"join_date\": \"2011-09-16 18:34:49\",\n          \"active\": true,\n          \"id\": 1\n        },\n        {\n          \"username\": \"coleifer\",\n          \"admin\": false,\n          \"email\": \"coleifer@gmail.com\",\n          \"join_date\": \"2011-09-16 18:35:56\",\n          \"active\": true,\n          \"id\": 2\n        }\n      ]\n    }\n\n\ninstalling\n----------\n\nI recommend installing in a virtualenv.  to get started::\n\n    # create a new virtualenv\n    virtualenv --no-site-packages project\n    cd project/\n    source bin/activate\n\n    # install this project (will install dependencies as well)\n    pip install flask-peewee\n\n\nexample app\n-----------\n\nthe project ships with an example app, which is a silly twitter clone.  to\nstart the example app, ``cd`` into the \"example\" directory and execute\nthe ``run_example.py`` script::\n\n    cd example/\n    python run_example.py\n\nif you would like to test out the admin area, log in as \"admin/admin\" and navigate to:\n\nhttp://127.0.0.1:5000/admin/\n\nyou can check out the REST api at the following url:\n\nhttp://127.0.0.1:5000/api/message/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoleifer%2Fflask-peewee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoleifer%2Fflask-peewee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoleifer%2Fflask-peewee/lists"}