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

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.1.2
File Size Uploaded Provenance Actions
aiobsidian-0.1.2.tar.gz 28.8 kB With provenance Details for aiobsidian-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 46.9 kB

Release files / aiobsidian-0.1.2.tar.gz

Download URL aiobsidian-0.1.2.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4a2b5bc543feef55b587a60aa8eeadd3f3fc315e6f158253d1a49f4766fcf2a4
BLAKE2b-256 checksum
How to use checksums
9b1cc1d12d317871bd2b7d05f47953dfb6e83baf64c1cd8e2f9b5e44404fe918
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 17, 2026.

Transparency log

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

Download URL aiobsidian-0.1.2-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed507ecd8def9735c3ee75f7046fa110d162278ee18dae4f96f19a94744095d9
BLAKE2b-256 checksum
How to use checksums
d56dbaefcfe8718b4afedaa86dd9ed0b3b25d6b8048df4544adf3df8350351e7
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 17, 2026.

Transparency log

Security for aiobsidian 0.1.2

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.1.2.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 17, 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