{"id":30303944,"url":"https://github.com/gator3000/masthon","last_synced_at":"2025-08-17T07:02:20.272Z","repository":{"id":309376431,"uuid":"1010249770","full_name":"gator3000/masthon","owner":"gator3000","description":"This is a mirrored repository from gitlab !","archived":false,"fork":false,"pushed_at":"2025-08-11T13:45:41.000Z","size":1725,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-11T15:25:18.758Z","etag":null,"topics":["mastodon","mastodon-bot","mastodon-client","python","python3","wrapper-api","wrapper-library"],"latest_commit_sha":null,"homepage":"https://gitlab.com/Gator3000/masthon.git","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gator3000.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-28T17:08:02.000Z","updated_at":"2025-08-04T07:00:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"19107ddd-b32b-4654-8c1f-18691fa52a31","html_url":"https://github.com/gator3000/masthon","commit_stats":null,"previous_names":["gator3000/masthon"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/gator3000/masthon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gator3000%2Fmasthon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gator3000%2Fmasthon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gator3000%2Fmasthon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gator3000%2Fmasthon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gator3000","download_url":"https://codeload.github.com/gator3000/masthon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gator3000%2Fmasthon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270816193,"owners_count":24650752,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["mastodon","mastodon-bot","mastodon-client","python","python3","wrapper-api","wrapper-library"],"created_at":"2025-08-17T07:01:00.792Z","updated_at":"2025-08-17T07:02:20.227Z","avatar_url":"https://github.com/gator3000.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Masthon\n\nA simple API for linking mastodon to your python codes.\n\n#Author : org.literie.gator\n\n#LastVersion : 0.4 Beta\n\n#FormatedDocumentation : at [Documentation on Gitlab Pages](https://Gator3000.gitlab.io/masthon)\n___\n# Features\n- [x] Version Check [[__main__ py#Version Checker]]\n- Masthon engine\n\t- [x] main loop -\u003e #mainloop\n\t- [x] asynchronous (actually, threading) #threading\n\t- Simple events #simpleevents [[Client py#execute()]]\n\t\t- [x] on_start\n\t\t- [x] on_stop\n- Server Interactions\n\t- [x] Make a request to your server #RequestAPI\n\t- Statuses\n\t    - [x] Post [[Client py#post_status()]]\n\t    - [x] Delete [[Client py#delete_status()]]\n\t    - [x] Upload a file [[Client py#upload_media()]]\n\t- Users\n\t\t- [ ] Get user\n\t\t- [ ] Modify attributes (name, bio, profile picture ...)\n\t- Timelines\n\t\t- Home \u0026 Tags (\u0026 user's tl)\n\t\t\t- [ ] Get timeline\n\t\t- Notifications #notifications \n\t\t    - [x] Get unread notification count [[Client py#unread_notifications_count()]]\n\t\t    - [x] Get last received notifications [[Client py#get_notifications()]]\n\t\t-  Markers #markers \n\t\t    - [x] Post [[Client py#post_marker()]]\n\t\t    - [x] Get [[Client py#get_marker()]]\n- Event managing\n\t- [x] Handler #events [[Client py#listen_for()]]\n\t- Event types [[DataClasses py#Event]]\n\t\t- [x] unread notification\n\t\t- [x] new mention\n\t\t- [ ] new post in timeline\n\t\t\t- [ ] home\n\t\t\t- [ ] account\n\t\t\t- [ ] tag\n- CLI interface #CLI\n\t- [x] Handler\n\t\t- [x] some defaults commands [[Client py#commands]]\n\t\t- [x] create new command [[Client py#add_command()]]\n- Scheduling #scheduling #loopedfunctions\n\t- [x] Handler\n\t\t- [x] One time execution [[Client py#schedule()]]\n\t\t- [x] Loop back [[Client py#looped_every()]]\n\nand more at [[Client py]].\n\n___\n# Get Started\n## Install\n-\u003e Go to [[Examples#-1 Installation \u0026 token]]\n## How it works\n\nThe package is organized around a main class : The [[Client py]]. It contain your app infos a mainloop and some decorator generators like `@schedule()` ([[Client py#scehdule()]]).\n\nWhen you defined all your functions, you can start the #mainloop ([[Client py#run()]]) and see it working (normally :) ... ).\n\nYou can just try the module with [[__main__ py#Try masthon]]\n\n## Handle the package\nAt [[Examples]] you can find examples which explain how to handle main features. To go deeper you can [[#Contact me]] or browse [[Client py]], [[Events py]], [[DataClasses py]], [[utils py]], [[Exceptions py]], [[__init__ py]] and so on.\n___\n# License\n\nThis package is under the GNU / General Public License version 3.\n___\n# Contribute\n## How to\n\nTo contribute, just contact me, give me some of your programs, so I can choose people with basic python skills. or more.\n\n## Contact me\n\n| Platform         | Link                               | Pseudo / ID                        |\n| ---------------- | ---------------------------------- | ---------------------------------- |\n| *Mastodon*       | https://mastodon.social/@gator3000 | `@gator3000`                       |\n| *Mail*           |                                    | org.literie.gator@h3110.aleeas.com |\n| *Discord*        | https://discord.com                | `_gator3000`                       |\n| *Discord server* | https://discord.gg/2CVuXXTUVr      | `.gg/2CVuXXTUVr`                   |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgator3000%2Fmasthon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgator3000%2Fmasthon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgator3000%2Fmasthon/lists"}