{ "info": { "author": "python273", "author_email": "pwngrid@python273.pw", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "# 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 (\u2310\u25a0_\u25a0)\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```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/python273/pwngrid-api/archive/v0.0.3.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/python273/pwngrid-api", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pwngrid-api", "package_url": "https://pypi.org/project/pwngrid-api/", "platform": "", "project_url": "https://pypi.org/project/pwngrid-api/", "project_urls": { "Download": "https://github.com/python273/pwngrid-api/archive/v0.0.3.zip", "Homepage": "https://github.com/python273/pwngrid-api" }, "release_url": "https://pypi.org/project/pwngrid-api/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "Pwnagotchi's Pwngrid API client (\u2310\u25a0_\u25a0)", "version": "0.0.3", "yanked": false, "yanked_reason": null }, "last_serial": 11847404, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "704cba69d31b5062bd778f2a1de5e200", "sha256": "268cd6c5928637c5fb3eedbf0d86c45b5440fc0ce0a2f444688584f32a514d25" }, "downloads": -1, "filename": "pwngrid_api-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "704cba69d31b5062bd778f2a1de5e200", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5939, "upload_time": "2019-10-23T19:37:54", "upload_time_iso_8601": "2019-10-23T19:37:54.752387Z", "url": "https://files.pythonhosted.org/packages/01/ff/7028beae8ba7771db11458071086410eef29f886c426cd51e0b96e608b9e/pwngrid_api-0.0.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "8c1ea12ab129a1123dc0c734c9c17a6a", "sha256": "1bc2c0b56a22e98a1ba59f48e04406b2f31bf5096ebc19db59d5381c63c55792" }, "downloads": -1, "filename": "pwngrid-api-0.0.1.tar.gz", "has_sig": false, "md5_digest": "8c1ea12ab129a1123dc0c734c9c17a6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4365, "upload_time": "2019-10-23T19:37:57", "upload_time_iso_8601": "2019-10-23T19:37:57.269736Z", "url": "https://files.pythonhosted.org/packages/72/99/52f75fae82ebdaec6fdbe95b881f8c5bd42a4fe0ad32a8779f3e34635b02/pwngrid-api-0.0.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "089583fd1b9ad15cd62335b153a4426c", "sha256": "dc720a76c0bdfb1eb704e129cccd661fb60427ef55d23284d261859ebb7552a0" }, "downloads": -1, "filename": "pwngrid-api-0.0.2.tar.gz", "has_sig": false, "md5_digest": "089583fd1b9ad15cd62335b153a4426c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5023, "upload_time": "2019-10-23T21:37:19", "upload_time_iso_8601": "2019-10-23T21:37:19.235339Z", "url": "https://files.pythonhosted.org/packages/29/44/cc1424d9d7f44a58a9bc78f1726545347dd980c81ec7272d2c666cbef109/pwngrid-api-0.0.2.tar.gz", "yanked": false, "yanked_reason": null } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "17f5ca66ee90b99d95f603cd77eec38e", "sha256": "6deacf2571d7c4bdba459a3f881ec4b73b32d2b89b672291c0ea9cb9c1ce8350" }, "downloads": -1, "filename": "pwngrid-api-0.0.3.tar.gz", "has_sig": false, "md5_digest": "17f5ca66ee90b99d95f603cd77eec38e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5381, "upload_time": "2019-10-24T08:08:04", "upload_time_iso_8601": "2019-10-24T08:08:04.321070Z", "url": "https://files.pythonhosted.org/packages/8b/75/9734822d6a44430bb913e73800aac9992f579a0adf7b7c9c7a8c96e95509/pwngrid-api-0.0.3.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "17f5ca66ee90b99d95f603cd77eec38e", "sha256": "6deacf2571d7c4bdba459a3f881ec4b73b32d2b89b672291c0ea9cb9c1ce8350" }, "downloads": -1, "filename": "pwngrid-api-0.0.3.tar.gz", "has_sig": false, "md5_digest": "17f5ca66ee90b99d95f603cd77eec38e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5381, "upload_time": "2019-10-24T08:08:04", "upload_time_iso_8601": "2019-10-24T08:08:04.321070Z", "url": "https://files.pythonhosted.org/packages/8b/75/9734822d6a44430bb913e73800aac9992f579a0adf7b7c9c7a8c96e95509/pwngrid-api-0.0.3.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }