{"id":15722113,"url":"https://github.com/squiddy/gitlab-to-sqlite","last_synced_at":"2025-05-13T03:09:52.554Z","repository":{"id":142143923,"uuid":"518549483","full_name":"squiddy/gitlab-to-sqlite","owner":"squiddy","description":"Save data from GitLab to a SQLite database.","archived":false,"fork":false,"pushed_at":"2024-06-21T10:52:39.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T03:09:37.458Z","etag":null,"topics":["datasette","datasette-tool","gitlab","sqlite"],"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/squiddy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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":"2022-07-27T17:18:46.000Z","updated_at":"2024-06-21T10:52:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c151c19-83a6-4c68-94b6-b7ce1575f60d","html_url":"https://github.com/squiddy/gitlab-to-sqlite","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"f91cbcd9e41f61f23c73e4bb883b3c027359730f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squiddy%2Fgitlab-to-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squiddy%2Fgitlab-to-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squiddy%2Fgitlab-to-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squiddy%2Fgitlab-to-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squiddy","download_url":"https://codeload.github.com/squiddy/gitlab-to-sqlite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253863157,"owners_count":21975595,"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","datasette-tool","gitlab","sqlite"],"created_at":"2024-10-03T22:04:01.762Z","updated_at":"2025-05-13T03:09:52.475Z","avatar_url":"https://github.com/squiddy.png","language":"Python","readme":"# gitlab-to-sqlite\n\n[![PyPI](https://img.shields.io/pypi/v/gitlab-to-sqlite.svg)](https://pypi.org/project/gitlab-to-sqlite/)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/squiddy/gitlab-to-sqlite/blob/main/LICENSE)\n\nSave data from GitLab to a SQLite database.\n\n## Attribution\n\nThe overall structure and CLI is taken from\nhttps://github.com/dogsheep/github-to-sqlite/.\n\n- [How to install](#how-to-install)\n- [Authentication](#authentication)\n- [Using custom gitlab instance](#using-custom-gitlab-instance)\n- [Fetching projects](#fetching-projects)\n- [Fetching merge requests](#fetching-merge-requests)\n- [Fetching pipelines](#fetching-pipelines)\n- [Fetching environments](#fetching-environments)\n- [Fetching deployments](#fetching-deployments)\n- [Fetching commits](#fetching-commits)\n\n## How to install\n\n    $ pip install gitlab-to-sqlite\n\n## Authentication\n\nCreate a GitLab personal access token: https://gitlab.com/-/profile/personal_access_tokens\n\nRun this command and paste in your new token:\n\n    $ gitlab-to-sqlite auth\n\nThis will create a file called auth.json in your current directory containing\nthe required value. To save the file at a different path or filename, use the\n--auth=myauth.json option.\n\nAs an alternative to using an auth.json file you can add your access token to an\nenvironment variable called GITLAB_TOKEN.\n\n## Using custom gitlab instance\n\nWhen running ``auth`` you may specify an optional ``--host`` parameter pointing\nto a custom instance.\n\n    $ gitlab-to-sqlite auth --host gitlab.internal\n\n## Fetching projects\n\nThe `projects` command retrieves a single project.\n\n    $ gitlab-to-sqlite projects gitlab.db group/project-name\n\n## Fetching merge requests\n\nThe `merge-requests` command retrieves updated or created merge requests.\n\n    $ gitlab-to-sqlite merge-requests gitlab.db group/project-name\n\nThis command can be run regularly. Based on the most recent created or updated\nmerge request it only fetches changes that happened afterwards.\n\n## Fetching pipelines\n\nThe `pipelines` command retrieves updated or created pipelines with their\ncorresponding jobs.\n\n    $ gitlab-to-sqlite pipelines gitlab.db group/project-name\n\nThis command can be run regularly. Based on the most recent created or updated\npipeline it only fetches changes that happened afterwards.\n\n## Fetching environments\n\nThe `environments` command retrieves all environments of a single project.\n\n    $ gitlab-to-sqlite projects gitlab.db group/project-name\n\n## Fetching deployments\n\nThe `deployments` command retrieves all deployments of a specific environment in\na single project.\n\n    $ gitlab-to-sqlite deployments gitlab.db group/project-name environment-name\n\nThis command can be run regularly. Based on the most recent created or updated\ndeployment it only fetches changes that happened afterwards.\n\n## Fetching commits\n\nThe `commits` command retrieves all commits of a single project.\n\n    $ gitlab-to-sqlite commits gitlab.db group/project-name\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquiddy%2Fgitlab-to-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquiddy%2Fgitlab-to-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquiddy%2Fgitlab-to-sqlite/lists"}