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.0.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.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_toggl-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9c829929e0cf6bb1257f0d9390689fd0046760dd77a3944fd627c2f047605c0c
MD5 c922701e769c454ecbba53187844b88d
BLAKE2b-256 01c4ce27c1738b49aef14fe7d905954ec8393b4daa29421b6b109e0ff4aa2455

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_toggl-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2347046a7d6b3b8a198ab7281ad123e44c9c62687871eb4e46b1fd3476c59b8e
MD5 8215cf4bbad6c5957d5afc9b6a5e9dfa
BLAKE2b-256 09b2a06ba1a51ea36b301c01e064060da382ebeea611400d43124ee18fa5fdd5

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