Saravanan666/pypi-org huggingface dataset:
Package: tgapp-turbopress
About TGApp-turbopressturbopress is a Pluggable Minimalistic Blog for TurboGears2.
It implements articles with Attachments and Tags support.
Uses CKEditor for content editing.
It support both sqla and ming orm.Installingtgapp-turbopress can be installed both from pypi or from bitbucket:pip install tgapp-turbopressshould just work for most of the usersPlugging turbopressIn your applicationconfig/app_cfg.pyimportplug:from tgext.pluggable import plugThen at theend of the filecall plug with turbopress:plug(base_config, 'turbopress')Rungearbox setup-app development.iniagain to create
the tables related to turbopress and start the application.
You will be able to access the blog section athttp://localhost:8080/press. Management gui
will be available when logged with an user that
has the theturbopressPermission.Multiple Blogs SupportBy default turbopress will work with only one blog, but it supports
a preliminary multiple blogs implementation. Search and TagCloud will
be shared by all the blogs, but it is possible to filter the articles
of only one blog and manage only its articles.To create a blog access/press/blogsand create a new one,
you will then be able to access the subblog and manage it by accessing/press/blognameExposed Partialsturbopress exposed a bunch of partials which can be used
to render pieces of the blogging system anywhere in your
application:turbopress.partials:articles-> Renders the list of articlesturbopress.partials:article_preview-> Renders the preview of an articleturbopress.partials:tagcloud-> Renders the blog tagcloud sectionturbopress.partials:search-> Renders the blog search sectionturbopress.partials.excerpts-> Renders excerpts of a list of articlesturbopress.partials.excerpt-> Renders the excerpt of an articleAvailable Hooksturbopress exposes some hooks and options to configure its
aspects.Options that can be passed to theplugcall:form-> Full python path of the form class to use for the Article form. By defaultturbopress.lib.forms.ArticleFormis used.The hooks that can be used with TurboGears2register_hookare:turbopress.before_create_article(article, values)-> Runs before the creation of an articleturbopress.after_create_article(article, values)-> Runs after the creation of an article, makes possible to set additional data for newly created articlesturbopress.before_edit_article(article, values)-> Runs before displaying the edit article form, makes possible to load additional form valuesturbopress.before_save_article(article, values)-> Runs before saving the article after it got edited, makes possible to update additional data for the article.
Package: tgapp-youtubevideo
About youtubevideoyoutubevideo is a Pluggable application for TurboGears2.Installingyoutubevideo can be installed both from pypi or from bitbucket:easy_install youtubevideoshould just work for most of the usersPlugging youtubevideoIn your applicationconfig/app_cfg.pyimportplug:from tgext.pluggable import plugThen at theend of the filecall plug with registration:plug(base_config, 'youtubevideo', user='youtubeuser')You will be able to access the registration process athttp://localhost:8080/youtubevideo.Available Hooksyoutubevideo makes available a some hooks which will be
called during some actions to alter the default
behavior of the appplications:Exposed Partialsyoutubevideo exposes a bunch of partials which can be used
to render pieces of the blogging system anywhere in your
application:Exposed TemplatesThe templates used by registration and that can be replaced withtgext.pluggable.replace_templateare:
Package: tg-archive
tg-archiveis a tool for exporting Telegram group chats into static websites, preserving chat history like mailing list archives.PreviewThe@fossunitedTelegram group archive.How it workstg-archive uses theTelethonTelegram API client to periodically sync messages from a group to a local SQLite database (file), downloading only new messages since the last sync. It then generates a static archive website of messages to be published anywhere.FeaturesPeriodically sync Telegram group messages to a local DB.Download user avatars locally.Download and embed media (files, documents, photos).Renders poll results.Use emoji alternatives in place of stickers.Single file Jinja HTML template for generating the static site.Year / Month / Day indexes with deep linking across pages."In reply to" on replies with links to parent messages across pages.RSS / Atom feed of recent messages.InstallGetTelegram API credentials. Normal user account API and not the Bot API.If this page produces an alert stating only "ERROR", disconnect from any proxy/vpn and try again in a different browser.Install withpip3 install tg-archive(tested with Python 3.8.6).Usagetg-archive --new --path=mysite(creates a new site.cdinto mysite and editconfig.yaml).tg-archive --sync(syncs data intodata.sqlite).
Note: First time connection will prompt for your phone number + a Telegram auth code sent to the app. On successful auth, asession.sessionfile is created. DO NOT SHARE this session file publicly as it contains the API autorization for your account.tg-archive --build(builds the static site into thesitedirectory, which can be published)CustomizationEdit the generatedtemplate.htmland static assets in the./staticdirectory to customize the site.NoteThe sync can be stopped (Ctrl+C) any time to be resumed later.Setup a cron job to periodically sync messages and re-publish the archive.Downloading large media files and long message history from large groups continuously may run into Telegram API's rate limits. Watch the debug output.Licensed under the MIT license.
Package: tgauth
TgAuth [ Telegram Authentication ]What is Telegram ?=========================================================================Telegram is a messaging app with a focus on speed and security, it’s super-fast, simple and free. You can use Telegram on all your devices at the same time — your messages sync seamlessly across any number of your phones, tablets or computers.click this link for read more about Telegram. https://telegram.org/faq#q-what-is-telegram-what-do-i-do-hereWhat is Tgauth ?============================================================================Tgauth is a package for authentication and authorization with Telegram Messenger. its provide the Token Based Authentication.Dependencies============================================================================python requests moduleCreate the Bot in telegram [ username and access token is needed ]Dependency Package Installation============================================================================pip install requestsDemo Project============================================================================Click this link : https://tgauth.herokuapp.com/Installation============================================================================From Pypi.pip install tgautheasy_install tgauthFrom Github :clone tgauth from githib :  https://github.com/renjith-tring/tgauthHow It Works ?============================================================================Step by Step workflowUser click the Login With Telegram Button or http:// <site name> /tgauth/ ( eg: http://localhost:8000/tgauth/ )Redirect to User Web version Telegram Account. ( http://www.awesomescreenshot.com/image/1064358/5a5e0e053c278d1cb88392460f75e7f3 )Click the start Button in Telegram (http://www.awesomescreenshot.com/image/1064361/2a3c3549174ab6c717d6e2d67e4f89ff)4 . Click the link , it will redirect to the Server and ask for the Enter the OTP password(             http://www.awesomescreenshot.com/image/1064371/2954a708f030bfbc3b620f7cb0bb1d84http://www.awesomescreenshot.com/image/1064373/a18a22e1a24cfad67b96f52df75d2298)5. if user enter valid OTP it will redirect to the success page (http://www.awesomescreenshot.com/image/1064376/1a3a43ccbd877c6be498702ebae6c58d)Configuration============================================================================Step 1 :Template settings:Download the tglogin.html from github : https://github.com/renjith-tring/tgauth/blob/master/tgauth/templates/tglogin.htmlSettings.pyTGAUTH_TOKEN = "*****************************************************" // token for your botTGAUTH_BOT_USERNAME = "********************************" // username for your botTG_AUTH_SITE_URL = "http://127.0.0.1:8000/" // site url like www.example.comTG_SUCCESS_URL = “ ” // redirect url after authentication , default it will display the dummy page with username after successful authentication5 . INSTALLED_APPS = ('tgauth',)Url.pyfrom django.conf.urls import patterns, include, urlfrom django.views.generic import TemplateViewfrom django.contrib import adminadmin.autodiscover()urlpatterns = patterns('',url(r'^', include('tgauth.urls')))Step 2 :python manage.py syncdb/migrate
Package: tgbotplug
tgbotplug is meant to be an easy-to-extend telegram bot built aroundtwx.botapi.Using tgbotplug, after choosing/developing your plugins, is as simple
as:importtgbottgbot.TGBot('YOUR_BOT_TOKEN',plugins=[Plugin1(),...,PluginN(),],).run()OverviewDocumentationVirtualLife ExamplesDocumentationPlugins should inherittgbot.pluginbase.TGPluginBaseand implementlist_commands()(and the methods mapped in its result).Documentation is a bit scarse (== None) at the moment so please focus
on theplugin
examplesand theVirtualLife Examplesfor now!VirtualLife ExamplesPriberamBot- uses
webhooks, inline queries, packaged for HerokuButtieBot- uses
webhooks, sends photos, packaged for OpenShiftEuromillionsBot-
uses webhooks, inline queries, packaged for OpenShiftPushItBot- uses
webhooks, extends tgbotplug Bottle app for extra routes, packaged for
OpenShiftIndieShuffleBot- uses
webhooks, sends audio, packaged for OpenShift
Package: tg-botting
TG-Bottingtg_botting is a package for building async TG bots.It is in development so it can be buggy or not implement all latest features of TG API.That is also why it does not have full documentation atm.Partial docs:RussianorEnglish.For any questions, suggestions or reports, use eitherTelegram chatorGitHub Issues.tg_botting - Р±РёР±Р»РёРѕС‚РµРєР° РґР»СЏ СЃРѕР·РґР°РЅРёСЏ Р°СЃРёРЅС…СЂРѕРЅРЅС‹С… Р±РѕС‚РѕРІ РґР»СЏ TG.РћРЅР° РІСЃРµ РµС‰Рµ РІ СЂР°Р·СЂР°Р±РѕС‚РєРµ, С‚Р°Рє С‡С‚Рѕ РІ РЅРµРєРѕС‚РѕСЂС‹С… РјРµСЃС‚Р°С… РјРѕР¶РµС‚ СЃРѕРґРµСЂР¶Р°С‚СЊ Р±Р°РіРё, РёР»Рё Р¶Рµ РЅРµ РїРѕР»РЅРѕСЃС‚СЊСЋ СЂРµР°Р»РёР·РѕРІС‹РІР°С‚СЊ РІСЃРµ РїРѕСЃР»РµРґРЅРёРµ РІРѕР·РјРѕР¶РЅРѕСЃС‚Рё TG API.РџРѕ С‚РѕР№ Р¶Рµ РїСЂРёС‡РёРЅРµ Сѓ РЅРµРµ РЅР° РґР°РЅРЅС‹Р№ РјРѕРјРµРЅС‚ РјРѕР¶РµС‚ РЅРµ Р±С‹С‚СЊ РёСЃС‡РµСЂРїС‹РІР°СЋС‰РµР№ РґРѕРєСѓРјРµРЅС‚Р°С†РёРё.Р§Р°СЃС‚РёС‡РЅР°СЏ РґРѕРєСѓРјРµРЅС‚Р°С†РёСЏ:РќР° СЂСѓСЃСЃРєРѕРјРёР»РёРќР° Р°РЅРіР»РёР№СЃРєРѕРј.РЎРѕ РІСЃРµРјРё РІРѕРїСЂРѕСЃР°РјРё, РїСЂРµРґР»РѕР¶РµРЅРёСЏРјРё Рё РїСЂРѕР±Р»РµРјР°РјРё РјРѕР¶РµС‚Рµ РѕР±СЂР°С‰Р°С‚СЊСЃСЏ Р»РёР±Рѕ РІР§Р°С‚ Telegram, Р»РёР±Рѕ РІР Р°Р·РґРµР» Issues РЅР° GitHub.
Package: tgbox-cli
ACommandLineInterface to the TGBOXThis is aCLIimplementation of theTGBOX— an encrypted cloud storage built around theTelegram.InstallationTo install theTGBOX-CLIyou will need to haveat leastPython 3.8.Windows builds (.EXE)You can use already created executable builds if you're on Windows.SeeReleases GitHub pageor navigate to theofficial TGBOX dev.channelBuild the TGBOX-CLITo make all features work, you will also need theFFmpeginstalled in your system (it shouldbe also accessible by the simpleffmpegcommand from your Terminal, in other words: inPATH).Install with PIPYou can install lateststablerelease of thetgbox-clifromPyPI:# Drop [fast] to obtain *slow*, pure-Python buildpipinstall-Utgbox-cli[fast]Clone & InstallAlternatively, you can clone this repository and build from the source. This may give you more control over the code:python-mvenvtgbox-cli-envcdtgbox-cli-env&&.bin/activate

gitclonehttps://github.com/NotStatilko/tgbox-cli
pipinstall./tgbox-cli[fast]PyInstallerIf you want to make your own .EXE buildwith FFmpeg, youwill needto downloadit and place inside thetgbox/otherdirectory (on Windows only). See this:python-mvenvtgbox-cli-envcdtgbox-cli-env&&.bin/activate

pipinstallpyinstaller

gitclonehttps://github.com/NonProjects/tgboxcdtgbox/tgbox/other# Make sure to place here ffmpeg.exe(after you dropped theffmpeg.exeto thetgbox/other):cd../../..# Move backpipinstall./tgbox[fast]gitclonehttps://github.com/NotStatilko/tgbox-cli
pipinstall./tgbox-cli[fast]cdtgbox-cli/pyinstaller
pyinstallertgbox_cli.spec# Run the executable and show infodist/tgbox-cli.execli-infoFeel free to remove thetgbox-cli-envfolder after work was done.UsageThe TGBOX-CLI is a typical Command-Line application. After install, it can be ran as follows:tgbox-cliThis should output you a list ofcommands. Thehelpcommand will give you a full course overTGBOX-CLI.Use it (as well as--helpoptionon everycommand) if you don't know anything about this application:tgbox-clihelpBug reportsFeel free to report some problems (i believe there can be many) on theGitHub Issue tab. Any encountered error should be written to the logfile. Use thelogfile-opencommand andattachits content to the bug report.Thanks.
Package: tgcf
tgcfThe ultimate tool to automate custom telegram message forwarding.Live-syncer, Auto-poster, backup-bot, cloner, chat-forwarder, duplicator, ...Call it whatever you like! tgcf can fulfill your custom needs.VideosThe following videos (english) explain everything in great detail.Feature OverviewRunning on Windows/Mac/LinuxRunning on AndroidDeploy to Digital Ocean DropletSupported environmentsLinuxMacWindows (Running Ubuntu on top of WSL-2)Android (Using Termux app)Any Linux VPSInstall and RunIf you want to use tgcf for free, then run on your own desktop or mobile computer.Make sure you are on a supported environment and have python:3.10 or above, installed.Create a directory and move into it.mkdirmy-tgcfcdmy-tgcfCreate a python virtual environment and activate it.python3-mvenv.venvsource.venv/bin/activateInstall tgcf usingpippipinstalltgcf
tgcf--versionSet the password for accessing web interface.
The password is to be set in the.envfile.echo"PASSWORD=hocus pocus qwerty utopia">>.envSet your own password, instead of whats given above.Security advice:Please make sure the password has more than 16 characters.You can save your password in any password manager (may be of browser)
to autofill password everytime.Start the web-server.tgcf-webTo run tgcf without the web-ui read abouttgcf cli.If you are planning to use watermarking and ocr features within tgcf,
you need to installffmpegandtesseract-ocrlibraries in you system.Read more.Deploy to CloudClick onthis linkand getfree 200$on Digital Ocean.NOTEYou will get nothing if you directly sign up from Digital Ocean Home Page.Use the linkabove, orclick on the big fat buttonabove to get free 200$.Deploying to a cloud server is an easier alternative if you cannot install
on your own machine.
Cloud servers are very reliable and great for runningtgcfin live mode
for a long time.Here are some guides for deployment to different cloud providers.HerokuDigital OceanGitpodPython AnywhereGoogle Cloud RunGetting HelpFirst of allread the wikiandwatch the videosto get started.Type your question in GitHub's Search bar on the top left of this page,
and click "In this repository".
Go through the issues, discussions and wiki pages that appear in the result.
Try re-wording your query a few times before you give up.If your question does not already exist,
feel free to ask your questions in theDiscussion forum.
Please avoid duplicates.For reporting bugs or requesting a new feature please use theissue trackerof the repo.ContributingPRs are most welcome! Read thecontributing guidelinesto get started.If you are not a developer, you may also contribute financially to
incentivise the development of any custom feature you need.
Package: tgcli
tgclitgcliis a Python cli app for Telegram.BuildCoverageMasterDevelopmentInstallingInstall viapip:pipinstalltgcliRationaleA similar project, built on Python, was created by@vysheng, but it has not been updated since 2016 and considered abandoned. This toolis not a forkof the mentioned project, it is built from ground up.ExampleFor now, the use case is pretty simple. To send a message:tgclibot--token"BotToken"send--receiver"UserID"message"Your message"You don't need to expose your token as flag. If you setTELEGRAM_BOT_TOKENenvironment variable, you do not need to set--tokenflag. Just set it before usingtgcli:exportTELEGRAM_BOT_TOKEN="BotToken"You can get more information by doing:tgclibotsend--helpAlso, this repository uses notification from a private bot, you can see the
example Travis configurationhere. PrivateTELEGRAM_BOT_TOKENandTELEGRAM_RECEIVERenvironment variables were set.This application serves a really small purpose for now. It might face
breaking changes in the future.DocumentationDocumentation has an intensive amount of  information about how to
usetgcli. Refer to thedocumentation.Donationstgcliis a free (as in beer and speech) software that I have
built in my leisure time and been maintaining it. If you like to
use it, please consider a small donation.How do I donate?I accept donations in:MiliBitcoin (mBTC)Monero (XMR)You can donate predefined (almost$1) or custom donation by
clicking or scanning below.Predefined (Almost$1)How Much You WishMiliBitcoin (mBTC)Monero (XMR)
Package: tgclient
tgclientTelegram Api ClientGetting StartedInstallpipinstalltgclient

or

gitclonehttps://github.com/negative23/tgclient.gitcdtgclientpythonsetup.pyinstallgetupdates examplefromtgclientimport*bot=TelegramBot("245100736:AAGpgrDLt1YNwsQxxxxxxxxxxxxxxxxxxxx")@bot.message("text")deftext(message):print(message)# {'message_id': 6577, 'from': {'id': 68747297, ... ...bot.run()command handlerfromtgclientimport*bot=TelegramBot("245100736:AAGpgrDLt1YNwsQxxxxxxxxxxxxxxxxxxxx")@bot.command(r'^(/echo) (.*)')deftext(message,args):# args[2] two argument of commandbot.sendMessage(message['chat']['id'],args[1])bot.run()
Package: tgclients
TextGrid Python clientsThe TextGrid Python clients provide access to theTextGrid RepositoryservicesAPI.Installation and UsagepipinstalltgclientsCheck theusage docsand the
Jupyter notebook examples to get started.DevelopmentLook into thedevelopment docs.LicenseThis project aims to beREUSE compliant.
Original parts are licensed under AGPL-3.0-or-later.
Derivative code is licensed under the respective license of the original.
Documentation, configuration and generated code files are licensed under CC0-1.0.Badges
Package: tg-crawler
💾 Daemon to download/upload telegram files.Installing💾 Tg-Crawler is tested on Ubuntu 18.04 and Windows 10 withPython >= 3.10, <= 3.12.pipinstalltg-crawlerIf you plan to code and make changes, clone and install it locally.gitclonehttps://github.com/SantiiRepair/tg-crawler.git
pipinstall-e.DownloadingProgress Bar 👽current: intThe current download/upload amount bytes in integer.total: intThe total download/upload amount bytes in integer.char: str, OptionalThe character in the progress bar.desc: str, OptionalPrefix at the beginning of the progress bar.ncols: int, OptionalThe width of the entire output message. If specified, dynamically resizes the progress bar to stay within this bound. If unspecified, attempts to use environment width. The fallback is a meter width of 10 and no limit for the counter and statistics. [default: 75]unit: Union[str, list], OptionalString that will be used to define the unit of each iteration. [default: it]unit_scale: bool, OptionalIf True, the number of iterations will be reduced/scaled automatically and a metric prefix following the International System of Units standard will be added (kilo, mega, etc.) [default: False]unit_divisor: int, Optional[default: 1000], ignored unless unit_scale is True.color: str, OptionalBar color (e.g. "green") [default: cyan]available colors.TODO 📝Add support for uploading files to Telegram from the command line 🚀❗ AtentionThis code uses Telegram MTProto, so downloading files in a restricted group or channel is available.
Package: tgdsmells
tgdsmellsHelper classes for the Team Group Data Sharing Medium & Electronic Local Link SystemLearn more aboutTGDSMELLS.Upgrading from TMCPUpgrading from TMCP to TGDSMELLS is simple. All you need to do is replacetmcpwithtgdsmellsin your requirements.txt, then replacefrom tmcp importwithfrom tgdsmells import.How to useStart by creating an instance of the TGDSMELLSHandler.
You should pass in your agent.fromtgdsmellsimportTGDSMELLSHandlerclassMyBot(BaseAgent):definitialize_agent(self):self.tgdsmells_handler=TGDSMELLSHandler(self)Usage is also very straightforward:fromtgdsmellsimportTGDSMELLSMessage,ActionType...defget_output(self,packet:GameTickPacket)->SimpleControllerState:# Receive and parse all new matchcomms messages into TGDSMELLSMessage objects.new_messages:List[TGDSMELLSMessage]=self.tgdsmells_handler.recv()# Handle TGDSMELLSMessages.formessageinnew_messages:ifmessage.action_type==ActionType.BALL:print(message.time)...# You can send messages like this.self.tgdsmells_handler.send_boost_action(pad_index)# Or you can create them and send them more directly:my_message=TGDSMELLSMessage.ball_action(self.team,self.index,estimated_time_of_arrival)self.tgdsmells_handler.send(my_message)The handler will throttle your messages if you send them too quickly.
If you want to make sure all of your messages are sent, you can create a backlog like this:# During initialization, create a backlog list.self.backlog=[]...# Sending returns false if a message was not sent.ifnotself.tgdsmells_handler.send(message):self.backlog.append(message)...# In your main loop, check whether you have any messages in the backlog.ifself.backlog:backlog_message=self.backlog.pop(0)# Try sending the message again. If it doesn't work, return it to the backlog.ifnotself.tgdsmells_handler.send(backlog_message):self.backlog.insert(0,backlog_message)Avoiding major breaking changesThis package is regularly updated according to the latest TGDSMELLS specification.
To avoid your bot breaking during tournaments due to major version updates, you can use a virtual_environment and pin a specific version of this package.In your requirements.txt:tgdsmells==1.*In your bot.cfg:[Locations]use_virtual_environment=truerequirements_file=./requirements.txtIf you don't want to do this, you can also disable the handler if a different version of the package is used.
This will not send or receive any messages, but will pretend as if it was sending all and receiving none.fromtgdsmellsimportTGDSMELLS_VERSIONifTGDSMELLS_VERSION[0]!=1:my_handler.disable()
Package: tgEasy
tgEasyfromtgEasyimporttgClientfrompyrogramimportClientapp=tgClient(Client("my_account"))@app.command("start",group_only=True)asyncdefstart(client,message):awaitmessage.reply_text(f"Hello{message.from_user.mention}")app.run()FeatursEasy: You can install tgEasy with pip and start building your applications right away.Fast: With thePyrogram, tgEasy's speed is enhancedType-hinted: Types and methods are all type-hinted, enabling excellent editor support.Asynchronous: With the Asynchronous, tgEasy can handle Multiple Requests at a time.Documented: All of the available methods, types and functions are well documented.Comprehensive: With the help ofPyrogram, Execute any advanced action an official client is able to do, and even more.RequirementsPython 3.7 or higher.ATelegram API key.Installingpip3installtgEasyResourcesThe docs contain lots of resources to help you get started with tgEasy:https://github.com/jayantkageri/tgEasy/wiki.Seeking extra help? Come join and ask our community:https://t.me/tgEasyNews.For other kind of inquiries, you can send amessageor ane-mailCopyright and LicencetgEasy is Licenced under the Terms and Conditions of OSI Approved GNU Lesser General Public License v3 or later (LGPLv3+).Copyright 2021 Jayant Hegde Kagerihttps://github.com/jayantkageri.This Projects Codes may contain snippets or codes ofPyrogram.Pyrogram - Telegram MTProto API Client Library for Python. Copyright (C) 2017-2020 Danhttps://github.com/delivranceThis Project usesPyromodfor making it more convenient.Pyromod - A monkeypatcher add-on for PyrogramCopyright (C) 2020 - 2021 Cezarhttps://github.com/usernein