{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "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.7", "Topic :: Software Development" ], "description": "### Install\n\n```bash\n$ [sudo] pip install badges\n```\n\n### Features\n\n+ **md**, **rst** support\n+ autoformat strings with instance and class variables\n+ **minimalistic design, easy subclassing**\n+ CircleCI, Travis, ... badge classes\n\n### Examples\n\n```python\n# format attributes - {attrname}\n>>> class CustomBadge(badges.Badge):\n branch = \"master\"\n link = \"https://site.com/{fullname}\"\n image = \"https://site.com/{fullname}?branch={branch}.svg\"\n\n>>> CustomBadge(fullname=\"owner/repo\")\n'[![](https://site.com/owner/repo?branch=master.svg)](https://site.com/owner/repo)'\n\n# format @property - {0.propname}\n>>> class CustomBadge(badges.Badge):\n branch = \"master\"\n link = \"https://site.com/{0.fullname}\"\n image = \"https://site.com/{0.fullname}?branch={branch}.svg\"\n\n @property\n def fullname(self):\n return \"/\".join(os.getcwd().split(\"/\")[-2:])\n\n>>> CustomBadge()\n'[![](https://site.com/owner/repo?branch=master.svg)](https://site.com/owner/repo)'\n\n```\n\n### Sources\n\n+ [`badges/badge.Badge`](https://github.com/looking-for-a-job/badges.py/blob/master/badges/badge.py)\n+ [`badges/bettercodehub.Bettercodehub(GitBadge)`](https://github.com/looking-for-a-job/badges.py/blob/master/badges/bettercodehub.py)\n+ [`badges/circleci.Circleci(GitBadge)`](https://github.com/looking-for-a-job/badges.py/blob/master/badges/circleci.py)\n+ [`badges/codeclimate.Codeclimate(GitBadge)`](https://github.com/looking-for-a-job/badges.py/blob/master/badges/codeclimate.py)\n+ [`badges/codecov.Codecov(GitBadge)`](https://github.com/looking-for-a-job/badges.py/blob/master/badges/codecov.py)\n+ [`badges/codefactor.Codefactor(GitBadge)`](https://github.com/looking-for-a-job/badges.py/blob/master/badges/codefactor.py)\n+ [`badges/gitbadge.GitBadge(Badge)`](https://github.com/looking-for-a-job/badges.py/blob/master/badges/gitbadge.py)\n+ [`badges/scrutinizer.Scrutinizer(GitBadge)`](https://github.com/looking-for-a-job/badges.py/blob/master/badges/scrutinizer.py)\n+ [`badges/semaphoreci.Semaphoreci(GitBadge)`](https://github.com/looking-for-a-job/badges.py/blob/master/badges/semaphoreci.py)\n+ [`badges/sonarcloud.Sonarcloud(Badge)`](https://github.com/looking-for-a-job/badges.py/blob/master/badges/sonarcloud.py)\n+ [`badges/travis.Travis(GitBadge)`](https://github.com/looking-for-a-job/badges.py/blob/master/badges/travis.py)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/looking-for-a-job/badges.py", "keywords": "badge", "license": "", "maintainer": "", "maintainer_email": "", "name": "badges", "package_url": "https://pypi.org/project/badges/", "platform": "", "project_url": "https://pypi.org/project/badges/", "project_urls": { "Homepage": "https://github.com/looking-for-a-job/badges.py" }, "release_url": "https://pypi.org/project/badges/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "badge image class", "version": "0.0.1" }, "last_serial": 5587853, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "a914be6bb2856c4b9bc37bc8dd51f228", "sha256": "f5d661ce112e11508c0bd0d1829c394809e69e171d138d569a286f6e422545d1" }, "downloads": -1, "filename": "badges-0.0.0.tar.gz", "has_sig": false, "md5_digest": "a914be6bb2856c4b9bc37bc8dd51f228", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 376, "upload_time": "2018-04-27T11:54:58", "url": "https://files.pythonhosted.org/packages/fe/1b/7513e297ccb7677fa4a00e9518801f82ac90c3cb29fc751466d02c09dfab/badges-0.0.0.tar.gz" } ], "0.0.1": [ { "comment_text": "", "digests": { "md5": "01674cd9ef7a603d57a1d198ee497bcc", "sha256": "bb8f830525ffa07b074b3c502cab4278398d4bb8b267be447a1d64a62e9f09a5" }, "downloads": -1, "filename": "badges-0.0.1.tar.gz", "has_sig": false, "md5_digest": "01674cd9ef7a603d57a1d198ee497bcc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3274, "upload_time": "2018-05-16T00:24:48", "url": "https://files.pythonhosted.org/packages/05/14/ce6d8c4a69ae54979e3e37ab0573f3242ebf1770785321648e88f4711e83/badges-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "01674cd9ef7a603d57a1d198ee497bcc", "sha256": "bb8f830525ffa07b074b3c502cab4278398d4bb8b267be447a1d64a62e9f09a5" }, "downloads": -1, "filename": "badges-0.0.1.tar.gz", "has_sig": false, "md5_digest": "01674cd9ef7a603d57a1d198ee497bcc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3274, "upload_time": "2018-05-16T00:24:48", "url": "https://files.pythonhosted.org/packages/05/14/ce6d8c4a69ae54979e3e37ab0573f3242ebf1770785321648e88f4711e83/badges-0.0.1.tar.gz" } ] }