{"id":13421574,"url":"https://github.com/dusktreader/flask-praetorian","last_synced_at":"2025-05-15T00:12:12.083Z","repository":{"id":44933553,"uuid":"74596218","full_name":"dusktreader/flask-praetorian","owner":"dusktreader","description":"Strong, Simple, and Precise security for Flask APIs (using jwt)","archived":false,"fork":false,"pushed_at":"2024-12-24T01:02:23.000Z","size":3345,"stargazers_count":345,"open_issues_count":3,"forks_count":47,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-04-04T14:05:05.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://flask-praetorian.readthedocs.io/en/latest/","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/dusktreader.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE.rst","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-11-23T16:47:18.000Z","updated_at":"2025-03-28T22:05:25.000Z","dependencies_parsed_at":"2022-08-04T11:30:18.594Z","dependency_job_id":"d8365b80-2ffb-48f3-83d5-acb6386d8ced","html_url":"https://github.com/dusktreader/flask-praetorian","commit_stats":{"total_commits":238,"total_committers":28,"mean_commits":8.5,"dds":0.6302521008403361,"last_synced_commit":"32e614e0cd1374b3519144fbefe8e09f6162c813"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dusktreader%2Fflask-praetorian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dusktreader%2Fflask-praetorian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dusktreader%2Fflask-praetorian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dusktreader%2Fflask-praetorian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dusktreader","download_url":"https://codeload.github.com/dusktreader/flask-praetorian/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248782280,"owners_count":21160716,"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":[],"created_at":"2024-07-30T23:00:25.445Z","updated_at":"2025-04-13T20:44:42.476Z","avatar_url":"https://github.com/dusktreader.png","language":"Python","funding_links":[],"categories":["Authentication","Python","Authorization \u0026 Authentication"],"sub_categories":[],"readme":".. image::  https://badge.fury.io/py/flask-praetorian.svg\n   :target: https://badge.fury.io/py/flask-praetorian\n   :alt:    Latest Published Version\n\n.. image::  https://travis-ci.org/dusktreader/flask-praetorian.svg?branch=master\n   :target: https://travis-ci.org/dusktreader/flask-praetorian\n   :alt:    Build Status\n\n.. image::  https://readthedocs.org/projects/flask-praetorian/badge/?version=latest\n   :target: http://flask-praetorian.readthedocs.io/en/latest/?badge=latest\n   :alt:    Documentation Build Status\n\n******************\n flask-praetorian\n******************\n\n---------------------------------------------------\nStrong, Simple, and Precise security for Flask APIs\n---------------------------------------------------\n\nAPI security should be strong, simple, and precise like a Roman Legionary.\nThis package aims to provide that. Using `JWT \u003chttps://jwt.io/\u003e`_ tokens as\nimplemented by `PyJWT \u003chttps://pyjwt.readthedocs.io/en/latest/\u003e`_,\n*flask_praetorian* uses a very simple interface to make sure that the users\naccessing your API's endpoints are provisioned with the correct roles for\naccess.\n\nThis project was heavily influenced by\n`Flask-Security \u003chttps://pythonhosted.org/Flask-Security/\u003e`_, but intends\nto supply only essential functionality. Instead of trying to anticipate the\nneeds of all users, *flask-praetorian* will provide a simple and secure mechanism\nto provide security for APIs specifically.\n\nThis extension offers a batteries-included approach to security for your API.\nFor essential security concerns for Flask-based APIs,\n`flask-praetorian \u003chttps://github.com/dusktreader/flask-praetorian\u003e`_ should\nsupply everything you need.\n\nThe *flask-praetorian* package can be used to:\n\n* Hash passwords for storing in your database\n* Verify plaintext passwords against the hashed, stored versions\n* Generate authorization tokens upon verification of passwords\n* Check requests to secured endpoints for authorized tokens\n* Supply expiration of tokens and mechanisms for refreshing them\n* Ensure that the users associated with tokens have necessary roles for access\n* Parse user information from request headers for use in client route handlers\n* Support inclusion of custom user claims in tokens\n* Register new users using email verification\n\nAll of this is provided in a very simple to configure and initialize flask\nextension. Though simple, the security provided by *flask-praetorian* is strong\ndue to the usage of the proven security technology of JWT\nand python's `PassLib \u003chttp://pythonhosted.org/passlib/\u003e`_ package.\n\nSuper-quick Start\n-----------------\n - requirements: `python` versions 3.8+\n - install through pip: `$ pip install flask-praetorian`\n - minimal usage example: `example/basic.py \u003chttps://github.com/dusktreader/flask-praetorian/tree/master/example/basic.py\u003e`_\n\nDocumentation\n-------------\n\nThe complete documentation can be found at the\n`flask-praetorian home page \u003chttp://flask-praetorian.readthedocs.io\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdusktreader%2Fflask-praetorian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdusktreader%2Fflask-praetorian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdusktreader%2Fflask-praetorian/lists"}