Saravanan666/pypi-org huggingface dataset:
Package: pytgauth
SupportVerifyTelegram Authvia website or Bot.Installation.pip install pytgauth --upgradeSample data from Telegram.{
    "id": XXXXXXXXX,
    "first_name": "XXX",
    "last_name": "XXX",
    "username": "XXXXX",
    "photo_url": "https://t.meXXXXXX.jpg",
    "auth_date": XXXXXXXXXX,
    "hash": "XXXXXXXXXXXXXXXXXXXXXX....."
}from pytgauth import verify
bot_token = 'xxx:xxxx'
data = {...}

if verify(data, bot_token):
    print('Hey ! You are verified.')
else:
    print('Upps, the data is not verified')Watch the Example.py for more information.LicensePyTgAuthis licensed underGNU Affero General Public License v3or later.The GNU General Public License (GNU GPL or simply GPL) is a series of widely-used free software licenses that guarantee end users the freedom to run, study, share, and modify the software.[8] The licenses were originally written by Richard Stallman, founder of the Free Software Foundation (FSF), for the GNU Project, and grant the recipients of a computer program the rights of the Free Software Definition.[9] The GPL series are all copyleft licenses, which means that any derivative work must be distributed under the same or equivalent license terms. This is in distinction to permissive software licenses, of which the BSD licenses and the MIT License are widely used, less restrictive examples. GPL was the first copyleft license for general use.
Package: py-tgb
Temporal Graph Benchmark for Machine Learning on Temporal Graphs(NeurIPS 2023 Datasets and Benchmarks Track)Overview of the Temporal Graph Benchmark (TGB) pipeline:TGB includes large-scale and realistic datasets from five different domains with both dynamic link prediction and node property prediction tasks.TGB automatically downloads datasets and processes them intonumpy,PyTorchandPyG compatible TemporalDataformats.Novel TG models can be easily evaluated on TGB datasets via reproducible and realistic evaluation protocols.TGB provides public and online leaderboards to track recent developments in temporal graph learning domain.To submit toTGB leaderboard, please fill in thisgoogle formSee all version differences and update noteshereAnnoucementsExcited to annouce that TGB has been accepted to NeurIPS 2023 Datasets and Benchmarks Track!Thanks to everyone for your help in improving TGB! we will continue to improve TGB based on your feedback and suggestions.Please update to version0.9.2version0.9.2Update the fix fortgbl-flightwhere now the unix timestamps are provided directly in the dataset. If you had issues withtgbl-flight, please removeTGB/tgb/datasets/tgbl_flightand redownload the dataset for a clean installversion0.9.1Fixed an issue fortgbl-flightwhere the timestamp conversion is incorrect due to time zone differences. If you had issues withtgbl-flightbefore, please update your package.version0.9.0Added the largetgbn-tokendataset with 72 million edges to thenodeproppreddataset.Fixed errors intgbl-coinandtgbl-flightwhere a small set of edges are not sorted chronologically. Please update your dataset version for them to version 2 (will be promted in terminal).Pip InstallYou can install TGB viapip.Requires python >= 3.9pip install py-tgbLinks and DatasetsThe project website can be foundhere.The API documentations can be foundhere.all dataset download links can be found atinfo.pyTGB dataloader will also automatically download the dataset as well as the negative samples for the link property prediction datasets.if website is unaccessible, please usethis linkinstead.Running Example MethodsFor the dynamic link property prediction task, see theexamples/linkproppredfolder for example scripts to run TGN, DyRep and EdgeBank on TGB datasets.For the dynamic node property prediction task, see theexamples/nodeproppredfolder for example scripts to run TGN, DyRep and EdgeBank on TGB datasets.For all other baselines, please see theTGB_Baselinesrepo.AcknowledgmentsWe thank theOGBteam for their support throughout this project and sharing their website code for the construction ofTGB website.CitationIf code or data from this repo is useful for your project, please consider citing our paper:@article{huang2023temporal,
  title={Temporal graph benchmark for machine learning on temporal graphs},
  author={Huang, Shenyang and Poursafaei, Farimah and Danovitch, Jacob and Fey, Matthias and Hu, Weihua and Rossi, Emanuele and Leskovec, Jure and Bronstein, Michael and Rabusseau, Guillaume and Rabbany, Reihaneh},
  journal={Advances in Neural Information Processing Systems},
  year={2023}
}
Package: py-tgcalls
A simple and elegant client that allows you to make group voice calls quickly and easily.Examples•Documentation•PyPi•Channel•ChatPyTgCallsThis project allows making Telegram group call using MtProto and WebRTC, this is possible thanks to the power ofNTgCallslibrary and@evgeny-nadymovExample UsagefrompytgcallsimportPyTgCallsfrompytgcallsimportidlefrompytgcalls.typesimportMediaStream...chat_id=-1001185324811app=PyTgCalls(client)app.start()app.join_group_call(chat_id,MediaStream('http://docs.evostream.com/sample_content/assets/sintel1m720p.mp4',))idle()FeaturesPrebuilt wheels for macOS, Linux and Windows.Supporting all type of MTProto libraries: Pyrogram, Telethon and Hydrogram.Work with voice chats in channels and chats.Join as channels or chats.Mute/unmute, pause/resume, stop/play, volume control and more...RequirementsPython 3.7 or higher.An MTProto ClientATelegram API key.How to install?Here's how to install the PyTgCalls lib, the commands are given below:# With Gitpipinstallgit+https://github.com/pytgcalls/pytgcalls-U# With PyPi (Recommended)pipinstallpy-tgcalls-UKey Contributors@Laky-64(DevOps Engineer, Software Architect):Played a crucial role in developing PyTgCalls being an ex developer of pyservercall and of tgcallsjs.Automation with GitHub Actions@kuogi(Senior UI/UX designer, Documenter):As a Senior UI/UX Designer, Kuogi has significantly improved the user interface of our documentation,
making it more visually appealing and user-friendly.Played a key role in writing and structuring our documentation, ensuring that it is clear,
informative, and accessible to all users.@vrumger(Senior Node.js Developer, Software Architect):Has made important fixes and enhancements to the WebRTC component of the library,
improving its stability and performance.Main developer of TgCallsJS@alemidev(Senior Python Developer):Has made important fixes and enhancements to the async part of the libraryJunior Developers@TuriOG(Junior Python Developer):Currently working on integrating NTgCalls intoPyTgCalls, an important step
in expanding the functionality and usability of the library.Special Thanks@evgeny-nadymov:A heartfelt thank you to Evgeny Nadymov for graciously allowing us to use their code from telegram-react.
His contribution has been pivotal to the success of this project.
Package: py-tgcalls-kaizoku
A simple and elegant client that allows you to make group voice calls quickly and easily.Examples•Documentation•PyPi•Channel•ChatPyTgCallsThis project allows making Telegram group call using MtProto and WebRTC, this is possible thanks to the power of NodeJS's WebRTC library and@evgeny-nadymovWhat are the supported clients?The supported clients for now are Pyrogram and Telethon, but we accept other clients too, you can open a pull request with the editsHow to install?Here's how to install the PyTgCalls lib, the commands are given below:# With Gitpipinstallgit+https://github.com/pytgcalls/pytgcalls-U# With PyPi (Recommended)pipinstallpy-tgcalls-kaizoku-UConversion command (Video)From file to raw videoffmpeg-i{INPUT_FILE}-frawvideo-pix_fmtyuv420p-vfscale=640:-1{OUTPUT_FILE}From H264/VP8/VP9 to Audio and Videoffmpeg-i{INPUT_FILE}-fs16le-ac1-ar{BITRATE}{OUTPUT_AUDIO_FILE}-frawvideo-r{FRAMERATE}-pix_fmtyuv420p-vfscale={SCALING}:-1{OUTPUT_VIDEO_FILE}From YouTube video/live-stream to Audio and Videoffmpeg-i"$(youtube-dl-x-g"{YOUTUBE_LINK}")"-fs16le-ac1-ar{BITRATE}{OUTPUT_AUDIO_FILE}-frawvideo-r{FRAMERATE}-pix_fmtyuv420p-vfscale={SCALING}:-1{OUTPUT_VIDEO_FILE}From YouTube Live stream to VideoImportant!The max resolution allowed by Telegram is of 720p at 30 fps
Here also listed the scaling format360p = 640480p = 854720p = 1280If you have any problem with green screen or un-synchronized video, it can be one of these problems:Invalid FFMPEG commandThe video quality specified to convert is higher than the original video oneInvalid PyTgCalls video parametersIf you're using fifo, the Fifo max buffer size is too low and this cause the lag problem.Conversion commandsFrom file to raw formatffmpeg-i{INPUT_FILE}-fs16le-ac1-ar{BITRATE}{OUTPUT_FILE}From stream link to raw formatffmpeg-y-i{STREAM_LINK}-fs16le-ac1-ar{BITRATE}{OUTPUT_FILE}From YouTube video/live-stream to raw formatffmpeg-i"$(youtube-dl-x-g"{YOUTUBE_LINK}")"-fs16le-ac1-ar{BITRATE}{OUTPUT_FILE}CreditsBig thanks to@evgeny-nadymovfor allowing us to use their code fromtelegram-react, and thanks
toalemidevfor helping to rebuild this libraryThis library is based ontgcallsjsdeveloped@AndrewLaneXand pyservercall by@Laky-64
Package: pytgf
pytgf - Simple python tile based game frameworkA simple implementation of a tile engine, including a physical and graphical engine based on OpenGL.
The python package embbed the following functions:a complete event pipeline, for pure event-driven programming.multithreaded collision detection and exact resolution.rendering of the world and GUI with or without a window.OpenGL and GLSL code free. If you don't want to do advanced rendering things, you don't have to know how OpenGL works.RequirementYour GPU should support OpenGL 3.3.0 and GLSL 3.30 (unless you create custom shaders compatible with previous versions).InstallationThis package can be installed usingpip install pytgf.DependenciesThe library requires the following packages (the latest stable versions should be used):modernglpygletnumpyOptional packagesOther usefull packages:imageio (library for reading and writing a wide range of image, video, scientific, and volumetric data formats)LicenseThis library is available under theMIT license.
Package: py-tgi
Py-TGI (Py-TXI at this point xD)Py-TGI is a Python wrapper aroundText-Generation-InferenceandText-Embedding-Inferencethat enables creating and running TGI/TEI instances through the awesomedocker-pyin a similar style to Transformers API.Installationpipinstallpy-tgiPy-TGI is designed to be used in a similar way to Transformers API. We usedocker-py(instead of a dirtysubprocesssolution) so that the containers you run are linked to the main process and are stopped automatically when your code finishes or fails.UsageHere's an example of how to use it:frompy_tgiimportTGI,is_nvidia_system,is_rocm_systemllm=TGI(model="NousResearch/Llama-2-7b-hf",devices=["/dev/kfd","/dev/dri"]ifis_rocm_system()elseNone,gpus="all"ifis_nvidia_system()elseNone,)output=llm.generate(["Hi, I'm a language model","I'm fine, how are you?"])print(output)Output:[" and I'm here to help you with any questions you have. What can I help you with", "\nUser 0: I'm doing well, thanks for asking. I'm just a"]frompy_tgiimportTEI,is_nvidia_systemembed=TEI(model="BAAI/bge-large-en-v1.5",dtype="float16",pooling="mean",gpus="all"ifis_nvidia_system()elseNone,)output=embed.encode(["Hi, I'm an embedding model","I'm fine, how are you?"])print(output)Output:[array([[ 0.01058742, -0.01588806, -0.03487622, ..., -0.01613717, 0.01772875, -0.02237891]], dtype=float32), array([[ 0.02815401, -0.02892136, -0.0536355 , ...,  0.01225784, -0.00241452, -0.02836569]], dtype=float32)]That's it! Now you can write your Python scripts using the power of TGI and TEI without having to worry about the underlying Docker containers.
Package: pytgram
PyTGram is python library to create Telegram Bot based on Twisted.InstallingPrerequisites:Python 3.xYou may need to install additional packages, depending on your operating system:Debian/Ubuntu:$ sudo apt-get install python3-dev libffi-dev libssl-devRHEL/CentOS (for python 3.6):$ sudo yum install python36u-devel openssl-devel
$ sudo yum group install "Development Tools"FreeBSD:$ pkg install ca_root_nssWindows:VS Build ToolsWindows Extension for PythonYou can install pytgram using pip:$ pip install pytgramUsageWebhook setupfrompytgramimportset_webhookset_webhook('bot_token','https://example.com')If you use self-signed certificate - the pass path to it:frompytgramimportset_webhookset_webhook('bot_token','https://example.com','path/to/cert.pem')Creating a simple botimportsysfromtwisted.pythonimportlogfromtwisted.internetimportreactor,sslfromtwisted.internet.deferimportinlineCallbacksfrompytgramimportTelegramBot,MessageHandler,web_hookbot=TelegramBot('bot_token')@MessageHandler(content=['text'])@inlineCallbacksdeftext_handler(message):result=yieldbot.send_message(chat_id=message.chat.id,text=message.text[::-1])print(result)@MessageHandler(command=['start'])@inlineCallbacksdefstart_handler(message):result=yieldbot.send_message(chat_id=message.chat.id,text='Received command "start"')print(result)defmain():log.startLogging(sys.stdout)ssl_context=ssl.DefaultOpenSSLContextFactory('ssl/secret.key','ssl/cert.pem')# If want use reverse proxy, then replace listenSSL on listenTCP.reactor.listenSSL(443,web_hook(bot.token),ssl_context)reactor.run()if__name__=='__main__':main()If you want to use polling mode, you can do it like that:importsysfromtwisted.pythonimportlogfromtwisted.web.serverimportSitefromtwisted.web.resourceimportResourcefromtwisted.internetimportreactorfromtwisted.internet.deferimportinlineCallbacksfrompytgramimportTelegramBot,MessageHandler,pollingbot=TelegramBot('bot_token')@MessageHandler(content=['text'])@inlineCallbacksdeftext_handler(message):result=yieldbot.send_message(chat_id=message.chat.id,text=message.text[::-1])print(result)@MessageHandler(command=['start'])@inlineCallbacksdefstart_handler(message):result=yieldbot.send_message(chat_id=message.chat.id,text='Received command "start"')print(result)defmain():log.startLogging(sys.stdout)reactor.listenTCP(8080,Site(Resource()))polling(bot,interval=10)reactor.run()if__name__=='__main__':main()
Package: pytgvoip
pytgvoipTelegram VoIP Library for PythonCommunity|DocumentationPytgVoIPis aTelegramVoIP library written in Python and C++.It useslibtgvoip(a library used in official clients)
for voice encoding and transmission, andpybind11for simple
generation of Python extension written in C++.It is targeted to MTProto client library developers, detailed usage guide is availablehere.An example of usage withPyrogramis availablehere(pytgvoip_pyrogramin PyPI), could be used as reference.Hopefully this module support will beintegrated in Pyrogram itself, also@cher-novhas plans to integrate it intoTelethonas wellFeaturesPython callbacks for sending and receiving audio stream frames allow flexible controlPre-built Windows wheels in PyPIRequirementsPython 3.5 or higherLinux, MacOS: (use binary wheels from PyPI for Windows)libtgvoipCMake, C++11-compatible compiler, Python headersInstallingpip3 install pytgvoipInstallpytgvoip_pyrogramto use this module with Pyrogram.Encoding audio streamsStreams consumed bylibtgvoipshould be encoded in 16-bit signed PCM audio.$ffmpeg-iinput.mp3-fs16le-ac1-ar48000-acodecpcm_s16leinput.raw# encode$ffmpeg-fs16le-ac1-ar48000-acodecpcm_s16le-ioutput.rawoutput.mp3# decodeCopyright & LicenseCopyright (C) 2019bakatroubleLicensed under the terms of theGNU Lesser General Public License v3 or later (LGPLv3+)
Package: pytgvoip-pyrogram
pytgvoip_pyrogramSample usage ofPytgVoIPlibrary withPyrogramHopefullypytgvoipsupport will beintegrated in Pyrogram itself, but this repository would still be available as reference even after merge.Detailedpytgvoipusage guide is also availablehereCommunity# making outgoing callsfrompyrogramimportClientfromtgvoip_pyrogramimportVoIPFileStreamServiceapp=Client('account')app.start()service=VoIPFileStreamService(app,receive_calls=False)call=service.start_call('@bakatrouble')call.play('input.raw')call.play_on_hold(['input.raw'])call.set_output_file('output.raw')@call.on_call_endeddefcall_ended(call):app.stop()# accepting incoming callsfrompyrogramimportClientfromtgvoip_pyrogramimportVoIPFileStreamService,VoIPIncomingFileStreamCallapp=Client('account')app.start()service=VoIPFileStreamService(app)@service.on_incoming_calldefhandle_call(call:VoIPIncomingFileStreamCall):call.accept()call.play('input.raw')call.play_on_hold(['input.raw'])call.set_output_file('output.raw')# you can use `call.on_call_ended(lambda _: app.stop())` here instead@call.on_call_endeddefcall_ended(call):app.stop()More examplesRequirementsPython 3.5 or higherPytgVoIP (listed as dependency)Pyrogram (listed as dependency)Installingpip3 install pytgvoip-pyrogramEncoding audio streamsStreams consumed bylibtgvoipshould be encoded in 16-bit signed PCM audio.$ffmpeg-iinput.mp3-fs16le-ac1-ar48000-acodecpcm_s16leinput.raw# encode$ffmpeg-fs16le-ac1-ar48000-acodecpcm_s16le-ioutput.rawoutput.mp3# decodeCopyright & LicenseCopyright (C) 2019bakatroubleLicensed under the terms of theGNU Lesser General Public License v3 or later (LGPLv3+)
Package: py-tgx
Temporal Graph Analysis with TGXThis repository contains the code for the paper "Temporal Graph Analysis with TGX" (WSDM 2024, Demo Track).TGX overview:TGX supports all datasets fromTGBandPoursafaei et al. 2022as well as any custom dataset in.csvformat.TGX provides numerous temporal graph visualization plots and statistics out of the box.DependeciesTGX implementation works withpython >= 3.9and can be installed as follows.Set up virtual environment (conda should work as well).python -m venv tgx_env/
source tgx_env/bin/activateUpgrade pip (Optional)pip install --upgrade pipInstall external packagespip install -r requirements.txtInstall local dependencies under root directory/TGX.pip install -e .[Aternative] Install TGX fromPyPi:pip install py-tgx[optional] Installmkdocsdependencies to serve the documentation locally.pip install mkdocs-glightboxFor tutorials on how to use TGX to generate visualizations and compute statistics for temporal graphs, seedocs/tutorials/data_viz_stats.ipynbCitationIf TGX is useful for your work, please consider citing it:@article{shirzadkhani2024temporal,title={Temporal Graph Analysis with TGX},author={Shirzadkhani, Razieh and Huang, Shenyang and Kooshafar, Elahe and Rabbany, Reihaneh and Poursafaei, Farimah},journal={arXiv preprint arXiv:2402.03651},year={2024}}
Package: pyth
Pyth is intended to make it easy to convert marked-up text between different common formats.Marked-up textmeans text which has:ParagraphsHeadingsBold, italic, and underlined textHyperlinksBullet listsSimple tablesVery little elseFormats I initially want to support are:xhtmlrtfpdf (output)These three formats cover web, Word / OpenOffice, and print.Design principlesIgnore unsupported information in input formats (e.g. page layout)Ignore font issues – output in a single font.Ignore specific text sizes – support relative sizes (bigger, littler) only. Output in a single base size.Have no dependencies unless they are written in Python, and workMake it easy to add support for new formats, by using an architecture based onpluginsandadapters.ExamplesSeehttp://github.com/brendonh/pyth/tree/master/examples/Unit testsThe sources contains some unit tests (written using python unittest
module) in the ‘tests’ directory.To run the tests we can either run them individually as python script,
either usepython nose.  If using nose then we just need to go into
the tests directory and invoke nosetest from there (make sure that
pyth module is in PYTHONPATH).
Package: pyth3
pyth3 - Python text markup and conversionPyth is intended to make it easy to convert marked-up text between different common formats.
This is a (rather incomplete so far) port of pyth 0.6.0 to Python 3.Marked-up textmeans text which has:ParagraphsHeadingsBold, italic, and underlined textHyperlinksBullet listsSimple tablesVery little elseFormats that have (very varying) degrees of support arePlain textXHTMLRTF (Rich Text Format)PDF (output only)Design principles/goalsIgnore unsupported information in input formats (e.g. page layout)Ignore font issues -- output in a single font.Ignore specific text sizes, but maintain italics, boldface, subscript/superscriptHave no dependencies unless they are written in Python, and workMake it easy to add support for new formats, by using an architecture based onpluginsandadapters.ExamplesSee directoryexamples.Python 3 migrationThe code was originally written for Python 2.
It has been partially(!) upgraded to Python 3 compatibility (starting via 'modernize').
This does not mean it will actually work!pyth.plugins.rtf15.reader has been debugged and now appears to work correctly.
pyth.plugins.xhtml.writer has been debugged and now appears to work correctly.
pyth.plugins.plaintext.writer has been debugged and now appears to work correctly.
Everything else is unknown (or definitely broken on Python 3: even many
of the tests fail)
See directory py3migration for a bit more detail.
(If you find something is broken on Python 2 that worked before, please
either fix it or simply stick to pyth version 0.6.0.)Limitationspyth.plugins.rtf15.reader:bulleted or enumerated items will be returned
as plain paragraphs (no indentation, no bullets).cannot cope with Symbol font correctly:from MS Word: lower-coderange characters (greek mostly) workfrom MS Word: higher-coderange characters are missing, because
Word encodes them in a horribly complicated manner not supported
by pyth currentlyfrom Wordpad: lower- and higher-coderange characters come out in
the wrong encoding (ANSI, I think)pyth.plugins.xhtml.writer:very limited functionalitypyth.plugins.plaintext.writer:very very limited functionalityOthers:will not work on Python 3 without some porting love-and-careTestsDon't try to run them all, it's frustrating.py.test -v test_readrtf15.pyis a good way to run the least frustrating
subset of them.
It is normal that most others will fail on Python 3.test_readrtf15.pygenerates test cases dynamically based on
existing input files intests/rtfsand
existing reference output files intests/rtf-as-htmlandtests/rtf-as-html.
The empty or missing output files indicate where functionality is missing,
which nicely indicates possible places to jump in if you want to help.DependenciesOnly the most important two of the dependencies,
are actually declared insetup.py, because the others are large, yet
are required only in pyth components not yet ported to Python 3.
They are:reportlabfor PDFWriterdocutilsfor LatexWriter
Package: pythagoras
PythagorasPlanet-scale idempotent computations in Python.What is it?An experimental framework that aims to democratize access to
distributed serverless compute. We make it simple and inexpensive to
create and run massively parallel algorithms.
Pythagoras makes data scientists' lives easier,
while allowing them to solve more complex problems
in a shorter time with smaller budgets.How to get it?The source code is hosted on GitHub at:https://github.com/vladlpavlov/pythagorasBinary installers for the latest released version are available
at the Python package index at:https://pypi.org/project/pythagoraspip install pythagorasDependenciespersidictjsonpicklejobliblz4pandasnumpypsutilboto3pytestmotoboto3scipyjsonpicklescikit-learnautopep8Key ContactsVlad (Volodymyr) PavlovThe project is undergoing a major revamp.Come back soon see the new version