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

Uploaded Source

Built Distribution

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

llama_index_readers_toggl-0.4.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_toggl-0.4.1.tar.gz
Algorithm Hash digest
SHA256 226ecd3e721397ffd3f300d55ee0d3d145572c069b2e22c289935758dfeb995b
MD5 070e02807af3fe315511640c6cb245be
BLAKE2b-256 8610516a413da98e9e32b7778ff7ce603d6f055206354e8e65859e8bad6ec294

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_toggl-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 696aae01f362d4a52b7a2b8c115a9dab8f133306c9801363d064e670771a1ef2
MD5 5772e7ab1bf815e874bdbe2eddb50c3f
BLAKE2b-256 fe001f7caa5a09dba9662b99082054aec71f21efc5c5b4ca2029162cd52363a6

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