| Name | acontext-py JSON |
| Version |
0.0.1.dev1
JSON |
| download |
| home_page | None |
| Summary | Python SDK for the Acontext API |
| upload_time | 2025-10-15 18:42:32 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.11 |
| license | None |
| keywords |
acontext
sdk
client
api
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
## acontext client for python
Python SDK for interacting with the Acontext REST API.
### Installation
```bash
pip install acontext-py
```
### Quickstart
```python
from acontext import AcontextClient, MessagePart
with AcontextClient(api_key="sk_project_token") as client:
# List spaces for the authenticated project
spaces = client.spaces.list()
# Create a session bound to the first space
session = client.sessions.create(space_id=spaces[0]["id"])
# Send a text message to the session
client.sessions.send_message(
session["id"],
role="user",
parts=[MessagePart.text_part("Hello from Python!")],
)
```
See the inline docstrings for the full list of helpers covering sessions, spaces, artifacts and file uploads.
### Working with pages and blocks
```python
from acontext import AcontextClient
client = AcontextClient(api_key="sk_project_token")
space = client.spaces.create()
try:
page = client.pages.create(space["id"], title="Kick-off Notes")
client.blocks.create(
space["id"],
parent_id=page["id"],
block_type="text",
title="First block",
props={"text": "Plan the sprint goals"},
)
finally:
client.close()
```
Raw data
{
"_id": null,
"home_page": null,
"name": "acontext-py",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "acontext, sdk, client, api",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/9c/8b/329ed1059384469b6601bce78624b239664ba5976a8f601a8fbfa6badd29/acontext_py-0.0.1.dev1.tar.gz",
"platform": null,
"description": "## acontext client for python\n\nPython SDK for interacting with the Acontext REST API.\n\n### Installation\n\n```bash\npip install acontext-py\n```\n\n### Quickstart\n\n```python\nfrom acontext import AcontextClient, MessagePart\n\nwith AcontextClient(api_key=\"sk_project_token\") as client:\n # List spaces for the authenticated project\n spaces = client.spaces.list()\n\n # Create a session bound to the first space\n session = client.sessions.create(space_id=spaces[0][\"id\"])\n\n # Send a text message to the session\n client.sessions.send_message(\n session[\"id\"],\n role=\"user\",\n parts=[MessagePart.text_part(\"Hello from Python!\")],\n )\n```\n\nSee the inline docstrings for the full list of helpers covering sessions, spaces, artifacts and file uploads.\n\n### Working with pages and blocks\n\n```python\nfrom acontext import AcontextClient\n\nclient = AcontextClient(api_key=\"sk_project_token\")\n\nspace = client.spaces.create()\ntry:\n page = client.pages.create(space[\"id\"], title=\"Kick-off Notes\")\n client.blocks.create(\n space[\"id\"],\n parent_id=page[\"id\"],\n block_type=\"text\",\n title=\"First block\",\n props={\"text\": \"Plan the sprint goals\"},\n )\nfinally:\n client.close()\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Python SDK for the Acontext API",
"version": "0.0.1.dev1",
"project_urls": {
"Homepage": "https://github.com/memodb-io/Acontext",
"Issues": "https://github.com/memodb-io/Acontext/issues",
"Repository": "https://github.com/memodb-io/Acontext"
},
"split_keywords": [
"acontext",
" sdk",
" client",
" api"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "5e0bcb652976ec8b222fef9f5cf029ebc2fe7cfd87e23670580e8c930227dde0",
"md5": "fe11ba850fd9920598f7beddbf305fc4",
"sha256": "165393db3c6c00ab4c877007a7c669f3b4dab33b6f13c39481ee7b893e45bdf8"
},
"downloads": -1,
"filename": "acontext_py-0.0.1.dev1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fe11ba850fd9920598f7beddbf305fc4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 12815,
"upload_time": "2025-10-15T18:42:31",
"upload_time_iso_8601": "2025-10-15T18:42:31.216652Z",
"url": "https://files.pythonhosted.org/packages/5e/0b/cb652976ec8b222fef9f5cf029ebc2fe7cfd87e23670580e8c930227dde0/acontext_py-0.0.1.dev1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "9c8b329ed1059384469b6601bce78624b239664ba5976a8f601a8fbfa6badd29",
"md5": "9b3d3006c461ec84b83ebce2a7dd933a",
"sha256": "8668b9067321b34c0a933f6975058ea4d23d5da634073add48a893419f429bcc"
},
"downloads": -1,
"filename": "acontext_py-0.0.1.dev1.tar.gz",
"has_sig": false,
"md5_digest": "9b3d3006c461ec84b83ebce2a7dd933a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 6953,
"upload_time": "2025-10-15T18:42:32",
"upload_time_iso_8601": "2025-10-15T18:42:32.016429Z",
"url": "https://files.pythonhosted.org/packages/9c/8b/329ed1059384469b6601bce78624b239664ba5976a8f601a8fbfa6badd29/acontext_py-0.0.1.dev1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-15 18:42:32",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "memodb-io",
"github_project": "Acontext",
"github_not_found": true,
"lcname": "acontext-py"
}