Skip to main content

llama-index readers toggl integration

Project description

Toggl reader

pip install llama-index-readers-toggl

This loader fetches time entries from Toggl workspace and project into Documents.

Before working with Toggl's API, you need to get API token:

  1. Log in to Toggl
  2. Open profile
  3. Scroll down and click -- Click to reveal -- for API token

Usage

from llama_index.readers.toggl import TogglReader
from llama_index.readers.toggl.dto import TogglOutFormat
import datetime

reader = TogglReader(api_token="{{YOUR_API_TOKEN}}")

docs = reader.load_data(
    workspace_id="{{WORKSPACE_ID}}",
    project_id="{{PROJECT_ID}}",
    start_date=datetime.datetime.now() - datetime.timedelta(days=7),
    out_format=TogglOutFormat.markdown,
)

Examples

This loader is designed to be used as a way to load data into LlamaIndex.

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

llama_index_readers_toggl-0.3.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_readers_toggl-0.3.0.tar.gz.

File metadata

  • Download URL: llama_index_readers_toggl-0.3.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0

File hashes

Hashes for llama_index_readers_toggl-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f7115b58cad5aa42f47da2e2e7ed1751e16b403ce89c0fadb4d029a569c71f26
MD5 72430514ebd2aee53c7d3a55fdb06551
BLAKE2b-256 691f4fc61536164266d48a89d5765563f053c4da320e0634f5496c1a2b1471b8

See more details on using hashes here.

File details

Details for the file llama_index_readers_toggl-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_toggl-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c6419f653481c1acc4dff6b51dff0d933c262581a2b0d075b4925860859eb05
MD5 11461974279c06a4ff99484e8d28f23b
BLAKE2b-256 b2fe1a2f1a37ef99ff21f07869ae8e28a6ea8df6dd7ed226b7b8ce5fbf9a9a5a

See more details on using hashes here.

Supported by

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