{ "info": { "author": "Propylon", "author_email": "opensource@propylon.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.2", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-version-endpoint\n=======================\n\n> Provide an endpoint to query installed python package versions\n\n.. image:: https://travis-ci.org/propylon/django-version-endpoint.svg?branch=master\n :target: https://travis-ci.org/propylon/django-version-endpoint\n\nUsage\n-----\n\nInstallation\n************\n1. Install the package::\n\n pip install django-version-endpoint\n\n2. Install the application by adding it to the INSTALLED_APPS setting::\n\n INSTALLED_APPS += ('version_endpoint',)\n\n3. Set the package names, you're interested in::\n\n VERSION_ENDPOINT_PACKAGE_NAMES = (\n 'all',\n 'interesting',\n 'packages'\n )\n\n4. Add the url to your urls.py::\n\n from django.conf.urls import include\n\n urlpatterns += url(r'^', include('version_endpoint.urls'))\n\nEndpoints\n*********\n\nversions/\n^^^^^^^^^\nYou can call the \"versions\" endpoint to get the information about the installed\npackage versions.\n\nRequest a content type of \"application/json\" and a dictionary is returned::\n\n {\n 'versions': {\n 'all': '1.1',\n 'interesting': '2.2',\n 'packages': '3.3'\n },\n 'host': 'hostname'\n }\n\nOtherwise a rendered html page is returned.\n\nversions//\n^^^^^^^^^^^^^^^^^^^^^^^^\nThe versions endpoint can get a single package name as well to specifically\nreturn the mentioned package's version.\n\nOverwriting the template\n************************\nIn order to overwrite the html template for your needs, just create a template\ncalled \"version_endpoint.html\" in your project, that's retrieved before the\ndefault one of the application.\nFor example with the standard template loader and directory in the project's\nfolder under a \"templates\" folder.\nYou can use the dictionary mentioned above as context for the template.\n\nIf you want to override the html response for the single package endpoint, you\ncan do the same for the \"version_endpoint_single.html\" template.\n\nDevelopment\n-----------\n\nMakefile\n********\n\nThis project uses a Makefile for various tasks. Some of the available tasks\nare listed below.\n\n* `make clean` - Clean build artifacts out of your project\n* `make test` - Run Tests\n* `make plain-test` - Run Tests without rebuilding the project\n* `make sdist` - Build a Python source distribution\n* `make docs` - Build the Sphinx documentation\n* `make lint` - Get a codestyle report about your code\n* `make plain-lint` - Get a codestyle report without rebuilding the project\n* `make` - Equivalent to `make test lint docs sdist`", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/propylon/django-version-endpoint", "keywords": "", "license": "Apache-2.0", "maintainer": "", "maintainer_email": "", "name": "django-version-endpoint", "package_url": "https://pypi.org/project/django-version-endpoint/", "platform": "", "project_url": "https://pypi.org/project/django-version-endpoint/", "project_urls": { "Homepage": "https://github.com/propylon/django-version-endpoint" }, "release_url": "https://pypi.org/project/django-version-endpoint/1.0.4/", "requires_dist": null, "requires_python": "", "summary": "Provide an endpoint to query installed python package versions", "version": "1.0.4" }, "last_serial": 5623011, "releases": { "1.0.4": [ { "comment_text": "", "digests": { "md5": "d3d2276d6530470c467db149689f1cf4", "sha256": "0f32378236e0bc26d8b2d8684904ddff7a98793339c5bf63e9c195404be1d677" }, "downloads": -1, "filename": "django-version-endpoint-1.0.4.tar.gz", "has_sig": false, "md5_digest": "d3d2276d6530470c467db149689f1cf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 197355, "upload_time": "2019-08-02T10:05:55", "url": "https://files.pythonhosted.org/packages/ac/08/afe445680ba853eff8c05431af88d7f92c04c4dbd12bfbfe512ce276e079/django-version-endpoint-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d3d2276d6530470c467db149689f1cf4", "sha256": "0f32378236e0bc26d8b2d8684904ddff7a98793339c5bf63e9c195404be1d677" }, "downloads": -1, "filename": "django-version-endpoint-1.0.4.tar.gz", "has_sig": false, "md5_digest": "d3d2276d6530470c467db149689f1cf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 197355, "upload_time": "2019-08-02T10:05:55", "url": "https://files.pythonhosted.org/packages/ac/08/afe445680ba853eff8c05431af88d7f92c04c4dbd12bfbfe512ce276e079/django-version-endpoint-1.0.4.tar.gz" } ] }