{"id":15722208,"url":"https://github.com/ryancheley/toggl-to-sqlite","last_synced_at":"2025-04-15T01:05:53.612Z","repository":{"id":38330965,"uuid":"345215500","full_name":"ryancheley/toggl-to-sqlite","owner":"ryancheley","description":"Create a SQLite database containing data from your Toggl account.","archived":false,"fork":false,"pushed_at":"2025-04-07T21:22:27.000Z","size":98,"stargazers_count":9,"open_issues_count":7,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T01:05:42.283Z","etag":null,"topics":["datasette","oss","python","sqlite","toggl"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryancheley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-06T23:15:37.000Z","updated_at":"2025-03-03T20:16:29.000Z","dependencies_parsed_at":"2024-01-06T19:27:18.736Z","dependency_job_id":"9f780ec9-015c-4125-98fb-8f34c743b512","html_url":"https://github.com/ryancheley/toggl-to-sqlite","commit_stats":{"total_commits":102,"total_committers":5,"mean_commits":20.4,"dds":0.2941176470588235,"last_synced_commit":"7f9fa80aad10e010bb4a1e1fb26d6f1a66646cf0"},"previous_names":["ryancheley/toggle-to-sqlite"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancheley%2Ftoggl-to-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancheley%2Ftoggl-to-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancheley%2Ftoggl-to-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancheley%2Ftoggl-to-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryancheley","download_url":"https://codeload.github.com/ryancheley/toggl-to-sqlite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986312,"owners_count":21194025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datasette","oss","python","sqlite","toggl"],"created_at":"2024-10-03T22:05:15.134Z","updated_at":"2025-04-15T01:05:53.594Z","avatar_url":"https://github.com/ryancheley.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# toggl-to-sqlite\n\n[![PyPI](https://img.shields.io/pypi/v/toggl-to-sqlite.svg)](https://pypi.org/project/toggl-to-sqlite/)\n[![GitHub changelog](https://img.shields.io/github/v/release/ryancheley/toggl-to-sqlite?include_prereleases\u0026label=changelog)](https://github.com/ryancheley/toggl-to-sqlite/releases)\n[![Tests](https://github.com/ryancheley/toggl-to-sqlite/workflows/Test/badge.svg)](https://github.com/ryancheley/toggl-to-sqlite/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/ryancheley/toggl-to-sqlite/blob/main/LICENSE)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/ryancheley/toggl-to-sqlite/main.svg)](https://results.pre-commit.ci/latest/github/ryancheley/toggl-to-sqlite/main)\n\n\n\nCreate a SQLite database containing data from your [Toggl](https://toggl.com/) account.\n\n## How to install\n\n    $ pip install toggl-to-sqlite\n\n## Usage\n\nYou will need to first obtain a valid API token for your toggl account. You can do this by running the `auth` command and following the prompts:\n\n    $ toggl-to-sqlite auth\n    You will need to get your API Token from this page\n\n    https://track.toggl.com/profile\n\n    Once you have your API Token enter it at the command line.\n\n    Authentication tokens written to auth.json\n\nNow you can fetch all of your items from toggl like this:\n\n    $ toggl-to-sqlite fetch toggl.db\n\n**NB!** By default `toggl-to-sqlite` only fetches data from the 25 previous days. As an alternative you can specify to get time_entries since a specific date. You do this by specifying the `since` option:\n\n    $ toggl-to-sqlite fetch -s 2021-03-13\n\nYou can choose to get only `time_entries`, `projects`, or `workspaces` by speciying a type in the argument like this.\n\nTo get ONLY your workspaces:\n\n    $ toggl-to-sqlite fetch -t workspaces toggl.db\n\nTo get your workspaces and projects:\n\n    $ toggl-to-sqlite fetch -t workspaces -t projects toggl.db\n\nThe default is to get all three of `time_entries`, `projects`, and `workspaces`\n\n## toggl-to-sqlite --help\n\n\u003c!-- [[[cog\nimport cog\nfrom toggl_to_sqlite import cli\nfrom click.testing import CliRunner\nrunner = CliRunner()\nresult = runner.invoke(cli.cli, [\"--help\"])\nhelp = result.output.replace(\"Usage: cli\", \"Usage: toggl-to-sqlite\")\ncog.out(\n    \"```\\n{}\\n```\".format(help)\n)\n]]] --\u003e\n```\nUsage: toggl-to-sqlite [OPTIONS] COMMAND [ARGS]...\n\n  Save Toggl data to a SQLite database\n\nOptions:\n  --version  Show the version and exit.\n  --help     Show this message and exit.\n\nCommands:\n  auth   Save authentication credentials to a JSON file\n  fetch  Save Toggl data to a SQLite database\n\n```\n\u003c!-- [[[end]]] --\u003e\n\n## Using with Datasette\n\nThe SQLite database produced by this tool is designed to be browsed using [Datasette](https://datasette.readthedocs.io/). Use the [datasette-render-timestamps](https://github.com/simonw/datasette-render-timestamps) plugin to improve the display of the timestamp values.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryancheley%2Ftoggl-to-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryancheley%2Ftoggl-to-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryancheley%2Ftoggl-to-sqlite/lists"}