# Space Blocks Permissions Server SDK for Python
This is the Python server SDK for Space Blocks Permissions.
## Usage
Required Python version: 3.8 or later.
The package is published to the official Python Package Index (https://pypi.org/project/spaceblocks-permissions-server).
It can be installed with:
```bash
pip install spaceblocks-permissions-server
```
To get started, import the package and create an instance of the `PermissionsClient`:
```python
from spaceblocks_permissions_server import (
PermissionsClient,
ClientAuthenticationOptions
)
client = PermissionsClient(
'<SPACE_BLOCKS_PERMISSIONS_URL>',
ClientAuthenticationOptions(
api_key='<YOUR_API_KEY>',
client_id='<YOUR_CLIENT_ID>',
client_secret='<YOUR_CLIENT_SECRET>'
)
)
client.permission_api.check_permissions(...)
```
The code above uses a client ID and secret to issue an access token,
but a custom token can also be provided by using the `TokenAuthenticationOptions` instead.
Additionally, the client takes further options via a `SpaceBlocksClientOptions` as the third parameter.
Documentation for the platform and APIs are available here: https://docs.spaceblocks.cloud/permissions
A simple example can be found here: https://github.com/wemogy/spaceblocks-sample-helloworld/tree/main/python
Raw data
{
"_id": null,
"home_page": "https://spaceblocks.cloud",
"name": "spaceblocks-permissions-server",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "space blocks, permissions, rbac",
"author": "Space Blocks Team",
"author_email": "hello@spaceblocks.cloud",
"download_url": "https://files.pythonhosted.org/packages/39/c8/559973863fe8a66555421de8c203fad346a2dd3e06c6f44f3da4d2c8612b/spaceblocks_permissions_server-4.0.2.tar.gz",
"platform": null,
"description": "# Space Blocks Permissions Server SDK for Python\n\nThis is the Python server SDK for Space Blocks Permissions.\n\n## Usage\n\nRequired Python version: 3.8 or later.\n\nThe package is published to the official Python Package Index (https://pypi.org/project/spaceblocks-permissions-server).\n\nIt can be installed with:\n\n```bash\npip install spaceblocks-permissions-server\n```\n\nTo get started, import the package and create an instance of the `PermissionsClient`:\n\n```python\nfrom spaceblocks_permissions_server import (\n PermissionsClient,\n ClientAuthenticationOptions\n)\n\nclient = PermissionsClient(\n '<SPACE_BLOCKS_PERMISSIONS_URL>',\n ClientAuthenticationOptions(\n api_key='<YOUR_API_KEY>',\n client_id='<YOUR_CLIENT_ID>',\n client_secret='<YOUR_CLIENT_SECRET>'\n )\n)\n\nclient.permission_api.check_permissions(...)\n```\n\nThe code above uses a client ID and secret to issue an access token,\nbut a custom token can also be provided by using the `TokenAuthenticationOptions` instead.\nAdditionally, the client takes further options via a `SpaceBlocksClientOptions` as the third parameter.\n\nDocumentation for the platform and APIs are available here: https://docs.spaceblocks.cloud/permissions\n\nA simple example can be found here: https://github.com/wemogy/spaceblocks-sample-helloworld/tree/main/python\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Server SDK for Space Blocks Permissions, a permissions-as-a-service platform for developers",
"version": "4.0.2",
"project_urls": {
"Documentation": "https://docs.spaceblocks.cloud/permissions",
"Homepage": "https://spaceblocks.cloud"
},
"split_keywords": [
"space blocks",
" permissions",
" rbac"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4a95266333b6720665939a08763ffe9b8fcb748053997576b9daa9cdb180fcf3",
"md5": "482ce7c280ee012f95676908906a328b",
"sha256": "3ce3bbaa2dc7bce8dfa38b9839ae9fe8fcbff4bc9b21d2cfaf6040f3cb1e35cf"
},
"downloads": -1,
"filename": "spaceblocks_permissions_server-4.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "482ce7c280ee012f95676908906a328b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 61703,
"upload_time": "2025-10-21T21:37:36",
"upload_time_iso_8601": "2025-10-21T21:37:36.039722Z",
"url": "https://files.pythonhosted.org/packages/4a/95/266333b6720665939a08763ffe9b8fcb748053997576b9daa9cdb180fcf3/spaceblocks_permissions_server-4.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "39c8559973863fe8a66555421de8c203fad346a2dd3e06c6f44f3da4d2c8612b",
"md5": "69b8e9ac49b1b419b7a9e81538757b81",
"sha256": "37adbc69ba347e33ac57dd08a08037ba2819d9526b7232cb9a7cb084f55cf2f4"
},
"downloads": -1,
"filename": "spaceblocks_permissions_server-4.0.2.tar.gz",
"has_sig": false,
"md5_digest": "69b8e9ac49b1b419b7a9e81538757b81",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 31063,
"upload_time": "2025-10-21T21:37:37",
"upload_time_iso_8601": "2025-10-21T21:37:37.399513Z",
"url": "https://files.pythonhosted.org/packages/39/c8/559973863fe8a66555421de8c203fad346a2dd3e06c6f44f3da4d2c8612b/spaceblocks_permissions_server-4.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-21 21:37:37",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "spaceblocks-permissions-server"
}