gitlab_registry_async_cleaner


Namegitlab_registry_async_cleaner JSON
Version 1.0.6 PyPI version JSON
download
home_pageNone
SummaryGitlab registry async cleaner
upload_time2024-08-27 19:43:57
maintainerNone
docs_urlNone
authorAndrey Trusikhin
requires_python<4.0,>=3.10
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # gitlab_registry_cleaner

A project can remove tags from the gitlab registry by configuration file.

Supported time:
1. **days**
2. **hours**
3. **minutes**

Environments:
1. GITLAB_TOKEN - personal gitlab token. Override from CLI **-t** or **--token**.
2. GITLAB_URL - general gitlab domain, https://gitlab.com for example. Override from CLI **--url**.
3. REPOSITORY_CONFIG_PATH - path to json config file. Override from CLI **-c** or **--config**.
4. SSL_PATH - path to SSL certificate. Override from CLI **--ssl_path**.
5. TIMEOUT - timeout to all HTTP requests. Override from CLI **--timeout**.

Also, you can set **--dry-run** flag from CLI. In this mode found tags not be deleted.

# Install
```bash
pip install gitlab_registry_async_cleaner
```

# Usage
```bash
gitlab_async_cleaner
```
You can create an .env file in your startup directory or set environment 
variables any way you like. The CLI takes precedence and arguments passed
through the CLI will change the environment variables.

JSON config example
```json
{
  "gitlab_project_1":
  {
    "id": 1,
    "delete_older_than": {
      "days": 2
    }
  },
  "gitlab_project_2":
  {
    "id": 2,
    "delete_older_than": {
      "hours": 5
    }
  },
  "gitlab_project_3":
  {
    "id": 3,
    "delete_older_than": {
      "minutes": 60
    }
  }
}
```
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gitlab_registry_async_cleaner",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "Andrey Trusikhin",
    "author_email": "a.trusikhin@yandex.ru",
    "download_url": "https://files.pythonhosted.org/packages/c0/2e/ff2c75ac46da03a12225b8d8661dac2fd76679ea013d35efe9088c3a72c4/gitlab_registry_async_cleaner-1.0.6.tar.gz",
    "platform": null,
    "description": "# gitlab_registry_cleaner\n\nA project can remove tags from the gitlab registry by configuration file.\n\nSupported time:\n1. **days**\n2. **hours**\n3. **minutes**\n\nEnvironments:\n1. GITLAB_TOKEN - personal gitlab token. Override from CLI **-t** or **--token**.\n2. GITLAB_URL - general gitlab domain, https://gitlab.com for example. Override from CLI **--url**.\n3. REPOSITORY_CONFIG_PATH - path to json config file. Override from CLI **-c** or **--config**.\n4. SSL_PATH - path to SSL certificate. Override from CLI **--ssl_path**.\n5. TIMEOUT - timeout to all HTTP requests. Override from CLI **--timeout**.\n\nAlso, you can set **--dry-run** flag from CLI. In this mode found tags not be deleted.\n\n# Install\n```bash\npip install gitlab_registry_async_cleaner\n```\n\n# Usage\n```bash\ngitlab_async_cleaner\n```\nYou can create an .env file in your startup directory or set environment \nvariables any way you like. The CLI takes precedence and arguments passed\nthrough the CLI will change the environment variables.\n\nJSON config example\n```json\n{\n  \"gitlab_project_1\":\n  {\n    \"id\": 1,\n    \"delete_older_than\": {\n      \"days\": 2\n    }\n  },\n  \"gitlab_project_2\":\n  {\n    \"id\": 2,\n    \"delete_older_than\": {\n      \"hours\": 5\n    }\n  },\n  \"gitlab_project_3\":\n  {\n    \"id\": 3,\n    \"delete_older_than\": {\n      \"minutes\": 60\n    }\n  }\n}\n```",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Gitlab registry async cleaner",
    "version": "1.0.6",
    "project_urls": {
        "Documentation": "https://github.com/Onder7994/gitlab_async_registry_cleaner#readme",
        "Homepage": "https://github.com/Onder7994/gitlab_async_registry_cleaner",
        "Repository": "https://github.com/Onder7994/gitlab_async_registry_cleaner"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b385b877969ec9872fc1279c54199ae5d2580003bf4b2bb9d894b1843fc77e32",
                "md5": "29d7319e76c952088ba8d51f5d52e411",
                "sha256": "aff94f09517c93784b04c115201c1662949663172d2b7d9bd57c898f4d8b21e9"
            },
            "downloads": -1,
            "filename": "gitlab_registry_async_cleaner-1.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "29d7319e76c952088ba8d51f5d52e411",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 10354,
            "upload_time": "2024-08-27T19:43:55",
            "upload_time_iso_8601": "2024-08-27T19:43:55.970968Z",
            "url": "https://files.pythonhosted.org/packages/b3/85/b877969ec9872fc1279c54199ae5d2580003bf4b2bb9d894b1843fc77e32/gitlab_registry_async_cleaner-1.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c02eff2c75ac46da03a12225b8d8661dac2fd76679ea013d35efe9088c3a72c4",
                "md5": "c9db9a451ea09dd9b237f6453a46f8d0",
                "sha256": "906086a04e0faa4e4e8e316218a61d173f9b06fc3504b26e1c69c6b447c3670f"
            },
            "downloads": -1,
            "filename": "gitlab_registry_async_cleaner-1.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "c9db9a451ea09dd9b237f6453a46f8d0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 13528,
            "upload_time": "2024-08-27T19:43:57",
            "upload_time_iso_8601": "2024-08-27T19:43:57.813749Z",
            "url": "https://files.pythonhosted.org/packages/c0/2e/ff2c75ac46da03a12225b8d8661dac2fd76679ea013d35efe9088c3a72c4/gitlab_registry_async_cleaner-1.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-27 19:43:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Onder7994",
    "github_project": "gitlab_async_registry_cleaner#readme",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "gitlab_registry_async_cleaner"
}
        
Elapsed time: 0.30059s