{ "info": { "author": "Ingo Heimbach", "author_email": "i.heimbach@fz-juelich.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Flask", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Version Control :: Git", "Topic :: System :: Systems Administration", "Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP" ], "description": "GitLab-Registry-Usage-REST\n==========================\n\nIntroduction\n------------\n\n*GitLab-Registry-Usage-REST* is a package that periodically collects\nrepository information (names, tags, sizes) of a GitLab registry server\nand offers the data via a secured `RESTful\nHAL `__ api. For the initial\nauthentication a LDAP server is needed. Subsequent queries are secured\nby *JSON Web Tokens* (JWT).\n\nInstallation\n------------\n\nThe latest version can be obtained from PyPI:\n\n.. code:: bash\n\n pip install gitlab-registry-usage-rest\n gitlab-registry-usage-rest --help\n\nor from DockerHub:\n\n.. code:: bash\n\n docker run sciapp/gitlab-registry-usage-rest:latest --help\n\nUsage\n-----\n\n*Gitlab-Registry-Usage-REST* needs a configuration file in order to run.\nThe default path is ``/etc/gitlab_registry_usage_rest.conf`` but can be\naltered with the ``-c`` command line switch. To get started, you can run\n\n.. code:: bash\n\n gitlab-registry-usage-rest --print-default-config\n\nand edit this default configuration to fit your environment.\n\nIf you would like to use the docker repository, you can bind mount a\nlocal configuration file with the ``-v`` switch:\n\n.. code:: bash\n\n docker run -v \"$(pwd)/gitlab_registry_usage_rest.conf:/etc/gitlab_registry_usage_rest.conf\" sciapp/gitlab-registry-usage-rest:latest\n\n**Note**: Docker expects an absolute path for the local configuration\nfile.\n\nThe server offers these api endpoints:\n\n- ``/auth_token``: Accepts a request with basic auth (and valid LDAP\n credentials) and returns an auth token for further api usage. All\n other endpoints only accept requests with a valid ``Bearer``\n authorization header:\n\n .. code:: http\n\n Authorization: Bearer \n\n- ``/repositories``: Lists attributes of the *repositories* collection.\n Currently, only the timestamp of the last data refresh is contained:\n\n .. code:: json\n\n {\n \"timestamp\": 1521796487.7021387\n }\n\n- ``/repositories/``: Queries attributes of a specific\n repository:\n\n .. code:: json\n\n {\n \"name\": \"scientific-it-systems/administration/gitlab-registry-usage-rest\",\n \"size\": 39899199,\n \"disk_size\": 39898911\n }\n\n- ``/repositories//tags``: Endpoint for the collection\n of repository tags, currently without any content.\n\n- ``/repositories//tags/``: Lists attributes\n of a tagged image stored in a repository:\n\n .. code:: json\n\n {\n \"name\": \"latest\",\n \"size\": 39899199,\n \"disk_size\": 39898911\n }\n\nAdditionally, all api endpoints (except ``/auth_token``) offer an\n``_embedded`` and a ``_links`` attribute if requested with the query\nstring:\n\n::\n\n ?embed=true&links=true\n\nInstead of a boolean value, the embed key can also take an integer\nnumber to only request a specific level of embedded resources.\n\nLinks can be used to easily navigate between related resources. Embedded\nresources are convenient to query a complete hierarchy of resources with\none GET request. Accordingly, the request\n\n::\n\n /repositories?embed=true\n\nreturns all resources at once.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sciapp/gitlab-registry-usage-rest", "keywords": "Git,GitLab,Docker,Registry,disk capacity,RESTful", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "gitlab-registry-usage-rest", "package_url": "https://pypi.org/project/gitlab-registry-usage-rest/", "platform": "", "project_url": "https://pypi.org/project/gitlab-registry-usage-rest/", "project_urls": { "Homepage": "https://github.com/sciapp/gitlab-registry-usage-rest" }, "release_url": "https://pypi.org/project/gitlab-registry-usage-rest/0.2.2/", "requires_dist": [ "cheroot", "Flask", "Flask-Cors", "Flask-HTTPAuth", "Flask-JWT-Extended", "Flask-RESTful", "flask-restful-hal", "gitlab-registry-usage (>=0.2.0)", "json2html", "ldap3", "typing" ], "requires_python": "~=3.3", "summary": "A restful web service for querying the repository sizes of a GitLab registry.", "version": "0.2.2" }, "last_serial": 4173145, "releases": { "0.1.11": [ { "comment_text": "", "digests": { "md5": "4009cf3029bd6aa055bb819a286340a7", "sha256": "074b78efc192062308f256d143cf6b55c72017263d7848c86a3eaf5f68bb4b6f" }, "downloads": -1, "filename": "gitlab_registry_usage_rest-0.1.11-py3-none-any.whl", "has_sig": false, "md5_digest": "4009cf3029bd6aa055bb819a286340a7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13057, "upload_time": "2018-03-27T15:48:36", "url": "https://files.pythonhosted.org/packages/ec/00/0bd11c844007b5f87ebed631dcacf9b811457f39bef8a45d7f7e43d4a9cf/gitlab_registry_usage_rest-0.1.11-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e708a490d0484f29eb3fc35c79eee86a", "sha256": "70a8055c7050ca8d2f9e78bf4a100d134db2d3eb2635fd0b7d7e016e0555edcd" }, "downloads": -1, "filename": "gitlab-registry-usage-rest-0.1.11.tar.gz", "has_sig": false, "md5_digest": "e708a490d0484f29eb3fc35c79eee86a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10356, "upload_time": "2018-03-27T15:48:37", "url": "https://files.pythonhosted.org/packages/55/94/2bf644d93f274a05fe975998352d9f8e3fc606e7cd9e9da9a7353bd5f584/gitlab-registry-usage-rest-0.1.11.tar.gz" } ], "0.1.12": [ { "comment_text": "", "digests": { "md5": "db88fc456895608d2f8a79d6d2d02bda", "sha256": "92e046349d9c364b010c2c4c0301bed760393f88e6b7bae3cea9be687fde4fef" }, "downloads": -1, "filename": "gitlab_registry_usage_rest-0.1.12-py3-none-any.whl", "has_sig": false, "md5_digest": "db88fc456895608d2f8a79d6d2d02bda", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13054, "upload_time": "2018-03-28T08:34:01", "url": "https://files.pythonhosted.org/packages/2c/de/dc0f8a43ca52689c3f79f86f38d4a1c00bfc23060b831e55698c47dcad40/gitlab_registry_usage_rest-0.1.12-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "12c960e2fcd858721ecd95e3575d9203", "sha256": "7e53eabc036e689b3516c7ccd918b70e983cb7805901e830dddbadc2017e59a0" }, "downloads": -1, "filename": "gitlab-registry-usage-rest-0.1.12.tar.gz", "has_sig": false, "md5_digest": "12c960e2fcd858721ecd95e3575d9203", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10413, "upload_time": "2018-03-28T08:34:02", "url": "https://files.pythonhosted.org/packages/33/88/230decf771250288064e5f9dbef7b47c93a7830e53673ca476dc0afa40b6/gitlab-registry-usage-rest-0.1.12.tar.gz" } ], "0.1.13": [ { "comment_text": "", "digests": { "md5": "c855b99d20fddb8f464a93234849e9a0", "sha256": "f44e878fc772c91adbcda11c8c1c06f89dac2f53052499bd61ab17df855afa9c" }, "downloads": -1, "filename": "gitlab_registry_usage_rest-0.1.13-py3-none-any.whl", "has_sig": false, "md5_digest": "c855b99d20fddb8f464a93234849e9a0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10554, "upload_time": "2018-04-05T09:51:36", "url": "https://files.pythonhosted.org/packages/e9/30/a2cd180644e38cf634125c20f6f2405a305fe5acfb9766846a21e7889fde/gitlab_registry_usage_rest-0.1.13-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2d494223e77c3e219794a44d9291ccbf", "sha256": "e4ca3fbe958d9d1559f7aae668c094f92e44c7fe6fd4d792f44706d7ffa19744" }, "downloads": -1, "filename": "gitlab-registry-usage-rest-0.1.13.tar.gz", "has_sig": false, "md5_digest": "2d494223e77c3e219794a44d9291ccbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10465, "upload_time": "2018-04-05T09:51:38", "url": "https://files.pythonhosted.org/packages/78/e6/f5a0ee19c7d8004b23fd1abd550f49bea80a9cb8c30f0dd363005113b31f/gitlab-registry-usage-rest-0.1.13.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "cf103a1a9fa169e2999e3177b6378df2", "sha256": "76cc6fae93d5145e6dd197da779560992dab0d707b8f0ece16bb01b249ee5465" }, "downloads": -1, "filename": "gitlab_registry_usage_rest-0.1.7-py3-none-any.whl", "has_sig": false, "md5_digest": "cf103a1a9fa169e2999e3177b6378df2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13042, "upload_time": "2018-03-23T14:47:40", "url": "https://files.pythonhosted.org/packages/0f/95/71be76b53f8c1cbec4996267112d18f2df72d835f447b6b50203d1cf9555/gitlab_registry_usage_rest-0.1.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3ac0c50fc3e8dbc791c2ac193540ea21", "sha256": "614a8c264f7b99698dad26e1fa1c3a966ed24c0cfe3b5e6b5a2aa21f732ba305" }, "downloads": -1, "filename": "gitlab-registry-usage-rest-0.1.7.tar.gz", "has_sig": false, "md5_digest": "3ac0c50fc3e8dbc791c2ac193540ea21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9567, "upload_time": "2018-03-23T14:47:42", "url": "https://files.pythonhosted.org/packages/71/ac/5f461ddc90c00790a9df7edf059547a629bc25a8a8f578087bb4d6867ca5/gitlab-registry-usage-rest-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "b6af00116c19ccb6827bdc1784f210a4", "sha256": "418bac2c8c072142862cac07e9c0b58a37124b97418b00e566716d00e78ff8bc" }, "downloads": -1, "filename": "gitlab_registry_usage_rest-0.1.8-py3-none-any.whl", "has_sig": false, "md5_digest": "b6af00116c19ccb6827bdc1784f210a4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13042, "upload_time": "2018-03-23T15:12:34", "url": "https://files.pythonhosted.org/packages/d3/d0/5d28490a276cfd06f82f4dd29fe1d0e2299f99f2bf73615f827508a83780/gitlab_registry_usage_rest-0.1.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "af79d1ce24b271d82bdaed69e50c7d9a", "sha256": "507820aadfff29e7e29fd8cffaac120ac1f207e25c7150c20bd10c25ed30df8d" }, "downloads": -1, "filename": "gitlab-registry-usage-rest-0.1.8.tar.gz", "has_sig": false, "md5_digest": "af79d1ce24b271d82bdaed69e50c7d9a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9570, "upload_time": "2018-03-23T15:12:35", "url": "https://files.pythonhosted.org/packages/43/52/ecbc826334f91c503d5805b3538810b217bb6910a235ed2fd487b8e0555a/gitlab-registry-usage-rest-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "b45253b1331adbe30bb5508b08ebdc33", "sha256": "35abdb1818cd5458e898ce3de8fe2ea883a4dcae8c7da9252f7f75a676b35ce7" }, "downloads": -1, "filename": "gitlab_registry_usage_rest-0.1.9-py3-none-any.whl", "has_sig": false, "md5_digest": "b45253b1331adbe30bb5508b08ebdc33", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13042, "upload_time": "2018-03-23T15:22:15", "url": "https://files.pythonhosted.org/packages/99/68/83c3ad1b42d01451dd69da61acb79c2410e3946515c5887c44eb69e2662d/gitlab_registry_usage_rest-0.1.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "86fc55ba2016db9679bc2588d8473aa5", "sha256": "b1aaf515ffa9d76fd11b51a0e52188d2692b6ba407490708a2e976faa90b8479" }, "downloads": -1, "filename": "gitlab-registry-usage-rest-0.1.9.tar.gz", "has_sig": false, "md5_digest": "86fc55ba2016db9679bc2588d8473aa5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9576, "upload_time": "2018-03-23T15:22:17", "url": "https://files.pythonhosted.org/packages/43/99/e1115a328d07777af10c54c4c8410296bb7968b202328727895ebae00b02/gitlab-registry-usage-rest-0.1.9.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "d3755e5cd0ed80f6a13d1b240edf78c9", "sha256": "15a2999e1fc1509559bfc29b2f030fc8783ae27a8e28c887ad73ae0c19c20c3c" }, "downloads": -1, "filename": "gitlab_registry_usage_rest-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d3755e5cd0ed80f6a13d1b240edf78c9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10611, "upload_time": "2018-04-05T10:03:57", "url": "https://files.pythonhosted.org/packages/35/b4/8890e0ce1b60674dbdf12353aa652cb800493411d7e51a64996f06e1a27d/gitlab_registry_usage_rest-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4793569a2bce3d1fb527118294696c2a", "sha256": "c7823bb837e216d7991bca1c73db77f7873240ac93d1a3812eecf42afce9d0c2" }, "downloads": -1, "filename": "gitlab-registry-usage-rest-0.2.0.tar.gz", "has_sig": false, "md5_digest": "4793569a2bce3d1fb527118294696c2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10528, "upload_time": "2018-04-05T10:03:58", "url": "https://files.pythonhosted.org/packages/31/70/8d56bd651686ed3b0c904df181f3e2ebff58bf2835883d8a4e2c408ace91/gitlab-registry-usage-rest-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "2ddf1663341a72d7ba2dfecc8202bc84", "sha256": "7fc8733e1c773764aef41efba55f4e6fe016ca29d732dfb9e6df2c9560a268d4" }, "downloads": -1, "filename": "gitlab_registry_usage_rest-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "2ddf1663341a72d7ba2dfecc8202bc84", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.3", "size": 13204, "upload_time": "2018-06-04T10:03:48", "url": "https://files.pythonhosted.org/packages/02/62/761a47ff35122d7d52b5ea69db27f0e9e58fcb670738f07fc3b1f6634863/gitlab_registry_usage_rest-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cb6b687e4396d596ec2d8c155530068f", "sha256": "1dd9b014cf19450ea65b59a553c2ea3863dd0f7af51c36ec3affb6f3bc633173" }, "downloads": -1, "filename": "gitlab-registry-usage-rest-0.2.1.tar.gz", "has_sig": false, "md5_digest": "cb6b687e4396d596ec2d8c155530068f", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.3", "size": 11492, "upload_time": "2018-06-04T10:03:49", "url": "https://files.pythonhosted.org/packages/d6/03/ba575c3348c6d2cf76ad529178a2cf846da1015d08677e7015af39c4d073/gitlab-registry-usage-rest-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "6d511c4e0833e2ba332ae6a14cb2b325", "sha256": "56b468ac15155664784f7a42caebad853905ae6b385d22e8f6e2c5211b3a5169" }, "downloads": -1, "filename": "gitlab_registry_usage_rest-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "6d511c4e0833e2ba332ae6a14cb2b325", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.3", "size": 13210, "upload_time": "2018-08-15T14:17:01", "url": "https://files.pythonhosted.org/packages/d9/fd/c6c6ae082c72c7f8704048ef84e12b752fb39e2049bed00ce186c3ae0143/gitlab_registry_usage_rest-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5dc01084045a54e1eb362aaadce0716c", "sha256": "0884745fab8b10009fe701c1953de70a91080a2991db09b38b129ecc6851a91f" }, "downloads": -1, "filename": "gitlab-registry-usage-rest-0.2.2.tar.gz", "has_sig": false, "md5_digest": "5dc01084045a54e1eb362aaadce0716c", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.3", "size": 11505, "upload_time": "2018-08-15T14:17:03", "url": "https://files.pythonhosted.org/packages/71/02/3142c00dcede2f9f792dc12b62ade9f81a3ff2f314506ae3ab78ccc5f53a/gitlab-registry-usage-rest-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6d511c4e0833e2ba332ae6a14cb2b325", "sha256": "56b468ac15155664784f7a42caebad853905ae6b385d22e8f6e2c5211b3a5169" }, "downloads": -1, "filename": "gitlab_registry_usage_rest-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "6d511c4e0833e2ba332ae6a14cb2b325", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.3", "size": 13210, "upload_time": "2018-08-15T14:17:01", "url": "https://files.pythonhosted.org/packages/d9/fd/c6c6ae082c72c7f8704048ef84e12b752fb39e2049bed00ce186c3ae0143/gitlab_registry_usage_rest-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5dc01084045a54e1eb362aaadce0716c", "sha256": "0884745fab8b10009fe701c1953de70a91080a2991db09b38b129ecc6851a91f" }, "downloads": -1, "filename": "gitlab-registry-usage-rest-0.2.2.tar.gz", "has_sig": false, "md5_digest": "5dc01084045a54e1eb362aaadce0716c", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.3", "size": 11505, "upload_time": "2018-08-15T14:17:03", "url": "https://files.pythonhosted.org/packages/71/02/3142c00dcede2f9f792dc12b62ade9f81a3ff2f314506ae3ab78ccc5f53a/gitlab-registry-usage-rest-0.2.2.tar.gz" } ] }