├── .github └── workflows │ └── validate-pull-request.yml ├── .gitignore ├── .pre-commit-config.yaml ├── LICENSE ├── README.md ├── deny ├── __init__.py ├── _async │ ├── __init__.py │ ├── ability.py │ └── policy.py ├── _sync │ ├── __init__.py │ ├── ability.py │ └── policy.py ├── action.py ├── errors.py ├── ext │ ├── __init__.py │ ├── errors.py │ ├── falcon.py │ ├── fastapi.py │ ├── flask.py │ └── sanic.py ├── permission.py ├── sync.py └── utils.py ├── examples ├── __init__.py ├── common.py ├── falcon.py ├── fastapi.py ├── flask.py ├── sanic.py ├── sync.py └── usage.py ├── poetry.lock ├── pyproject.toml ├── setup.cfg ├── tests ├── __init__.py ├── deny │ ├── __init__.py │ ├── _async │ │ ├── __init__.py │ │ ├── test_ability.py │ │ └── test_policy.py │ ├── _sync │ │ ├── __init__.py │ │ ├── test_ability.py │ │ └── test_policy.py │ ├── ext │ │ ├── __init__.py │ │ ├── test_falcon.py │ │ ├── test_fastapi.py │ │ ├── test_flask.py │ │ └── test_sanic.py │ └── test_auto_permission.py └── utils │ ├── __init__.py │ ├── models.py │ └── permissions.py └── utils └── run_unasync.py /.github/workflows/validate-pull-request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/.github/workflows/validate-pull-request.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/README.md -------------------------------------------------------------------------------- /deny/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/__init__.py -------------------------------------------------------------------------------- /deny/_async/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deny/_async/ability.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/_async/ability.py -------------------------------------------------------------------------------- /deny/_async/policy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/_async/policy.py -------------------------------------------------------------------------------- /deny/_sync/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deny/_sync/ability.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/_sync/ability.py -------------------------------------------------------------------------------- /deny/_sync/policy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/_sync/policy.py -------------------------------------------------------------------------------- /deny/action.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/action.py -------------------------------------------------------------------------------- /deny/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/errors.py -------------------------------------------------------------------------------- /deny/ext/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deny/ext/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/ext/errors.py -------------------------------------------------------------------------------- /deny/ext/falcon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/ext/falcon.py -------------------------------------------------------------------------------- /deny/ext/fastapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/ext/fastapi.py -------------------------------------------------------------------------------- /deny/ext/flask.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/ext/flask.py -------------------------------------------------------------------------------- /deny/ext/sanic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/ext/sanic.py -------------------------------------------------------------------------------- /deny/permission.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/permission.py -------------------------------------------------------------------------------- /deny/sync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/sync.py -------------------------------------------------------------------------------- /deny/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/deny/utils.py -------------------------------------------------------------------------------- /examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/examples/common.py -------------------------------------------------------------------------------- /examples/falcon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/examples/falcon.py -------------------------------------------------------------------------------- /examples/fastapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/examples/fastapi.py -------------------------------------------------------------------------------- /examples/flask.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/examples/flask.py -------------------------------------------------------------------------------- /examples/sanic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/examples/sanic.py -------------------------------------------------------------------------------- /examples/sync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/examples/sync.py -------------------------------------------------------------------------------- /examples/usage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/examples/usage.py -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/pyproject.toml -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length = 88 3 | extend-ignore = "E203," 4 | -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/deny/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/deny/_async/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/deny/_async/test_ability.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/tests/deny/_async/test_ability.py -------------------------------------------------------------------------------- /tests/deny/_async/test_policy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/tests/deny/_async/test_policy.py -------------------------------------------------------------------------------- /tests/deny/_sync/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/deny/_sync/test_ability.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/tests/deny/_sync/test_ability.py -------------------------------------------------------------------------------- /tests/deny/_sync/test_policy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/tests/deny/_sync/test_policy.py -------------------------------------------------------------------------------- /tests/deny/ext/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/deny/ext/test_falcon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/tests/deny/ext/test_falcon.py -------------------------------------------------------------------------------- /tests/deny/ext/test_fastapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/tests/deny/ext/test_fastapi.py -------------------------------------------------------------------------------- /tests/deny/ext/test_flask.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/tests/deny/ext/test_flask.py -------------------------------------------------------------------------------- /tests/deny/ext/test_sanic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/tests/deny/ext/test_sanic.py -------------------------------------------------------------------------------- /tests/deny/test_auto_permission.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/tests/deny/test_auto_permission.py -------------------------------------------------------------------------------- /tests/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/utils/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/tests/utils/models.py -------------------------------------------------------------------------------- /tests/utils/permissions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/tests/utils/permissions.py -------------------------------------------------------------------------------- /utils/run_unasync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/holinnn/deny/HEAD/utils/run_unasync.py --------------------------------------------------------------------------------