{"id":29104981,"url":"https://github.com/aserto-dev/python-authorizer","last_synced_at":"2026-02-16T09:37:46.044Z","repository":{"id":278824572,"uuid":"546056677","full_name":"aserto-dev/python-authorizer","owner":"aserto-dev","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-25T16:42:16.000Z","size":174,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-28T03:55:15.231Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/aserto-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS.md","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-05T12:56:39.000Z","updated_at":"2025-03-25T16:42:20.000Z","dependencies_parsed_at":"2025-02-21T22:37:31.827Z","dependency_job_id":"435aaadd-d230-425e-b3a8-b537bae13948","html_url":"https://github.com/aserto-dev/python-authorizer","commit_stats":null,"previous_names":["aserto-dev/python-authorizer"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/aserto-dev/python-authorizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fpython-authorizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fpython-authorizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fpython-authorizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fpython-authorizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aserto-dev","download_url":"https://codeload.github.com/aserto-dev/python-authorizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fpython-authorizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29504944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"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":[],"created_at":"2025-06-29T00:39:00.043Z","updated_at":"2026-02-16T09:37:46.029Z","avatar_url":"https://github.com/aserto-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aserto Authorizer gRPC client\nThis is an automatically generated client for interacting with Aserto's [Authorizer service](https://docs.aserto.com/docs/authorizer-guide/overview) using the gRPC protocol.\n\nThe code was generated from https://buf.build/aserto-dev/authorizer.\n\n\n## Installation\n\n### Using Pip\n```sh\npip install aserto-authorizer\n```\n\n### Using Poetry\n```sh\npoetry add aserto-authorizer\n```\n\n## Usage\n\n```py\nimport grpc\nfrom aserto.authorizer.v2.api import (\n    IdentityContext,\n    IdentityType,\n    PolicyContext,\n    PolicyInstance,\n)\nfrom aserto.authorizer.v2 import (\n    AuthorizerStub,\n    DecisionTreeRequest,\n    DecisionTreeOptions,\n    DecisionTreeResponse,\n    PathSeparator,\n)\nfrom grpclib.client import Channel\n\n\nwith grpc.secure_channel(\n    target=\"authorizer.prod.aserto.com:8443\",\n    credentials=grpc.ssl_channel_credentials(),\n) as channel:\n    client = AuthorizerStub(channel)\n\n    response = client.DecisionTree(\n        DecisionTreeRequest(\n            policy_context=PolicyContext(\n                path=ASERTO_POLICY_PATH_ROOT,\n                decisions=[\"visible\", \"enabled\", \"allowed\"],\n            ),\n            policy_instance=PolicyInstance(\n                name=ASERTO_POLICY_NAME,\n                instance_label=ASERTO_POLICY_INSTANCE_LABEL,\n            ),\n            identity_context=IdentityContext(type=IdentityType.IDENTITY_TYPE_NONE),\n            options=DecisionTreeOptions(\n                path_separator=PathSeparator.PATH_SEPARATOR_DOT,\n            ),\n        )\n    )\n\n    assert response == DecisionTreeResponse(\n        path_root=ASERTO_POLICY_PATH_ROOT,\n        path=Proto.Struct(\n            fields={\n                \"GET.your.policy.path\": Proto.Value(\n                    struct_value=Proto.Struct(\n                        fields={\n                            \"visible\": Proto.Value(bool_value=True),\n                            \"enabled\": Proto.Value(bool_value=True),\n                            \"allowed\": Proto.Value(bool_value=False),\n                        },\n                    ),\n                ),\n            },\n        ),\n    )\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faserto-dev%2Fpython-authorizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faserto-dev%2Fpython-authorizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faserto-dev%2Fpython-authorizer/lists"}