{"id":16538147,"url":"https://github.com/pablolec/django-github-tags","last_synced_at":"2025-10-11T00:39:46.061Z","repository":{"id":43397968,"uuid":"372518024","full_name":"PabloLec/django-github-tags","owner":"PabloLec","description":"Access to GitHub API using tags in your Django templates.","archived":false,"fork":false,"pushed_at":"2022-03-03T15:23:13.000Z","size":203,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-03T21:15:14.596Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PabloLec.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}},"created_at":"2021-05-31T13:34:25.000Z","updated_at":"2021-09-28T16:13:59.000Z","dependencies_parsed_at":"2022-09-05T19:41:38.653Z","dependency_job_id":null,"html_url":"https://github.com/PabloLec/django-github-tags","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/PabloLec/django-github-tags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PabloLec%2Fdjango-github-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PabloLec%2Fdjango-github-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PabloLec%2Fdjango-github-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PabloLec%2Fdjango-github-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PabloLec","download_url":"https://codeload.github.com/PabloLec/django-github-tags/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PabloLec%2Fdjango-github-tags/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005648,"owners_count":26083942,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T18:44:33.140Z","updated_at":"2025-10-11T00:39:46.046Z","avatar_url":"https://github.com/PabloLec.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-github-tags [![GitHub release (latest by date)](https://img.shields.io/github/v/release/pablolec/django-github-tags)](https://github.com/PabloLec/django-github-tags/releases/) [![GitHub](https://img.shields.io/github/license/pablolec/django-github-tags)](https://github.com/PabloLec/django-github-tags/blob/main/LICENCE)\n\n\u003cdiv align=\"center\"\u003e\n    \u003ch4\u003eAccess to GitHub API using tags in your Django templates.\u003c/h4\u003e\n    \u003cimg src=\"example1.png\" /\u003e\u003cbr/\u003e\u003cimg src=\"example2.png\" /\u003e\u003cbr/\u003e\u003cimg src=\"example3.png\" /\u003e\u003c/div\u003e\n\n\n## Installation\n\n```python3 -m pip install django-github-tags```\n\n## Configuration\n\nTo integrate `django-github-tags` into your Django project, add it to your `INSTALLED_APPS` in your `settings.py` file:\n\n``` python\nINSTALLED_APPS = [\n    ...,\n    'django_github_tags'\n]\n```\n\n:warning: Take notice of underscore/hyphens. Package name uses hyphens due to `pip` requirements while django uses underscore. :warning:\n\n## Usage\n\nThis app is simple and goes straight to the point. It lets you use Django template tags as GitHub API queries.\n\nTo use it in your template `.html` file, add:\n\n```\n{% load django_github_tags %}\n```\n\nThere are two possible tags: `github` and `github-raw`.\n\n### `github`\n\n**This tag requires an endpoint path and a key to search into the API response. The output will be a string.**\n\nTypical usage is:\n\n```\n{% github \"API_ENDPOINT\" \"PATH_ARG1\" \"PATH_ARG2\" \"PATH_ARGX\" \"KEY\" %}\n```\n\nFor example, to access [recoverpy](https://github.com/PabloLec/recoverpy) repository programming language, you can use:\n\n```\nMonty {% github \"repos\" \"pablolec\" \"recoverpy\" \"language\" %}\n```\n\nAnd Django will generate:\n```\nMonty Python\n```\n\n### `github-raw`\n\n**This tag requires only an endpoint path. The output will be a dictionary.**\n\nTypical usage is:\n```\n{% github \"API_ENDPOINT\" \"PATH_ARG1\" \"PATH_ARG2\" \"PATH_ARGX\" %}\n```\n\nFor example, to manipulate my own GitHub profile, I can use:\n\n```\n{% github-raw \"users\" \"pablolec\" as myprofile %}\n\nCheck out my cool profile at: {% myprofile.html_url %}\n\nAnd by the way, I live in {% myprofile.location %}.\n```\n\nAnd Django will generate:\n\n```\nCheck out my cool profile at: https://github.com/PabloLec\nAnd by the way, I live in France.\n```\n\n## General Principle\n\nAnything you can do with GET requests and GitHub REST API, you can also do it with `django-github-tags`. And that's a lot.\n\n**To have a full tour of the API capabilities, refer to the [official documentation](https://docs.github.com/en/rest).**\n\nKeep in mind that if you want to get a simple string result for one particular key, use the `github` command.\nIf you want the full API response to use it as a dictionary, use `github-raw` command.\n\n\n## Examples\n\nThere is of course an infinity of potential usage:\n- Provide users dynamic GitHub profile data.\n- Display a repo stars, fork count, etc.\n- Track latest issue.\n- Add to a user profile its assigned issues or send notifications.\n- Get newest PR commits, comments.\n- Sync users profile pic with GitHub's pic.\n- List latest `good first issue` labels.\n- A GitHub [insert your filter] search engine\n- etc.\n\nWell, the only limit is your imagination (and [documentation](https://docs.github.com/en/rest)).\n\n## License\n\n\ndjango-github-tags is released under the [GPL-3.0 License](https://github.com/PabloLec/django-github-tags/blob/main/LICENCE). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablolec%2Fdjango-github-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpablolec%2Fdjango-github-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablolec%2Fdjango-github-tags/lists"}