Name | llama-index-readers-toggl JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | llama-index readers toggl integration |
upload_time | 2024-06-24 15:44:32 |
maintainer | None |
docs_url | None |
author | Your Name |
requires_python | <4.0,>=3.8.1 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Toggl reader
```bash
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:
1. Log in to Toggl
2. [Open profile](https://track.toggl.com/profile)
3. Scroll down and click `-- Click to reveal --` for API token
## Usage
```python
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](https://github.com/run-llama/llama_index/).
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-readers-toggl",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8.1",
"maintainer_email": null,
"keywords": null,
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/c8/57/9eaa199d8c44c05d5f544594182e7d3c34ff9ce07e3442daecc6a9363d7c/llama_index_readers_toggl-0.1.0.tar.gz",
"platform": null,
"description": "# Toggl reader\n\n```bash\npip install llama-index-readers-toggl\n```\n\nThis loader fetches time entries from Toggl workspace and project into `Document`s.\n\nBefore working with Toggl's API, you need to get API token:\n\n1. Log in to Toggl\n2. [Open profile](https://track.toggl.com/profile)\n3. Scroll down and click `-- Click to reveal --` for API token\n\n## Usage\n\n```python\nfrom llama_index.readers.toggl import TogglReader\nfrom llama_index.readers.toggl.dto import TogglOutFormat\nimport datetime\n\nreader = TogglReader(api_token=\"{{YOUR_API_TOKEN}}\")\n\ndocs = reader.load_data(\n workspace_id=\"{{WORKSPACE_ID}}\",\n project_id=\"{{PROJECT_ID}}\",\n start_date=datetime.datetime.now() - datetime.timedelta(days=7),\n out_format=TogglOutFormat.markdown,\n)\n```\n\n## Examples\n\nThis loader is designed to be used as a way to load data into [LlamaIndex](https://github.com/run-llama/llama_index/).\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index readers toggl integration",
"version": "0.1.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "af5e2c6f3a6837d5cda60c58d1d6bfeafe1729ca3571e5bdf0416412cd4cc41d",
"md5": "2fd7f9d4a2a5e86c4b14f08fd54cedac",
"sha256": "be35a0f8f5ad637c1f1b1d874b1619a4ffa25508e6e453a36aa6eccd563d4b64"
},
"downloads": -1,
"filename": "llama_index_readers_toggl-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2fd7f9d4a2a5e86c4b14f08fd54cedac",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8.1",
"size": 3702,
"upload_time": "2024-06-24T15:44:31",
"upload_time_iso_8601": "2024-06-24T15:44:31.316773Z",
"url": "https://files.pythonhosted.org/packages/af/5e/2c6f3a6837d5cda60c58d1d6bfeafe1729ca3571e5bdf0416412cd4cc41d/llama_index_readers_toggl-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c8579eaa199d8c44c05d5f544594182e7d3c34ff9ce07e3442daecc6a9363d7c",
"md5": "b58badb6684f950ab906ad3e00718e03",
"sha256": "de69fd0464fd3bdee23f71814be45a8c75b3f718bc549025126f7de4bb262c25"
},
"downloads": -1,
"filename": "llama_index_readers_toggl-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "b58badb6684f950ab906ad3e00718e03",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8.1",
"size": 3172,
"upload_time": "2024-06-24T15:44:32",
"upload_time_iso_8601": "2024-06-24T15:44:32.850485Z",
"url": "https://files.pythonhosted.org/packages/c8/57/9eaa199d8c44c05d5f544594182e7d3c34ff9ce07e3442daecc6a9363d7c/llama_index_readers_toggl-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-24 15:44:32",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-readers-toggl"
}