Skip to main content

aiobsidian

CI PyPI Python License Docs

Async Python client for Obsidian. CLI-first: works out of the box with the Obsidian CLI (v1.12+). Optional REST support via the Local REST API plugin.


Installation

pip install aiobsidian

For REST API support (requires httpx):

pip install aiobsidian[rest]

Quick start

CLI (primary)

import asyncio
from aiobsidian import ObsidianCLI

async def main():
    async with ObsidianCLI("MyVault") as cli:
        # Read a note
        content = await cli.vault.read("notes/hello.md")
        print(content)

        # Search the vault
        results = await cli.search.query("python")

        # List tags
        tags = await cli.tags.list()

        # Daily note
        await cli.daily.append("- [ ] New task")

asyncio.run(main())

REST (optional)

import asyncio
from aiobsidian import ObsidianClient

async def main():
    async with ObsidianClient("your-api-key") as client:
        status = await client.system.status()
        print(status.versions.obsidian)

        content = await client.vault.get("notes/hello.md")
        print(content)

asyncio.run(main())

Features

CLI resources

Resource Access Description
vault cli.vault Read, create, append, prepend, move, rename, delete, list
daily cli.daily Daily note operations
search cli.search Full-text search
properties cli.properties YAML frontmatter properties
tags cli.tags Tag listing, lookup, rename
links cli.links Outgoing links, backlinks, unresolved, orphans
tasks cli.tasks Task listing, creation, completion

REST resources

Resource Access Description
vault client.vault CRUD operations on any file
active client.active Operations on the currently open file
periodic client.periodic Daily, weekly, monthly, quarterly, yearly notes
commands client.commands List and execute Obsidian commands
search client.search Simple text search, Dataview DQL, JsonLogic
open client.open Open files in Obsidian UI
system client.system Server status, OpenAPI spec

General

  • Full async/await support
  • Pydantic v2 models for type-safe responses
  • Custom exception hierarchy for both CLI and REST errors
  • Context manager lifecycle management
  • No external dependencies for CLI (only stdlib)

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

Built distribution (wheel)

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

Total release size: 85.1 kB

Release files / aiobsidian-0.3.0.tar.gz

Download URL aiobsidian-0.3.0.tar.gz
Size 48.3 kB
Tags Source
SHA-256 checksum
How to use checksums
088438fbc7c7efcc55f01b4952112397607faa1ef3ff30339d2f499852b577fa
BLAKE2b-256 checksum
How to use checksums
2b8ce0fa1eea4791eb5dd15d88a57b292da96e497649f194e02b1215db603bfc
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 22, 2026.

Transparency log

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

Download URL aiobsidian-0.3.0-py3-none-any.whl
Size 36.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75e9d0a978a179fc12fdd13160dc33f3048883b98ac0fb8835be7873e1f120c9
BLAKE2b-256 checksum
How to use checksums
b0bfc591fbd6e648b8d7b7b8d7aaef0f915892d408aef5611b0b8946a4ddf550
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 22, 2026.

Transparency log

Security for aiobsidian 0.3.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.3.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 22, 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