{"id":25629600,"url":"https://github.com/alemonmk/pytgasu","last_synced_at":"2026-04-07T11:31:44.532Z","repository":{"id":57456564,"uuid":"89812713","full_name":"alemonmk/pytgasu","owner":"alemonmk","description":"Automatic Telegram sticker uploader in Python3","archived":false,"fork":false,"pushed_at":"2021-04-25T13:55:12.000Z","size":122,"stargazers_count":14,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-15T05:48:30.408Z","etag":null,"topics":["stickers","telegram"],"latest_commit_sha":null,"homepage":null,"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/alemonmk.png","metadata":{"files":{"readme":"README.rst","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":"2017-04-29T21:02:11.000Z","updated_at":"2023-06-10T05:57:09.000Z","dependencies_parsed_at":"2022-09-13T14:24:48.343Z","dependency_job_id":null,"html_url":"https://github.com/alemonmk/pytgasu","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/alemonmk/pytgasu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemonmk%2Fpytgasu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemonmk%2Fpytgasu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemonmk%2Fpytgasu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemonmk%2Fpytgasu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alemonmk","download_url":"https://codeload.github.com/alemonmk/pytgasu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemonmk%2Fpytgasu/sbom","scorecard":{"id":179238,"data":{"date":"2025-08-11","repo":{"name":"github.com/alemonmk/pytgasu","commit":"e46fb0ada8ac39db52a0c8e54a9d75136d7f74d0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-16T18:29:20.221Z","repository_id":57456564,"created_at":"2025-08-16T18:29:20.222Z","updated_at":"2025-08-16T18:29:20.222Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31511573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["stickers","telegram"],"created_at":"2025-02-22T19:17:28.392Z","updated_at":"2026-04-07T11:31:44.510Z","avatar_url":"https://github.com/alemonmk.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"=======\nPyTgASU\n=======\n\nTelegram sticker sets creation automated (partially).\n\nFeatures\n--------\nPyTgASU frees you from selecting files and emojis repeatedly when creating sticker sets on Telegram.\n\nBetter yet, it makes sticker sets kind of \"distributable\" and \"installable\".\n\nMotivation\n----------\nThere was a `Telegram Stickers Uploader \u003chttp://telegramsu.lostberry.com/\u003e`_ (link dead, don't bother), but:\n\n1. It has limited choices of emojis\n    - Well, 250. Really? This is not enough. UTR #51 4.0 defined 910 code points with Emoji_Presentation=Yes.\n\n2. It does not work with current Telegram Desktop\n    - It does send commands through it, but it cannot upload anything. At least not for me.\n\nAnd now ``pytgasu`` comes to your rescue.\n\nInstallation\n------------\n\nRequirement\n+++++++++++\n- Python \u003e= 3.6\n\nDependency\n++++++++++\n- `Telethon \u003chttps://github.com/LonamiWebs/Telethon\u003e`_\n- `Click \u003chttp://github.com/mitsuhiko/click\u003e`_\n- `Pillow \u003chttps://python-pillow.org/\u003e`_\n\nUse ``pip`` to install:\n\n.. code-block:: bash\n\n    $ pip install pytgasu\n\nor\n\n.. code-block:: bash\n\n   $ git clone https://github.com/alemonmk/pytgasu.git\n   $ cd pytgasu\n   $ pip install .\n\nUsage\n-----\n\nPrepare set\n+++++++++++\n``pytgasu`` needs to work with set definition file for each sticker set you want to create.\n\nTelegram also has limitations on sticker images.\n\nYou can take care of all above with this command:\n\n.. code-block:: bash\n\n    $ pytgasu prepare \u003cdir\u003e...\n\nAt first launch it will ask you paths to some tools (namely pngquant and waifu2x-caffe), if you prefer not using any of them you can just leave it empty. This saves a yaml-formatted configuration file at ``~/.pytgasu/asu.cfg``.\n\nYou need to provide a descriptive name of the set, and a short name that enables you to share it with ``https://t.me/addsticker/\u003cshort_name\u003e``.\n\nFinally open the generated ``.def`` file(s) with text editor of your choice to assign emojis (and **only** emojis, preferably copied from Telegram).\n\nUpload sticker sets\n+++++++++++++++++++\nOnce you are done editing the ``.def`` file(s), let ``pytgasu`` do the heavy lifting.\n\n.. code-block:: bash\n\n    $ pytgasu upload [-s] (\u003cdir\u003e|\u003cpath_to.def\u003e)...\n\nBy specifying ``-s``, you will be automatically subscribed to the set once it's uploaded.\n\nYou have to log in to Telegram at the first run. A session file will be created at ``~/.pytgasu/asu.session``.\n\nLog out of Telegram\n+++++++++++++++++++\nIf you have no more business with ``pytgasu``, you may want to log it out from Telegram.\n\n.. code-block:: bash\n\n    $ pytgasu logout\n\nThis terminates your session to Telegram, deletes the stored session file and its folder, saving you few clicks in other Telegram client and file manager.\n\nLimitions \u0026 TODOs\n-----------------\n1. No GUI.\n    - Well...I hope you are crazy enough to make one for me ;)\n\nContributing\n------------\nYou may request new features, report bugs or leave suggestions through `GitHub issue \u003chttps://github.com/alemonmk/pytgasu/issues\u003e`_, or just code and fire a `pull request \u003chttps://github.com/alemonmk/pytgasu/pulls\u003e`_.\n\nYou may contact me via e-mail if you want to stay private or just don't bother with GitHub.\n\nStuff in need\n+++++++++++++\n- Tests. Preferably something ``nose`` uses.\n- Better documents. There's not much to document though ...\n- Feature requests. Keep it simple, don't complicate this tool.\n- Debug. I'm not that exhaustive and may leave edge cases here and there.\n\nAuthor\n------\n\\(c) 2017 Lemon Lam \u003c'%s@%s' % ('almk', 'rmntn.net')\u003e\n\nLicense\n-------\nLicensed under `GNU General Public License Version 3 \u003chttps://www.gnu.org/licenses/gpl-3.0.en.html\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falemonmk%2Fpytgasu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falemonmk%2Fpytgasu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falemonmk%2Fpytgasu/lists"}