aiobsidian
Async Python client for Obsidian Local REST API plugin.
Installation
pip install aiobsidian
Quick start
import asyncio
from aiobsidian import ObsidianClient
async def main():
async with ObsidianClient("your-api-key") as client:
# Get server status
status = await client.system.status()
print(status.versions.obsidian)
# Read a note
content = await client.vault.get("notes/hello.md")
print(content)
# Create a note
await client.vault.update("notes/new.md", "# New Note\n\nContent here.")
# Search
results = await client.search.simple("hello")
for r in results:
print(r.filename, r.score)
# Execute a command
commands = await client.commands.list()
await client.commands.execute("daily-notes")
asyncio.run(main())
Features
- Full async/await support via
httpx - All Obsidian Local REST API endpoints covered:
- Vault — CRUD operations on any file
- Active — operations on the currently open file
- Periodic — daily, weekly, monthly, quarterly, yearly notes
- Commands — list and execute Obsidian commands
- Search — simple text search, Dataview DQL, JsonLogic
- Open — open files in Obsidian UI
- System — server status, OpenAPI spec
- Pydantic v2 models for all responses
- Custom exception hierarchy with error codes
- Context manager lifecycle management
- Bring-your-own
httpx.AsyncClientsupport
Configuration
client = ObsidianClient(
"your-api-key",
host="127.0.0.1", # default
port=27124, # default (HTTPS)
scheme="https", # default
timeout=30.0, # default
verify_ssl=False, # default (self-signed cert)
)
Contributing
For contributors
-
Fork this repository
-
Clone your fork and create a branch:
git clone https://github.com/YOUR_USERNAME/aiobsidian.git cd aiobsidian git checkout -b feature/your-feature
-
Make changes and commit using Conventional Commits:
feat: add new feature fix: fix bug in vault resource docs: update README refactor: extract helper method test: add search tests chore: update dependencies -
Push to your fork and open a Pull Request:
git push origin feature/your-feature gh pr create # or use GitHub UI
For maintainers
# Update version in pyproject.toml
sed -i '' 's/version = ".*/version = "X.Y.Z"/' pyproject.toml
git add pyproject.toml
git commit -m "chore: release vX.Y.Z"
git tag vX.Y.Z
git push origin main --tags
CI will automatically create a GitHub Release and publish to PyPI.
License
MIT
Metadata
Release files for aiobsidian 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiobsidian-0.1.0.tar.gz | 25.8 kB | With provenance | Details for aiobsidian-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiobsidian-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aiobsidian-0.1.0-py3-none-any.whl |
Total release size: 43.5 kB
Release files / aiobsidian-0.1.0.tar.gz
| Download URL | aiobsidian-0.1.0.tar.gz |
|---|---|
| Size | 25.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5b32793cfbcfef57d0c953613d8c85e1b93c3f50469caa5ac15190047ad1335
|
|
BLAKE2b-256 checksum How to use checksums |
675e8c08c94ad6005ec61cb5a16b6ed4a31557c18190eeadd40ca97bcd72d465
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 15, 2026.
Transparency logRelease files / aiobsidian-0.1.0-py3-none-any.whl
| Download URL | aiobsidian-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c315564dd7063324b7dbc30b6db6164dde0ee8439019dc9b51befe07a9c47d1
|
|
BLAKE2b-256 checksum How to use checksums |
29add057c566749d9432ad902a0d3866c4438ac21475e08a1f3ddbca8704dc49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 15, 2026.
Transparency logSecurity for aiobsidian 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for aiobsidian-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.