Saravanan666/pypi-org huggingface dataset:
Package: pyrogram1
pyrogram1This is a fork ofPyrogram v1(Last:v1.4.16) which installs the library with namepyrogram1so that you can use both major versions at the same time.Install this only if you need both version. If you only need major version 1, usepip install pyrogram==1.*.Please install this before the latestpyrogramversion so that dependencies, if conflicting, can be overwritten.This isn't exactly the right way, but it is the only way. Also, dependencies may (andwillin the future) create a problem!InstallationPyPIpipinstallpyrogram1UsageJust changepyrogramtopyrogram1in your imports. For example:frompyrogram1importClientIf you are using both clients in same file:frompyrogram1importClientasClient1CreditsOriginal Author -DanOriginal Repository -pyrogram
Package: pyrogram-aiopg-storage
Pyrogram aiopg storageMotivationI need to work with multiple telegram session and keep all of them in a single PostgreSQL database.
I use aiopg with SQLAlchemy hence I've written a wrapper for this stack.
Maybe someone also requires suchUsageimportaiopg.safrompyrogramimportClientfrompyrogram_aiopg_storageimportPostgreSQLStoragedb_pool=awaitaiopg.sa.create_engine(...)session=PostgreSQLStorage(db_pool=db_pool,user_id=...,phone=...)pyrogram=Client(session_name=session)awaitpyrogram.connect()
Package: pyrogram-asyncpg-storage
Pyrogram asyncpg storageUsageimportasyncpgfrompyrogramimportClientfrompyrogram_asyncpg_storageimportPostgreSQLStorageapp=Client(...)asyncdefset_session():pool=awaitasyncpg.create_pool()session=PostgreSQLStorage(name=...,pool=pool)app.storage=sessionapp.run(set_session())app.run()
Package: pyrogram-dev
Telegram MTProto API Framework for PythonHomepage•Documentation•Releases•NewsPyrogram-DevA fork version elegant, modern and asynchronous Telegram MTProto API framework ofPyrogramlibrary in Python for users and bots.frompyrogramimportClient,filtersapp=Client("my_account")@app.on_message(filters.private)asyncdefhello(client,message):awaitmessage.reply("Hello from Pyrogram-Dev!")app.run()Pyrogram-Devis a modern, elegant and asynchronousMTProto APIframework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
identity (bot API alternative) using Python.Key FeaturesReady: Install Pyrogram-Dev with pip and start building your applications right away.Easy: Makes the Telegram API simple and intuitive, while still allowing advanced usages.Elegant: Low-level details are abstracted and re-presented in a more convenient way.Fast: Boosted up byTgCrypto, a high-performance cryptography library written in C.Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.Async: Fully asynchronous (also usable synchronously if wanted, for convenience).Powerful: Full access to Telegram's API to execute any official client action and more.Installingpip3install--force-reinstallpyrogram-devResourcesJoin our officialtelegram channeland stay tuned for news, updates and announcements.Special ThanksPyrogram- Pyrogram is a original library source from which pyrogram-dev was built.
Package: pyrogram-repl
Telegram MTProto API Framework for PythonHomepage•Documentation•Releases•NewsPyrogramElegant, modern and asynchronous Telegram MTProto API framework in Python for users and botsfrompyrogramimportClient,filtersapp=Client("my_account")@app.on_message(filters.private)asyncdefhello(client,message):awaitmessage.reply("Hello from Pyrogram!")app.run()Pyrogramis a modern, elegant and asynchronousMTProto APIframework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
identity (bot API alternative) using Python.SupportIf you'd like to support Pyrogram, you can consider:Become a GitHub sponsor.Become a LiberaPay patron.Become an OpenCollective backer.Key FeaturesReady: Install Pyrogram with pip and start building your applications right away.Easy: Makes the Telegram API simple and intuitive, while still allowing advanced usages.Elegant: Low-level details are abstracted and re-presented in a more convenient way.Fast: Boosted up byTgCrypto, a high-performance cryptography library written in C.Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.Async: Fully asynchronous (also usable synchronously if wanted, for convenience).Powerful: Full access to Telegram's API to execute any official client action and more.Installingpip3installpyrogramResourcesCheck out the docs athttps://docs.pyrogram.orgto learn more about Pyrogram, get started right
away and discover more in-depth material for building your client applications.Join the official channel athttps://t.me/pyrogramand stay tuned for news, updates and announcements.
Package: pyrogramv1
Telegram MTProto API Framework for PythonDocumentation•Releases•NewsPyrogramV1Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and botsfrompyrogramv1importClient,filtersapp=Client("my_account")@app.on_message(filters.private)asyncdefhello(client,message):awaitmessage.reply("Hello from Pyrogram!")app.run()Pyrogramis a modern, elegant and asynchronousMTProto APIframework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
identity (bot API alternative) using Python.SupportIf you'd like to support Pyrogram, you can consider:Become a GitHub sponsor.Become a LiberaPay patron.Become an OpenCollective backer.Key FeaturesReady: Install Pyrogram with pip and start building your applications right away.Easy: Makes the Telegram API simple and intuitive, while still allowing advanced usages.Elegant: Low-level details are abstracted and re-presented in a more convenient way.Fast: Boosted up byTgCrypto, a high-performance crypto library written in pure C.Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.Async: Fully asynchronous (also usable synchronously if wanted, for convenience).Powerful: Full access to Telegram's API to execute any official client action and more.Installingpip3installpyrogramv1ResourcesCheck out the docs athttps://docs.pyrogram.orgto learn more about Pyrogram, get started right
away and discover more in-depth material for building your client applications.Join the official channel athttps://t.me/pyrogramand stay tuned for news, updates and announcements.
Package: pyrogramv2
Telegram MTProto API Framework for PythonHomepage•Documentation•Releases•NewsPyrogramV2Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and botsfrompyrogramv2importClient,filtersapp=Client("my_account")@app.on_message(filters.private)asyncdefhello(client,message):awaitmessage.reply("Hello from Pyrogram!")app.run()Pyrogramis a modern, elegant and asynchronousMTProto APIframework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
identity (bot API alternative) using Python.SupportIf you'd like to support Pyrogram, you can consider:Become a GitHub sponsor.Become a LiberaPay patron.Become an OpenCollective backer.Key FeaturesReady: Install Pyrogram with pip and start building your applications right away.Easy: Makes the Telegram API simple and intuitive, while still allowing advanced usages.Elegant: Low-level details are abstracted and re-presented in a more convenient way.Fast: Boosted up byTgCrypto, a high-performance cryptography library written in C.Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.Async: Fully asynchronous (also usable synchronously if wanted, for convenience).Powerful: Full access to Telegram's API to execute any official client action and more.Installingpip3installpyrogramv2ResourcesCheck out the docs athttps://docs.pyrogram.orgto learn more about Pyrogram, get started right
away and discover more in-depth material for building your client applications.Join the official channel athttps://t.me/pyrogramand stay tuned for news, updates and announcements.
Package: pyrogramx
Telegram MTProto API Framework for PythonHomepage•Documentation•Releases•NewsPyrogramElegant, modern and asynchronous Telegram MTProto API framework in Python for users and botsfrompyrogramximportClient,filtersapp=Client("my_account")@app.on_message(filters.private)asyncdefhello(client,message):awaitmessage.reply("Hello from Pyrogram!")app.run()Pyrogramis a modern, elegant and asynchronousMTProto APIframework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
identity (bot API alternative) using Python.SupportIf you'd like to support Pyrogram, you can consider:Become a GitHub sponsor.Become a LiberaPay patron.Become an OpenCollective backer.Key FeaturesReady: Install Pyrogram with pip and start building your applications right away.Easy: Makes the Telegram API simple and intuitive, while still allowing advanced usages.Elegant: Low-level details are abstracted and re-presented in a more convenient way.Fast: Boosted up byTgCrypto, a high-performance cryptography library written in C.Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.Async: Fully asynchronous (also usable synchronously if wanted, for convenience).Powerful: Full access to Telegram's API to execute any official client action and more.Installingpip3installpyrogramxResourcesCheck out the docs athttps://docs.pyrogramx.orgto learn more about Pyrogram, get started right
away and discover more in-depth material for building your client applications.Join the official channel athttps://t.me/pyrogramxand stay tuned for news, updates and announcements.
Package: pyroherd
Telegram MTProto API Framework for PythonPyroherdElegant, modern and asynchronous Telegram MTProto API framework in Python for users and botsfrompyroherdimportClient,filtersapp=Client("my_account")@app.on_msg(filters.private)asyncdefhello(client,message):awaitmessage.reply("Hello from Pyroherd!")app.run()Pyroherdis a modern, elegant and asynchronous MTProto API
framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
identity (bot API alternative) using Python.SupportIf you'd like to support Pyroherd, you can consider:Become a GitHub sponsor.Become a LiberaPay patron.Become an OpenCollective backer.Installingpip3installpyroherd
Package: pyROI
opencv-roipyROI — A simple roi selector built by python-opencvInstallationfrom pypi> pip install pyROIfrom github> pip install -U git+https://github.com/lycantrope/pyROIUsageimportpyROIimg_path="luna.jpg"img=cv2.imread(img_path)# Support rect, circle, polygon, ellipserect_roi=pyROI.select(src=img,selector_type="rect")print(rect_roi)# generate maskmask=rect_roi.mask
Package: pyRoIS
pyroisThis software is an implementation of RoIS framework.
This software is released under the MIT License, see LICENSE.Overviewpyrois is an implementation of RoIS framework with python3.Abstract classespyrois.RoIS_CommclassCommand:classQuery:classEvent:These are abstract classes for RoIS Components.pyrois.RoIS_HRIclassSystemIF:classCommandIF:classQueryIF:classEnventIF:These are abstract classes for RoIS HRI Engine.pyrois.RoIS_ServiceclassService_Application_Base:These are abstract classes for Service Application.Implementation with XML-RPCHRI_Engine_client, HRI_Engine_exampleService_Application_IF, Service_Application_BasePerson_Detection_client, Person_DetectionUnit test$ python -m pyrois.unittest -v

test_IF (__main__.TestHRIEngineIF)
test_IF ... ok
test_IF (__main__.TestHRIEngineIF_integrated)
test_IF ... ok
test_IF (__main__.TestPD)
test_IF ... ok
test_IF (__main__.TestServericeApplicationIF)
test_IF ... ok

----------------------------------------------------------------------
Ran 4 tests in 3.810s

OKThe four communication test are conducted on localhost.HRI Engine separated interface between a Service Application and a HRI EngineHRI Engine integrated interface between a Service Application and a HRI EngineService Application interface between a Service Application and a HRI EngineHRI Component interface between a HRI Engine and a HRI ComponentReferencesRoIS Framework
Package: pyroj
pyroj (Kurdish Calendar)Welcome topyroj (Kurdish Calendar)- a smallPythonlibrary for converting Gregorian and Solar dates to Kurdish date and vice versa.InstallationHow to install the module:pip install pyrojfor python 3 in Linux:pip3 install pyrojorpython3 -m pip install pyrojInstall the package using the setup.py script:
First cd into the root directory where setup.py is located, then install via below command:python setup.py installNeed help on installing Python modules, click on below link:How to install Python modulesHow to use pyrojGet the Kurdish datefrompyrojimportrojjmer# make an instance from the class with Gregorian dateCAL=rojjmer.Rojjmer(2020,12,28)print(CAL.to_kurdish(solar=False))# Output:# 2720-10-08# make an instance from the class with Solar dateCAL=rojjmer.Rojjmer(1399,10,8)print(CAL.to_kurdish(solar=True))# Output:# 2720-10-08Get the Kurdish date - Only year, month or dayfrompyrojimportrojjmer# make an instance from the class with Gregorian dateCAL=rojjmer.Rojjmer(2020,12,28)# Get only the yearprint("YEAR:",CAL.to_kurdish().year)# Get only the monthprint("MONTH:",CAL.to_kurdish().month)# Get only the dayprint("DAY:",CAL.to_kurdish().day)# Output:# YEAR: 2720# MONTH: 10# DAY: 8Get the Kurdish Weekday (in Arabic-based and Latin-based)frompyrojimportrojjmer# make an instance from the class with Gregorian dateCAL=rojjmer.Rojjmer(2020,12,28)print("WEEKDAY:",CAL.hefte())# Output:# WEEKDAY: دووشەممەprint("WEEKDAY:",CAL.hefte(abbr=False,latin=False))# Output:# WEEKDAY: دووشەممەprint("Abbreviated WEEKDAY:",CAL.hefte(abbr=True,latin=False))# Output:# Abbreviated WEEKDAY: دprint("Abbreviated WEEKDAY:",CAL.hefte(abbr=True,latin=True))# Output:# Abbreviated WEEKDAY: Dprint("WEEKDAY:",CAL.hefte(abbr=False,latin=True))# Output:# WEEKDAY: DûşemmeGet the Kurdish Month Names (in Arabic-based and Latin-based)# make an instance from the class with Gregorian dateCAL=rojjmer.Rojjmer(2021,3,21)print("Month Name:",CAL.month_name())# Output:# Month Name: خاکەلێوە# Those months have two names, will be accessible via second_name parameter to be Trueprint("Month Name (second name):",CAL.month_name(second_name=True))# Output:# Month Name: نەورۆزprint("Month Name:",CAL.month_name(second_name=False,latin=True))# Output:# Month Name: Xakelêwe# Those months have two names, will be accessible via second_name parameter to be Trueprint("Month Name (second name):",CAL.month_name(second_name=True,latin=True))# Output:# Month Name: NewrozTo-Do ListN/AGetting helpIf you have questions about the python librarypyrojmodule, or run into problems, or if you want to contribute in any way, feel free to reach out to me via below links:GitHubPyPITwitterE-mail:dolanskurd@mail.comDonateIf you think it deserves,DONATE:iTunes Gift Cards via PayPal (Email-Delivery)to my Apple ID:dolanskurd@gmail.comLicensePyroj Library is available under theMIT license.
Package: pyroku
Pyroku wraps the API provided by Roku devices to simplify its integration into your Python scripts.UsageAll you need to do is import pyroku, create a Roku object, and pass it the IP of your Roku box.>>>importpyroku>>>roku=pyroku.Roku('192.168.0.25')>>>roku.press_pause()The buttons available are called like so:>>>roku.press_pause()>>>roku.press_play()>>>roku.press_home()>>>roku.press_reverse()>>>roku.press_forward()>>>roku.press_select()>>>roku.press_left()>>>roku.press_right()>>>roku.press_down()>>>roku.press_up()>>>roku.press_back()>>>roku.press_instant_replay()>>>roku.press_search()
Package: py-roles
Library for Role based development.The big difference with mixins is that this role is applied only to the subject instance, not to the subject class (alas, a new class is constructed).Roles can be assigned and revoked. Multiple roles can be applied to an instance. Revocation can happen in any particular order.Using Roles
As a basic example, consider a domain class:>>> class Person:
...     def __init__(self, name):
...         self.name = name
>>> person = Person("John")
The instance should participate in a collaboration in which it fulfills a particular role:>>> from roles import RoleType
>>> class Carpenter(metaclass=RoleType):
...     def chop(self):
...          return "chop, chop"
Assign the role to the person:>>> Carpenter(person)                           # doctest: +ELLIPSIS
<Person+Carpenter object at 0x...>
>>> person                                      # doctest: +ELLIPSIS
<Person+Carpenter object at 0x...>
The person is still a Person:>>> isinstance(person, Person)
True
… and can do carpenter things:>>> person.chop()
'chop, chop'
Context
Roles make a lot of sense when used in a context. A classic example is the money transfer example. Here two accounts are used and an amount of money is transfered from one account to the other. So, one account playes the role of source account and the other plays the role of target account.
Package: pyrolib
pyrolibpyrolibis a tool library forMéso-NH/Blazemodel.pyrolibprovides python tools for the following purposes:Generation of theFuelMap.ncfile by using aMéso-NHnamelist and the initialisation file of aMéso-NH/Blazerun.FireFlux I exeprimental fire data processing.Development of numerical methods for theBlaze fire model.InstallationInstallpyrolibfrom PyPI's:pipinstallpyrolibUsagepyrolibis separated into several sub-libraries for each of the objectives mentioned above, respectively:pyrolib.fuelmappyrolib.firefluxpostpyrolib.blazeFuel databasepyrolibrelies on a fuel container object called aFuelDatabase. AFuelDatabaseis a 2 level nested dictionary-like class. The first level corresponds to an explicit fuel name (like "tall_grass"). This fuel can be described by several methods that are related to a rate of spread model (for exampleRothermelorBalbi). Each description is related to aFuel class(RothermelFuelorBalbiFuel) and constitutes the second level of the database.TheFireFluxIFuelDatabasecontains for example the following:* FireFluxI
    < tall_grass > available for:
      - BalbiFuel fuel classThe list ofFuelDatabasecontained inpyrolibcan be accessed through the clipyrolib-fm list-fuel-databases.A user database can be saved in a.ymlfile. See exampleexamples/fuel_database.Méso-NHcomplianceThe current version ofpyrolibis compliant withMéso-NHfrom version5.6.0to version5.6.0.AcknowledgementsThis library is part of theANR FireCasterproject (2017-2021,ANR-16-CE04-0006, FIRECASTER).
Package: pyro-listener
Pyrogram listenerExamples•NewsPyrolistenerMessage listener examplefrompyrogramimportClient,filters,types,idlefrompyrolistenerimportListenerapp=Client("name")app.start()listener=Listener(client=app,show_output=True)@app.on_message(filters.command("start"))asyncdef_(c:Client,m:types.Message):msg=awaitlistener.listen_to(m,"What's your name?",filters=["text"])returnawaitmsg.reply(f"Your name is{msg.text}")print("run")idle()callbackQuery listener example@app.on_callback_query()asyncdef_(c:Client,query:types.CallbackQuery):ifquery.data=="name":msg=awaitlistener.listen_to(query,"Whats Your name ?",fiilters=["text"])returnawaitmsg.reply(f"Your Name is{msg.text}")TimeOut example@app.on_message(filters.command("start"))asyncdef__(c:Client,m:types.Message):try:msg=awaitlistener.listen_to(m,"Send your name!",reply_markup=types.ForceReply(selective=True,placeholder="Your name"),filters=["text"],timeout=10)exceptexceptions.TimeOut:msg=Noneprint("Time Out !")awaitm.reply("Time Out",quote=True)ifmsg:awaitmsg.reply(f"Your name is{msg.text}",quote=True)# to delete client question message:awaitmsg.output.delete()Advnced listener example@app.on_message(filters.photo)asyncdef_(c:Client,m:types.Message):awaitm.reply_photo(m.photo.file_id,caption="are you sure to add an button to the photo? send Y/N")msg=awaitlistener.listen(m.chat.id,from_id=m.from_user.id,filters=["text"])ifmsg.text.lower()=="y":returnawaitmsg.reply_photo(m.photo.file_id,reply_markup=types.InlineKeyboardMarkup([[types.InlineKeyboardButton("button","callback")]]))elifmsg.text.lower()=="n":returnawaitmsg.reply("Okay")else:returnawaitmsg.reply("Wrong choice")Filters type example@app.on_message(filters.command("ask")&filters.group)asyncdef_(c:Client,message:types.Message):msg=awaitlistener.listen(chat_id=message.chat.id,text="What's your name",filters=["sender_chat","text"],filters_type=2)# will only listen to an message has "sender_chat" and "text" attributemsg=awaitlistener.listen(chat_id=message.chat.id,text="What's your name",filters=["sender_chat","text"],filters_type=1)# will listen to any messgae has "sender_chat" or "text" attributereturnawaitmsg.reply(f"Youe name is{msg.text}")Installingpip3install-Upyro-listenerCommunityJoin the telegram channel:https://t.me/Y88F8Exampleshttps://github.com/x72x/pyro-listener/tree/main/examples
Package: pyrolite
pyrolitepyrolite is a set of tools for making the most of your geochemical data.The python package includes functions to work with compositional data, to transform
geochemical variables (e.g. elements to oxides), functions for common plotting
tasks (e.g. spiderplots, ternary diagrams, bivariate and ternary density diagrams),
and numerous auxiliary utilities.pyrolite is principally developed for use in geochemical research, but is also
well suited to being incorporated into university-level geochemistry and petrology
classes which wish to include a little Python. The documentation is continually
evolving, and more examples and tutorials will gradually be added (feel free to
request features or examples; seeContributingbelow).InstallpipinstallpyroliteIf you want the most up to datedevelopmentversion, you can instead install directly from the GitHub repo. Note that breaking changes occur on this branch, and is not guaranteed to remain stable (check theDevelopment and Build Statusbelow). If you still want to try out the most recent bugfixes and yet-to-be-released features, you can install this version with:pipinstallgit+git://github.com/morganjwilliams/pyrolite.git@develop#egg=pyroliteFor more information, see the documentation'sinstallation page, and theGetting Started Guide.ExamplesCheck out the documentation for galleries ofexamplesandtutorials.
The corresponding sources of these examples exist as marked-up.pyfiles in this repository (which get converted to Jupyter notebooks on ReadTheDocs); you can find them under the foldersdocs/source/gallery/examplesanddocs/source/gallery/tutorials.ContributingThe long-term aim of this project is to be designed, built and supported by (and for) the geochemistry community. The project welcomes feature requests, bug reports and contributions to the code base, documentation and test suite. We're happy to help onboard new contributors and walk you through the process. Check out theIssues Boardto get an idea of some of the some of the currently identified bugs and things we're looking to work on. For more information, see thedocumentation, particularly theContributing pageandCode of Conduct.For a list of people who have helped build and improve pyrolite, check out theContributors page.If you'd like an idea of where the project might be heading in the near future, have a look atthe current roadmap.CitationIf you use pyrolite extensively for your research, citation of the software would be particularly appreciated. It helps quantify the impact of the project (assisting those contributing through paid and volunteer work), and is one way to get the message out and help build the pyrolite community. For information on citing pyrolite,see the relevant docs page.Development & Build StatusmaindevelopMaintainer: Morgan Williams (morgan.williamsatcsiro.au)