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

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

Built distribution (wheel)

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

Total release size: 46.9 kB

Release files / aiobsidian-0.1.3.tar.gz

Download URL aiobsidian-0.1.3.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
12f7012836cd36445aa52f573680e4f72e67af298f67dfd0e4ac9f4ee5d9bdf5
BLAKE2b-256 checksum
How to use checksums
36638590dfa2948af6e36874ee03e53d29af28ff94cbb564ba51787e7339e1b5
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.3-py3-none-any.whl

Download URL aiobsidian-0.1.3-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab73da886c6f2fa800afff93a6352e6d32294234545debe354c336b7236632b5
BLAKE2b-256 checksum
How to use checksums
65cebd616d092a6d041da3ca34cb86e286d6db4e8be19c394480fdb2b1f190d6
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.3

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.

Select from 2 files

Attestation for aiobsidian-0.1.3.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