{"id":47271948,"url":"https://github.com/bugov/http-basic-auth","last_synced_at":"2026-03-15T13:32:51.790Z","repository":{"id":57437672,"uuid":"122230257","full_name":"bugov/http-basic-auth","owner":"bugov","description":"💂UTF-8 compatible implementation of HTTP Basic Auth for Python","archived":false,"fork":false,"pushed_at":"2019-09-07T21:37:37.000Z","size":25,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-24T23:34:28.731Z","etag":null,"topics":["basic-authentication","http","python","python3","utf-8"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bugov.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-20T17:20:19.000Z","updated_at":"2019-03-12T03:24:29.000Z","dependencies_parsed_at":"2022-09-15T11:20:23.413Z","dependency_job_id":null,"html_url":"https://github.com/bugov/http-basic-auth","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bugov/http-basic-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugov%2Fhttp-basic-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugov%2Fhttp-basic-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugov%2Fhttp-basic-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugov%2Fhttp-basic-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugov","download_url":"https://codeload.github.com/bugov/http-basic-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugov%2Fhttp-basic-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30495735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-14T06:44:34.637Z","status":"ssl_error","status_checked_at":"2026-03-14T06:42:52.723Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["basic-authentication","http","python","python3","utf-8"],"created_at":"2026-03-15T13:32:49.417Z","updated_at":"2026-03-15T13:32:51.784Z","avatar_url":"https://github.com/bugov.png","language":"Python","readme":"# http-basic-auth\n\n\n[![Build Status](https://travis-ci.org/bugov/http-basic-auth.svg?branch=master)](https://travis-ci.org/bugov/http-basic-auth)\n\nYep, it's one more HTTP Basic Auth python lib. The second. And I tried\nto use the first, but it had a bug (which I fixed) and... completely\nwrong realisation of non-latin encoding/decoding.\n\n# Install\n\n```bash\npip3 install http-basic-auth\n```\n\n# ♥️ RFC\n\nIt supports only RFC-2617 (RFC-7617 planning).\n\nIf you find some mistake – please write to [issue list 🐨](https://github.com/bugov/http-basic-auth/issues).\n\n# ♥️ Non-latin symbols\n\nhttp-basic-auth ♥ utf-8\n\n```bash\n→ curl --user name:пароль https://httpbin.org/headers\n{\n  \"headers\": {\n    \"Accept\": \"*/*\", \n    \"Authorization\": \"Basic bmFtZTrQv9Cw0YDQvtC70Yw=\", \n    \"Connection\": \"close\", \n    \"Host\": \"httpbin.org\", \n    \"User-Agent\": \"curl/7.54.0\"\n  }\n}\n```\n\nAnd even\n\n```bash\n→ curl --user 😁:пар:öль https://httpbin.org/headers\n{\n  \"headers\": {\n    \"Accept\": \"*/*\", \n    \"Authorization\": \"Basic 8J+YgTrQv9Cw0YA6w7bQu9GM\", \n    \"Connection\": \"close\", \n    \"Host\": \"httpbin.org\", \n    \"User-Agent\": \"curl/7.54.0\"\n  }\n}\n```\n\nAll works well\n\n```python\nfrom http_basic_auth import generate_header, parse_header\n\n\nassert \"Basic 8J+YgTrQv9Cw0YA6w7bQu9GM\" == generate_header('😁', 'пар:öль')\nassert ('😁', 'пар:öль') == parse_header(\"Basic 8J+YgTrQv9Cw0YA6w7bQu9GM\")\n```\n\n# Provides functions\n\n- `generate_header`: `(user, password) → \"Basic \u003ctoken\u003e\"`\n- `parse_header`: `\"Basic \u003ctoken\u003e\" → (user, password)`\n- `generate_token`: `(user, password) → \"\u003ctoken\u003e\"`\n- `parse_token`: `\"\u003ctoken\u003e\" → (user, password)`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugov%2Fhttp-basic-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugov%2Fhttp-basic-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugov%2Fhttp-basic-auth/lists"}