{"id":14972902,"url":"https://github.com/dhyanipalan/url_obfuscated","last_synced_at":"2026-03-02T05:32:33.360Z","repository":{"id":143234448,"uuid":"614786974","full_name":"dhyanipalan/url_obfuscated","owner":"dhyanipalan","description":"Easy and Simple method to obfuscate and deobfuscate your Django URLs. Works with both normal urls as well as those with params","archived":false,"fork":false,"pushed_at":"2023-04-13T17:45:18.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T12:50:29.381Z","etag":null,"topics":["django","django-application","obfuscated","obfuscation","python","url-obfuscator","urls"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/url-obfuscated/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dhyanipalan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-16T10:16:22.000Z","updated_at":"2024-05-12T14:38:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"24cbedde-fffe-42c2-88c5-fffaea9c3a6e","html_url":"https://github.com/dhyanipalan/url_obfuscated","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":0.5,"last_synced_commit":"e99ba109edecaf475866082ee2cbe7c803f752e8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dhyanipalan/url_obfuscated","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhyanipalan%2Furl_obfuscated","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhyanipalan%2Furl_obfuscated/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhyanipalan%2Furl_obfuscated/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhyanipalan%2Furl_obfuscated/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhyanipalan","download_url":"https://codeload.github.com/dhyanipalan/url_obfuscated/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhyanipalan%2Furl_obfuscated/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29993376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"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":["django","django-application","obfuscated","obfuscation","python","url-obfuscator","urls"],"created_at":"2024-09-24T13:47:43.232Z","updated_at":"2026-03-02T05:32:33.344Z","avatar_url":"https://github.com/dhyanipalan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# url_obfuscated\nEasy and Simple method to obfuscate and deobfuscate your Django URLs.\nWorks with both normal urls as well as those with params\n\n## Quick start\nInstall using pip or easy_install\n\n    $ pip install url-obfuscated\n\n    $ easy_install url-obfuscated\n\nAdd \"url_obfuscate\" to your INSTALLED_APPS setting like this:\n\n    INSTALLED_APPS = (\n        ...\n        'url-obfuscated',\n    )\n\n## Usage\nTo obfuscate Django's URLs, modify the URL declaration in the urls.py file by replacing the regex definition with the funcion generate_url_pattern, as follows:\n\n    from url_obfuscated.helpers import generate_url_pattern\n    .....\n\n    urlpatterns = [\n        url(generate_url_pattern('/'), home, name='home'),\n        url(generate_url_pattern('obfuscated_link', params=['(?P\u003cname\u003e[^/]+)']), obfuscated_link, name='obfuscated_link'),\n        url(generate_url_pattern('optional_param', params=['(?:(?P\u003cparam\u003e[^/]+)/)?']), optional_param, name='optional_param'),\n    ]\n\nFor the home URL, use / path. To include params in the URL, declare them in the desired order inside the params attribute. When obfuscating a URL with parameters, it is necessary to use the deobfuscate decorator to recover the original value of the parameter.\n\n    from url_obfuscated.decorators import deobfuscate\n    ...\n\n    @deobfuscate\n    def obfuscated_link(request, name):\n        return render(request, 'obfuscate_result.html', { 'name': name })\n\nWhen declaring URLs with parameters inside templates, use the obfuscate template tag, as follows:\n\n    {% load obfuscate_tags %}\n    ...\n    \u003cp\u003e\u003ca href=\"{% url 'obfuscated_link' 'Dan Brown'|obfuscate %}\"\u003eObfuscated link: {% url 'obfuscated_link' 'Dan'|obfuscate %}\u003c/a\u003e\u003c/p\u003e\n    ...\n\nYou can also obfuscate any value from inside a view, use the obfuscate function, as follows:\n\n    from url_obfuscated.helpers import obfuscate\n    ...\n\n    def home(request):\n        links = list()\n        for i in range(10):\n            links.append(obfuscate('Name %d' % (i+1)))\n        return render(request, 'index.html', { 'links': links })\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhyanipalan%2Furl_obfuscated","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhyanipalan%2Furl_obfuscated","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhyanipalan%2Furl_obfuscated/lists"}