{"id":15964622,"url":"https://github.com/python273/pwngrid-api","last_synced_at":"2025-05-07T06:05:07.205Z","repository":{"id":35269084,"uuid":"217137941","full_name":"python273/pwngrid-api","owner":"python273","description":"Pwnagotchi's Pwngrid API client (⌐■_■)","archived":false,"fork":false,"pushed_at":"2022-12-08T07:44:12.000Z","size":55,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T06:04:57.289Z","etag":null,"topics":["cryptography","pwnagotchi","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/python273.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":"2019-10-23T19:32:20.000Z","updated_at":"2023-12-04T10:40:13.000Z","dependencies_parsed_at":"2023-01-15T17:21:38.995Z","dependency_job_id":null,"html_url":"https://github.com/python273/pwngrid-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python273%2Fpwngrid-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python273%2Fpwngrid-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python273%2Fpwngrid-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python273%2Fpwngrid-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/python273","download_url":"https://codeload.github.com/python273/pwngrid-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252823920,"owners_count":21809713,"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":["cryptography","pwnagotchi","python"],"created_at":"2024-10-07T17:03:03.494Z","updated_at":"2025-05-07T06:05:07.188Z","avatar_url":"https://github.com/python273.png","language":"Python","readme":"# pwngrid-api\n\n[![PyPI](https://img.shields.io/pypi/v/pwngrid-api.svg)](https://pypi.org/project/pwngrid-api/) ![Python 3.6, 3.7, 3.8](https://img.shields.io/pypi/pyversions/pwngrid-api.svg)\n\n[Pwnagotchi](https://pwnagotchi.ai/)'s Pwngrid API client (⌐■_■)\n\n- https://pwnagotchi.ai/api/grid/\n\n```\n$ pip install pwngrid-api\n```\n\n## Example\n```python\nimport pwngrid_api\n\n\ntry:\n    private_key = pwngrid_api.utils.load_key(\"./id_rsa_client\")\nexcept FileNotFoundError:\n    private_key = pwngrid_api.utils.gen_key()\n    pwngrid_api.utils.save_key(private_key, \"./id_rsa_client\")\n\npwngrid = pwngrid_api.PwngridClient(\"pygotchi\", private_key)\nprint(pwngrid.unit.identity)\n\npwngrid.enroll()\n\npwngrid.send_message(\n    recipient=\"94b67781c4057533d2e2700a9fcce924fbcfc0abf57724415ebc6819a51e4e39\",\n    cleartext=b\"Hello World!\",\n)\n\nfor m in pwngrid.get_inbox()[\"messages\"]:\n    data, cleartext, sender = pwngrid.read_message(m[\"id\"])\n    print(sender.identity, cleartext.decode(\"utf-8\"))\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython273%2Fpwngrid-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpython273%2Fpwngrid-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython273%2Fpwngrid-api/lists"}