Skip to main content

aiobsidian

CI PyPI Python License Docs

Async Python client for the Obsidian Local REST API plugin.


Installation

pip install aiobsidian

Or with uv:

uv add aiobsidian

Quick start

import asyncio
from aiobsidian import ObsidianClient

async def main():
    async with ObsidianClient("your-api-key") as client:
        # 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
        await client.commands.execute("daily-notes")

asyncio.run(main())

Features

  • Full async/await support via httpx

  • Complete API coverage — all Obsidian Local REST API endpoints:

    Resource Description
    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 type-safe responses

  • Custom exception hierarchy with error codes

  • Bring-your-own httpx.AsyncClient support

  • Context manager lifecycle management

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)
)

External HTTP client

You can provide your own httpx.AsyncClient for full control over transport settings:

import httpx
from aiobsidian import ObsidianClient

async with httpx.AsyncClient(timeout=60.0, verify=False) as http:
    async with ObsidianClient("your-api-key", http_client=http) as client:
        status = await client.system.status()

When an external client is provided, aiobsidian will not close it — you manage its lifecycle.

Documentation

Full documentation is available at kudato.github.io/aiobsidian.

Contributing

Contributions are welcome! Please see the Contributing Guide for details.

License

MIT

Metadata

Release files for aiobsidian 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiobsidian 0.2.0
File Size Uploaded Provenance Actions
aiobsidian-0.2.0.tar.gz 29.4 kB With provenance Details for aiobsidian-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiobsidian 0.2.0
File Interpreter ABI Platform Actions
aiobsidian-0.2.0-py3-none-any.whl Python 3 none any Details for aiobsidian-0.2.0-py3-none-any.whl

Total release size: 47.7 kB

Release files / aiobsidian-0.2.0.tar.gz

Download URL aiobsidian-0.2.0.tar.gz
Size 29.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fea0d19ff29277c3742db87196af08af3fd2daad8be374a3502e68a96e3a95b7
BLAKE2b-256 checksum
How to use checksums
2bcee2ce5c0d1625a629dd2938fec0dde1f3d45ffb7d60a018af63b61c7cca91
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 Mar 9, 2026.

Transparency log

Release files / aiobsidian-0.2.0-py3-none-any.whl

Download URL aiobsidian-0.2.0-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a31d3486a24b3187b3c3046c5a9deabec9006128ee52d6906d856e497e4fb8e
BLAKE2b-256 checksum
How to use checksums
34060cf4993acdc54dc88bdd56c1b1d2fe41a0e3f7c071f3bc9ba3dafbf25cf7
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 Mar 9, 2026.

Transparency log

Security for aiobsidian 0.2.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aiobsidian-0.2.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 Mar 9, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page