{"id":13593771,"url":"https://github.com/db0/pythorhead","last_synced_at":"2025-05-16T17:08:57.543Z","repository":{"id":175339932,"uuid":"653740206","full_name":"db0/pythorhead","owner":"db0","description":"A python library for interacting with Lemmy","archived":false,"fork":false,"pushed_at":"2025-04-28T06:40:14.000Z","size":554,"stargazers_count":83,"open_issues_count":7,"forks_count":29,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-28T07:34:39.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/db0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2023-06-14T16:21:27.000Z","updated_at":"2025-04-28T06:40:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4e0315d-0dbd-4ae5-b3d4-ef5a4162b2e5","html_url":"https://github.com/db0/pythorhead","commit_stats":null,"previous_names":["db0/pythorhead"],"tags_count":74,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db0%2Fpythorhead","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db0%2Fpythorhead/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db0%2Fpythorhead/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db0%2Fpythorhead/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/db0","download_url":"https://codeload.github.com/db0/pythorhead/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254573589,"owners_count":22093731,"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","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-08-01T16:01:24.325Z","updated_at":"2025-05-16T17:08:57.524Z","avatar_url":"https://github.com/db0.png","language":"Python","funding_links":[],"categories":["Python","Projects"],"sub_categories":["Libraries"],"readme":"# Pythörhead\n\nA python library for interacting with Lemmy\n\n![pythorhead logo](https://raw.githubusercontent.com/db0/pythorhead/main/logo.png)\n\n# Examples\n\nSee working examples in [examples/](https://github.com/db0/pythorhead/tree/main/examples)\n\n\n# Exceptions\n\nIf you want to raise exceptions on failures instead of returning null, pass `raise_exceptions=True` to the `Lemmy()` constructor.\n\nThe normal request timeout is 3 seconds. If you want to change this number, you can set it on the constructor uising `request_timeout=`\n\n## Sample Post Usage\n\n```python\nfrom pythorhead import Lemmy\n\nlemmy = Lemmy(\"https://lemmy.dbzer0.com\",request_timeout=2)\nlemmy.log_in(\"username\", \"password\")\ncommunity_id = lemmy.discover_community(\"botart\")\nlemmy.post.create(community_id, \"Hello Lemmy World\")\n```\n\n## Sample Comment Usage\n\n```python\nfrom pythorhead import Lemmy\n\nlemmy = Lemmy(\"https://lemmy.dbzer0.com\")\nlemmy.log_in(\"username\", \"password\")\n\n# getting the first post id\npost_id = lemmy.post.list()[0][\"post\"][\"id\"]\n\n# leave a comment\nlemmy.comment.create(post_id, \"Hello Lemmy World\")\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdb0%2Fpythorhead","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdb0%2Fpythorhead","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdb0%2Fpythorhead/lists"}