{"id":13825935,"url":"https://github.com/MrMKN/PyLeaves","last_synced_at":"2025-07-08T22:32:52.172Z","repository":{"id":65542127,"uuid":"592585666","full_name":"MrMKN/PyLeaves","owner":"MrMKN","description":"🌿 python package for tools of pyrogram ","archived":false,"fork":false,"pushed_at":"2023-02-21T08:22:41.000Z","size":63,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-19T07:53:25.467Z","etag":null,"topics":["pyleaves","pyrogram","python"],"latest_commit_sha":null,"homepage":"","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/MrMKN.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}},"created_at":"2023-01-24T03:39:44.000Z","updated_at":"2024-10-15T22:06:19.000Z","dependencies_parsed_at":"2024-03-08T06:46:42.659Z","dependency_job_id":null,"html_url":"https://github.com/MrMKN/PyLeaves","commit_stats":{"total_commits":55,"total_committers":1,"mean_commits":55.0,"dds":0.0,"last_synced_commit":"fef0085edc16f6eb1cda150251be432aca649647"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrMKN%2FPyLeaves","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrMKN%2FPyLeaves/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrMKN%2FPyLeaves/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrMKN%2FPyLeaves/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrMKN","download_url":"https://codeload.github.com/MrMKN/PyLeaves/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225470631,"owners_count":17479366,"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":["pyleaves","pyrogram","python"],"created_at":"2024-08-04T09:01:29.455Z","updated_at":"2024-11-20T04:31:02.556Z","avatar_url":"https://github.com/MrMKN.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# PyLeaves\n\n🌿 telegram bot's python pypi package \u0026 tools for pyrogram\n\n### ⚠️ Must install \n\nThese requirements must be installed in your repo\n\n* pyrogram\n* tgcrypto \n\n### Current featur ⚡️\n\nprogress_for_pyrogram():\n\nThis is async function of ( Download | Upload ) progress bar with simple way to use\n\n### Example\n\n``` python\n\n# import time.time and other \nfrom pyleaves import Leaves # must import \n\nPROGRESS_BAR = \"\"\"\npercentage: {percentage} | {current}\ntotal completed: {total}%\ncurrent speed: {speed}/s\nestimate time: {est_time} \"\"\"\n\nButton = InlineKeyboardMarkup([[InlineKeyboardButton('text', callback_data=\"data\")]])\n\nstart_time = time()\neditable_text = await app.send_message(chat_id, \"download started\")\n\n# download media \nawait app.download_media(\n    message,\n    progress=Leaves.progress_for_pyrogram,\n    progress_args=(\n        \"try to download......\", # 1. must be a string \n        editable_text, # 2. editable message \n        start_time # 3. time.time() import time.time  \u0026 time()\n        PROGRESS_BAR, # 4. progress template check more description \n        '▣', # 5. string character for identifie the finished percentage \n        '▢', # 6. string character for identifie the unfinished percentage\n        Button, # 7. pyrogram replay_markup \n        )\n    )       \n\n# ⚠️ don't use  parameters keyword \u0026 must keep this Oder \n\n```\n\n\n### formats of template\n\n* `{current}` = process completed file size\n* `{total}` = total file size \n* `{percentage}` = total completed percentage \n* `{speed}` = current speed in byte/second \n* `{est_time}` = estimated time \n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMrMKN%2FPyLeaves","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMrMKN%2FPyLeaves","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMrMKN%2FPyLeaves/lists"}