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.2.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: llama_index_readers_toggl-0.2.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0

File hashes

Hashes for llama_index_readers_toggl-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e0c1a8185548e2d49fe3b13c4cbfa5224f4f88be6fee2d315f9cb36ed3ebcbd8
MD5 f7c81eeccf536e7c08ae49d6de80958a
BLAKE2b-256 9cd938c9b2ce3725a8e2375211780d8d8d7504e855bfe7d5a6294b01f8f6f174

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_toggl-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf65ef7db20302d230489b2352fc699a5a3dc364845038bb44a80cae640427bb
MD5 72fd32f6dc99a5cb95691aab923aca45
BLAKE2b-256 0dd2d6d47df46293d930850024c1cb045a0d9e6b6be95c12fa81ea8e9af6d778

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