{"id":14987162,"url":"https://github.com/homemadepy/messages","last_synced_at":"2025-04-11T23:22:11.432Z","repository":{"id":44430220,"uuid":"117625531","full_name":"HomeMadePy/messages","owner":"HomeMadePy","description":"A python package designed to make sending messages easy and efficient!","archived":false,"fork":false,"pushed_at":"2023-07-16T13:25:12.000Z","size":989,"stargazers_count":39,"open_issues_count":2,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-25T19:12:24.914Z","etag":null,"topics":["api","api-wrapper","automation","beginner-friendly","cli","email","python3","slack","smtp","telegram","tool","tools","twilio","whatsapp","wiki"],"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/HomeMadePy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.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}},"created_at":"2018-01-16T03:17:51.000Z","updated_at":"2024-12-24T12:32:23.000Z","dependencies_parsed_at":"2024-06-19T02:41:44.017Z","dependency_job_id":"d44f9d93-a8c3-458c-8355-c9b547434951","html_url":"https://github.com/HomeMadePy/messages","commit_stats":null,"previous_names":["trp07/messages"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HomeMadePy%2Fmessages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HomeMadePy%2Fmessages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HomeMadePy%2Fmessages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HomeMadePy%2Fmessages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HomeMadePy","download_url":"https://codeload.github.com/HomeMadePy/messages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248493142,"owners_count":21113204,"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":["api","api-wrapper","automation","beginner-friendly","cli","email","python3","slack","smtp","telegram","tool","tools","twilio","whatsapp","wiki"],"created_at":"2024-09-24T14:14:11.593Z","updated_at":"2025-04-11T23:22:11.395Z","avatar_url":"https://github.com/HomeMadePy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Messages: Create and send messages fast!\n[![](https://img.shields.io/badge/built%20with-Python3-red.svg)](https://www.python.org/)\n[![PyPI version](https://badge.fury.io/py/messages.svg)](https://badge.fury.io/py/messages)\n[![](https://app.travis-ci.com/HomeMadePy/messages.svg?branch=master)](https://app.travis-ci.com/github/HomeMadePy/messages)\n[![Coverage Status](https://coveralls.io/repos/github/HomeMadePy/messages/badge.svg?branch=master)](https://coveralls.io/github/HomeMadePy/messages?branch=master)\n[![](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/HomeMadePy/messages/blob/master/LICENSE)\n\n![messages_words](https://user-images.githubusercontent.com/18299151/48576493-c0a68380-e925-11e8-9322-eb5bd67858a4.png)\n\n## Purpose\n- **Messages** is a package designed to make sending messages easy and efficient!\n- **Messages** intends to be a _lightweight_ package with minimal dependencies.\n- **Messages** with a **consistent API** across all message types. \n- **Messages** includes **asynchronous** support for fast message handling.\n\n## Installation\n**Python3 only**\n```shell\n$ pip install messages\n```\n\n## Documentation in the [Wiki](https://github.com/HomeMadePy/messages/wiki)\n\n## Supported Messages\n* [Email](https://github.com/HomeMadePy/messages/wiki/Email)\n* [Telegram](https://github.com/HomeMadePy/messages/wiki/TelegramBot)\n* [Twilio](https://github.com/HomeMadePy/messages/wiki/Twilio)\n* [WhatsApp](https://github.com/HomeMadePy/messages/wiki/WhatsApp)\n* **Read the [Wiki](https://github.com/HomeMadePy/messages/wiki) for usage**.\n\n\n# Examples\n### Synchronous Execution\n```python3\n# You can send messages right in the REPL\n\n\u003e\u003e\u003e from messages import Email\n\u003e\u003e\u003e \n\u003e\u003e\u003e m = Email(\n            from_ = \"me@here.com\",\n            to = \"you@there.com\",\n            auth = \"p@ssw0rd\",   \n            subject = \"Good Advice\",\n            body = \"Hello,\\n\\tBuy more Bitcoin!\",\n            attachments = [\"./file1.txt\", \"~/Documents/file2.pdf\"],\n   )\n\u003e\u003e\u003e\n\u003e\u003e\u003e m.send()        \nMessage sent...\n```\n\n### Asynchronous Execution\n```python3\n# You can also send messages inside a script\n\nimport asyncio\n\nfrom messages import Email\n\nRECIPIENTS = [\n    \"you@mail.com\",\n    \"him@mail.com\",\n    \"her@mail.com\",\n    \"doglover@mail.com\",\n]\n\n\n\nloop = asyncio.get_event_loop()\n\nfor r in RECIPIENTS\n    e = Email(\n        from_ = \"me@gmail.com\",\n        to = r,\n        auth = \"p@ssw0rd\",\n        subject = \"Good Advice\",\n        body = \"This is an asynchronous email.\\nContinue buying more Bitcoin!\",\n        attachments = [\"./file1.txt\", \"~/Documents/file2.pdf\"],\n    )\n    \n    loop.create_task(e.send_async())\n\ntasks = asyncio.all_tasks(loop=loop)\ngroup = asyncio.gather(*tasks)\nloop.run_until_complete(group)\n```\n\n### **Read** the [Wiki](https://github.com/HomeMadePy/messages/wiki) for **more examples**\n\n\n## Contributing Code\n\n* **Help Wanted!**\n* All contributions are welcome to build upon the package!\n* If it's a **message**, add it to messages!\n* Read the [Wiki](https://github.com/HomeMadePy/messages/wiki) for guidelines.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomemadepy%2Fmessages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhomemadepy%2Fmessages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomemadepy%2Fmessages/lists"}