Skip to main content

A Luigi Target implementation using ChromaDB.

Project description

luigi-chromadb-target

A Luigi Target implementation using ChromaDB.

Installation

Install the package via pip:

pip install luigi-chromadb-target

Usage

from luigi_chromadb_target import ChromaTarget
import chromadb

# initialize the client (and the collection)
client = chromadb.Client()
client.create_collection(name="documents")

# Use ChromaTarget
target = ChromaTarget(client, "documents", "my-document-id")
with target.open('w') as f:
    f.write('This is some content.')

with target.open('r') as f:
    content = f.read()
    print(content)  # Outputs: This is some content.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

luigi_chromadb_target-1.0.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

luigi_chromadb_target-1.0.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file luigi_chromadb_target-1.0.0.tar.gz.

File metadata

  • Download URL: luigi_chromadb_target-1.0.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for luigi_chromadb_target-1.0.0.tar.gz
Algorithm Hash digest
SHA256 355f5c326f251b9892b41ad437be11189688a2daf574a528bbf4e68a40a12507
MD5 9a089c10aa8c7452f16ab84e540889e3
BLAKE2b-256 0d53d2324a76c54fe88181694d21d6cf802960b20fd24b1d73351b69d6a10f93

See more details on using hashes here.

File details

Details for the file luigi_chromadb_target-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for luigi_chromadb_target-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4a94ddf760e5e3a878a8c98b31f3bf9b950f28d0e9d95292cf7bb036ac5d67e
MD5 450a99b109876d257bcf56edcd67ecfb
BLAKE2b-256 3f351ad5a5a4ae4b100923f128f5f00c21b50cc6317280f3a0d131dc6ed9916b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page