{"id":26479397,"url":"https://github.com/fastn-stack/fastn_py","last_synced_at":"2026-05-16T13:07:52.925Z","repository":{"id":208810744,"uuid":"722493863","full_name":"fastn-stack/fastn_py","owner":"fastn-stack","description":"Python package to facilitate working with https://fastn.com/","archived":false,"fork":false,"pushed_at":"2024-01-17T11:18:50.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T00:34:26.354Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fastn-stack.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-11-23T09:15:35.000Z","updated_at":"2023-11-23T12:40:22.000Z","dependencies_parsed_at":"2023-11-28T11:42:18.386Z","dependency_job_id":"4e845cb5-9e76-4281-8a8e-0e4c0823af06","html_url":"https://github.com/fastn-stack/fastn_py","commit_stats":null,"previous_names":["fastn-stack/fastn_py"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fastn-stack/fastn_py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastn-stack%2Ffastn_py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastn-stack%2Ffastn_py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastn-stack%2Ffastn_py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastn-stack%2Ffastn_py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastn-stack","download_url":"https://codeload.github.com/fastn-stack/fastn_py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastn-stack%2Ffastn_py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33103992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2025-03-20T01:41:32.460Z","updated_at":"2026-05-16T13:07:52.907Z","avatar_url":"https://github.com/fastn-stack.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastn_py\n\nPython package to facilitate working with [fastn](https://fastn.com/)\n\n## Requirements\n\n- **Python** 3.6 and above\n- **Django** 4.0 and above\n\n## Installation\n\n```\npip install fastn\n```\n\n## GithubAuthMiddleware\n\n- Add `'fastn.django.GithubAuthMiddleware'` to `MIDDLEWARE` after\n  `django.contrib.auth.middleware.AuthenticationMiddleware`.\n\n- By default, this middleware will create a [django\n  User](https://docs.djangoproject.com/en/5.0/ref/contrib/auth/#user-model)\n  from fastn session and call\n  [`login()`](https://docs.djangoproject.com/en/5.0/topics/auth/default/#django.contrib.auth.login)\n  on this user. To change this behaviour, add the following to your\n  `settings.py` file:\n\n    ```python\n    FASTN_AUTH_CALLBACK = \"some.module.auth_callback\"\n    ```\n\n    the `some.module.auth_callback` will be called with\n    [`request`](https://docs.djangoproject.com/en/5.0/ref/request-response/#httprequest-objects)\n    and `fastn_user`. `fastn_user` is a dict:\n\n    ```python\n    fastn_user = {\n        \"username\": \"john\", \n        \"name\": \"John Do\", \n        \"email\": \"john@mail.com\", \n    }\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastn-stack%2Ffastn_py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastn-stack%2Ffastn_py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastn-stack%2Ffastn_py/lists"}