{"id":13801133,"url":"https://github.com/jacklinquan/micropython-cryptodweet","last_synced_at":"2025-03-05T07:34:24.595Z","repository":{"id":57697835,"uuid":"497742761","full_name":"jacklinquan/micropython-cryptodweet","owner":"jacklinquan","description":"A python module for very basic APIs of the free dweet service with encryption.","archived":false,"fork":false,"pushed_at":"2022-08-30T06:48:27.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-16T22:19:22.807Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacklinquan.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":"2022-05-30T00:38:44.000Z","updated_at":"2023-07-21T16:44:33.000Z","dependencies_parsed_at":"2022-09-26T21:01:54.363Z","dependency_job_id":null,"html_url":"https://github.com/jacklinquan/micropython-cryptodweet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklinquan%2Fmicropython-cryptodweet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklinquan%2Fmicropython-cryptodweet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklinquan%2Fmicropython-cryptodweet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklinquan%2Fmicropython-cryptodweet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacklinquan","download_url":"https://codeload.github.com/jacklinquan/micropython-cryptodweet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241989518,"owners_count":20053798,"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-04T00:01:19.900Z","updated_at":"2025-03-05T07:34:24.567Z","avatar_url":"https://github.com/jacklinquan.png","language":"Python","readme":"# micropython-cryptodweet\n[![PayPal Donate][paypal_img]][paypal_link]\n[![PyPI version][pypi_img]][pypi_link]\n[![Downloads][downloads_img]][downloads_link]\n\n  [paypal_img]: https://github.com/jacklinquan/images/blob/master/paypal_donate_badge.svg\n  [paypal_link]: https://www.paypal.me/jacklinquan\n  [pypi_img]: https://badge.fury.io/py/micropython-cryptodweet.svg\n  [pypi_link]: https://badge.fury.io/py/micropython-cryptodweet\n  [downloads_img]: https://pepy.tech/badge/micropython-cryptodweet\n  [downloads_link]: https://pepy.tech/project/micropython-cryptodweet\n\nA python module for very basic APIs of the free dweet service with encryption.\nDweet is a simple machine-to-machine (M2M) service from [dweet.io](https://dweet.io).\n\nThis module only supports these dweet APIs of the free dweet service:\n\n- `dweet for`\n- `get latest dweet for`\n- `get dweets for`\n\nThis module works under MicroPython and it is tested with MicroPython V1.18.\nIt requires [micropython-basicdweet](https://github.com/jacklinquan/micropython-basicdweet)\nand [micropython-cryptomsg](https://github.com/jacklinquan/micropython-cryptomsg).\n\nFor a compatible CPython version, please find [Python package cryptodweet](https://github.com/jacklinquan/cryptodweet).\n\n## Installation\n``` Python\n\u003e\u003e\u003e import upip\n\u003e\u003e\u003e upip.install('micropython-cryptodweet')\n```\nAlternatively just copy cryptodweet.py and its dependency to the MicroPython device.\n\n## Usage\n``` python\n\u003e\u003e\u003e from cryptodweet import CryptoDweet\n\u003e\u003e\u003e cd = CryptoDweet('YOUR KEY')\n\u003e\u003e\u003e cd.dweet_for('YOUR THING', {'YOUR DATA': 'YOUR VALUE'})\n{'content': {'8c94428bc640de621c7c3ceea1d00b96': '05d6f2dbc1ce3afa7e6072c0c4c6f6a7'}, 'created': '2022-05-30T00:13:24.215Z', 'thing': '9ee9b47833d5a13043c5f47e8802596a', 'transaction': 'ae80796e-4c3e-4237-bd2f-c5e040ff4b68'}\n\u003e\u003e\u003e cd.get_latest_dweet_for('YOUR THING')\n[{'content': {'YOUR DATA': 'YOUR VALUE'}, 'created': '2022-05-30T00:13:24.215Z', 'thing': 'YOUR THING'}]\n\u003e\u003e\u003e cd.dweet_for('YOUR THING', {'YOUR DATA': 'YOUR VALUE 2'})\n{'content': {'8c94428bc640de621c7c3ceea1d00b96': 'b9ed6b3c229ae62ea30f134f9332b5bf'}, 'created': '2022-05-30T00:16:20.835Z', 'thing': '9ee9b47833d5a13043c5f47e8802596a', 'transaction': 'b1f22bfc-8571-4798-a600-56c36288344e'}\n\u003e\u003e\u003e cd.get_latest_dweet_for('YOUR THING')\n[{'content': {'YOUR DATA': 'YOUR VALUE 2'}, 'created': '2022-05-30T00:16:20.835Z', 'thing': 'YOUR THING'}]\n\u003e\u003e\u003e cd.get_dweets_for('YOUR THING')\n[{'content': {'YOUR DATA': 'YOUR VALUE 2'}, 'created': '2022-05-30T00:16:20.835Z', 'thing': 'YOUR THING'}, {'content': {'YOUR DATA': 'YOUR VALUE'}, 'created': '2022-05-30T00:13:24.215Z', 'thing': 'YOUR THING'}]\n```\n","funding_links":["https://www.paypal.me/jacklinquan"],"categories":["Libraries"],"sub_categories":["Communications"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklinquan%2Fmicropython-cryptodweet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacklinquan%2Fmicropython-cryptodweet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklinquan%2Fmicropython-cryptodweet/lists"}