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 Document
s.
Before working with Toggl's API, you need to get API token:
- Log in to Toggl
- Open profile
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7115b58cad5aa42f47da2e2e7ed1751e16b403ce89c0fadb4d029a569c71f26 |
|
MD5 | 72430514ebd2aee53c7d3a55fdb06551 |
|
BLAKE2b-256 | 691f4fc61536164266d48a89d5765563f053c4da320e0634f5496c1a2b1471b8 |
File details
Details for the file llama_index_readers_toggl-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_toggl-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c6419f653481c1acc4dff6b51dff0d933c262581a2b0d075b4925860859eb05 |
|
MD5 | 11461974279c06a4ff99484e8d28f23b |
|
BLAKE2b-256 | b2fe1a2f1a37ef99ff21f07869ae8e28a6ea8df6dd7ed226b7b8ce5fbf9a9a5a |