Skip to main content

Holder for Python

Holder is an open-source, local-first knowledge app for organising your ideas and digital information as index cards and the connections between them.

Use Python to read and update the projects and cards in your running Holder installation. Changes you make in a script appear in Holder too.

Get started

  1. You need the Holder application on your computer. Get it from https://www.holder.team/

  2. You need Python 3.11 or newer. If in doubt, get the latest version (i.e. 3.15) from: https://www.python.org/downloads/

  3. Install the Holder Python library with:

python3 -m pip install holder-python

Save this as list_cards.py and run it with python3 list_cards.py:

from holder import Holder

with Holder() as holder:
    for project in holder.projects:
        print(project.name)
        for card in project.cards:
            print("  ", card.title)

Holder() finds or starts your local Holder daemon using holderctl. The with block closes the Python connection when the script ends; it does not stop Holder.

Create and edit cards

This example creates a project and two cards. Run it once: each run creates another project named Research.

from holder import Holder

with Holder() as holder:
    project = holder.projects.create(name="Research")
    card = project.cards.create(title="An idea", content="My notes")
    child = card.children.create(title="Next step")
    child.update(content="Try it out")
    card.tags.add("research")

To work with an existing project, find it by name and get a card by its ID:

from holder import Holder

with Holder() as holder:
    matches = holder.projects.filter(name="Research")
    project = matches[0]
    for card in project.cards:
        print(card.id, card.title)

    # Replace this with an ID printed above.
    card = project.cards.get("card-id-here")
    card.update(title="A better title")

The name filter matches part of a name. If there are no matches, [0] raises IndexError. Card content is available as card.content; use card.update(...) to save edits. Card attributes cannot be assigned directly.

Find cards

Search within a project and inspect the matching text:

from holder import Holder

with Holder() as holder:
    project = holder.projects.filter(name="Research")[0]
    for result in project.cards.search("research notes"):
        print(result.title, result.snippet)

You can also list cards with a tag using project.cards.filter(tag="research"), or list just top-level cards with project.cards.roots(). For the latest changes, use project.cards.recent(limit=20). Roots and card.children follow sibling order. Use .with_child_counts() on a card collection for counts and .with_content() to fetch card bodies in listing pages. card.breadcrumbs gives its current project-to-card path. Project listings support .alphabetical(), .recent(), and .with_card_counts(). Use project.cards.resolve("Roadmap") to open a live card by exact title or unambiguous ID prefix; project.cards.lookup(...) also reports ambiguous and Trash matches. See reference lookup.

More help

  • More scripting tasks: links, milestones, project-wide milestone date searches, moves, Trash, resources, attachments, file imports, downloads, storage locations, tags, project Git sync, remote checks, recovery tokens, encryption checks, project removal, live change notifications, project activity, card history, intelligence threads, messages, search, runs, providers, and local models, collection refreshes, and connecting to a specific daemon.
  • Low-level client: direct access to HTTP endpoints.
  • Development: tests, builds, and generated code.
  • Publishing: PyPI setup and release steps.

For offline analysis and bulk work without a running Holder installation, see Holder Kit.

Metadata

Release files for holder-python 0.2.6

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

Source distribution (sdist)

Source distribution for holder-python 0.2.6
File Size Uploaded Provenance Actions
holder_python-0.2.6.tar.gz 207.0 kB With provenance Details for holder_python-0.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for holder-python 0.2.6
File Interpreter ABI Platform Actions
holder_python-0.2.6-py3-none-any.whl Python 3 none any Details for holder_python-0.2.6-py3-none-any.whl

Total release size: 681.0 kB

Release files / holder_python-0.2.6.tar.gz

Download URL holder_python-0.2.6.tar.gz
Size 207.0 kB
Tags Source
SHA-256 checksum
How to use checksums
df3fc8538e2a553c0d28b01c401b65e23cb6e2606163c3bc4f3f5c9ff7e70a22
BLAKE2b-256 checksum
How to use checksums
6bd6ab52a8cc689fc25001e3ef7b5cc2dd92a2ccb3ae9ba5d23c005d6cd05ecf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / holder_python-0.2.6-py3-none-any.whl

Download URL holder_python-0.2.6-py3-none-any.whl
Size 474.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0898cbb3fad608c35bb21597bbc980d0c7c2486823354adb2f5f3c752ae152ae
BLAKE2b-256 checksum
How to use checksums
191538f1ae0ee605a43744773a51661883cdbecbc9ef4ca1f693bdb12235b463
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Security for holder-python 0.2.6

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 holder_python-0.2.6.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 Nov 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