Saravanan666/pypi-org huggingface dataset:
Package: python-prompts
GPT-prompt集成所有好用的提问Integrate all useful questions我想要做什么?这个库的目标是集成所有通用的GPT提问,让提问可以不用再让程序员们痛苦.
让通用提问库作为所有AI框架的第一选择.这很酷是不是?What do I want to do?The goal of this library is to integrate all common GPT questions, so that questions can no longer cause programmers pain
Make the universal question library the first choice for all AI frameworks. Isn't that cool?安装方法pipinstallgpt-prompt或者pipinstall-ihttps://pypi.org/simple/gpt-promptInstall Instructionspipinstallgpt-promptAlternatively,pipinstall-ihttps://pypi.org/simple/gpt-prompt使用方法fromgpt_prompt.character.advertiserimportAdvertiserPromptif__name__=='__main__':build=AdvertiserPrompt().build(language="en")print(build)Usage Instructionsfromgpt_prompt.character.advertiserimportAdvertiserPromptif__name__=='__main__':build=AdvertiserPrompt().build(language="en")print(build)欢迎大家随时反馈和提交众人拾柴火焰高Welcome everyone to provide feedback and submit at any timeAlone we can do so little; together we can do so much🌟 Star History
Package: python-propeller
python-propeller================Pretty progress and load indicators.Installation:pip install python-propeller$ python>>> from propeller import demo, propeller>>> demo()Usage as spinner:with propeller("spinning propeller") as p:# do somethingp.spin()# do morep.spin()# print to consolep.println("without messing up the spinner")# replace "spinning propeller"p.msg("spinner")...Usage with progress indicator:with propeller("progress propeller") as p:n = 1000for i in range(n):# do somethingp.progress(i, n)Process a collections:def preprocessor(item):# preprocessdef finalizer(item):# finalizepre_processed = propeller("preprocessing").map(preprocess, in_list)propeller("finalizing").process(finalizer, pre_processed)If the length of your collections can be determined, a progress bar will bedisplayed. If iterables are given, a spinner will be displayed. If you knowthe size of your iterables, you can explicitly specify it with the `n`keyword argument:def doit(item):# workpropeller().process(doit, a_iterable, b_iterable, n=42)`python-propeller` uses threading and needs to be ended cleanly. This can bedone by using `process`, `map` or `imap` functions, using the `with` statementor explicitly calling the `end` method when you are finished.p = propeller()try:# do somethingfinally:p.end()Various measurements are optional:with propeller(eta=False, ops=False, eta=False, percent=False) as plain_p:plain_p.spin()Customization-------------The classic propeller can be made like so:from time import sleepdef noop(item):sleep(0.01)propeller(spinner="|/-\\").process(noop, iter(range(300)))But this is also one of the many preconfigured styles:propeller(spinner='lines').process(noop, iter(range(300)))With progress bars the first character of the string is used for the unfilledportion of the bar and the last character for the filled portion:propeller(bar=' -+=').process(noop, range(300))# produces something like this:========-                                 [ops: 99][eta: 2s][23%]Included styles for both spinners and progress bars:`shades`        ┄░▒▓█ (default)`hbar`          ▁▂▃▄▅▆▇█`vbar`           ▏▎▍▌▋▊▉█`dots`          ⠀⠁⠃⠇⡇⣇⣧⣷⣿# print all spinner and progress bar stylesfrom propeller import print_stylesprint_styles()
Package: python-protobuf
Installpip install python-protobufExamplefrompyprotoimportProtobufprint("Test the conversion between protobuf and bytes")bs=bytes.fromhex("12001a0022020801")# A section of bytes data of protobufprint("src:",bs.hex())proto=ProtoBuf(bs)# Convert bytes to protobuf objectsproto.dump()# print proto objectbs2=proto.toBuf()# Convert the proto object to bytesprint(bs2==bs,bs2.hex())print("Mutual conversion between proto object and dict object")# A complex dict objectd={6:{1:{1:"eyJhbGciOiJIUzI1NiJ9.ODYxODAyNjMyNjcwMA.KGj7v_WjlntNODpPNe4fVbJA5sPhLjZbQidBLhcrGVM"},3:"5******7@*****.com",4:{1:6},5:{1:1},6:{2:"",3:"",4:{1:1}},}}# An unassigned dict object templated2={6:{1:{1:""},3:"",4:{1:0},5:{1:0},6:{2:"",3:"",4:{1:0}}}}print("src:",d)pb=ProtoBuf(d)# Convert dict object to protobuf objectpb.dump()d3=pb.toDict(d2)# Convert protobuf object to dict objectprint("d3 == d2 ->",d3==d2,d3isd2,d3)print("d3 == d  ->",d3==d,d3isd)
Package: python-proxy-utils
Python Proxy UtilsA set of python 3 utils to help with web scraping. Currently only a free
proxy utility is implemented. It can be used as a proxy rotator or however
you like.Installpipinstallpython-proxy-utilsProxyHelper Example UsageWhen the class is initialised it scrapes a list of free proxies from a
number of free proxy list websites concurrently using aiohttp.>>>fromproxy_utilsimportProxyHelper>>>p=ProxyHelper()>>>p.get_count()13224>>>p.get_random()'http://103.9.188.143:56368'>>>>>>importrequests>>>random_proxy=p.get_random()>>>proxies={'http':random_proxy,'https':random_proxy}>>>r=requests.get('http://example.com',proxies=proxies)Free Proxy Lists UsedThis class currently uses the below free lists. At the time of writing
this these lists usually produced around 13,000 proxies.proxy-list.downloadfree-proxy-list.netTodoTestingAdd ProxyHelper method that returns the proxies in the format requests wants it inAdd more free proxy listsAdd a clean method to the proxy helper to remove bad proxiesAdd a UserAgentHelperAuthorJeremy Storerstorerjeremy@gmail.com
Package: python-pseudorandom
Python PseudorandomCopyright 2015-2023Sebastiaan MathôtA package for pseudorandomization of DataMatrix objects. That is, it allows
you to apply certain constraints to the randomization. The main purpose of this
package is to implement constrained loop randomization in OpenSesame, a
graphical experiment builder for the social sciences.ExampleSeeexamples/example.py.DependenciesdatamatrixLicensepseudorandomis released under the GNU General Public License 3. See the
included fileCOPYINGfor details or visithttp://www.gnu.org/copyleft/gpl.html.
Package: python-pskc
A Python module to handle Portable Symmetric Key Container (PSKC) files as
defined inRFC 6030. PSKC files are
used to transport and provision symmetric keys and key meta data (seed files)
to different types of crypto modules, commonly one-time password systems or
other authentication devices.This module can be used to extract keys from PSKC files for use in an OTP
authentication system. The module can also be used for authoring PSKC files.This module should be able to handle most common PSKC files.https://arthurdejong.org/python-pskc/APIThe module provides a straightforward API that is mostly geared towards
parsing existing PSKC files.Extracting key material from encrypted PSKC files is as simple as:>>> from pskc import PSKC
>>> pskc = PSKC('tests/rfc6030/figure7.pskcxml')
>>> pskc.encryption.derive_key('qwerty')
>>> for key in pskc.keys:
...     print('%s %s' % (key.serial, str(key.secret.decode())))
987654321 12345678901234567890Writing am encrypted PSKC file is as simple as:>>> pskc = PSKC()
>>> key = pskc.add_key(
...     id='456', secret='987654321', manufacturer='Manufacturer',
...     algorithm = 'urn:ietf:params:xml:ns:keyprov:pskc:hotp')
>>> pskc.encryption.setup_pbkdf2('passphrase')
>>> pskc.write('output.pskcxml')The key object has a number of properties. See the pskc.key.Key documentation
for details.Security considerationsThis code handles private key material and is written in Python. No
precautions have been taken to lock pages in memory to prevent swapping. Also
no attempt is currently made to securely dispose of memory that may have held
private key material.CopyrightCopyright (C) 2014-2022 Arthur de JongThis library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
Package: python-publish
Publish app makes the life of netizens a lot easier. It provides a unique solution which removes the duplication of effort needed to post the same content in multiple social networks.How it works?It has a powerful command line based User-Interface which takes in the user input which is basically the message to be posted and the various networks to which the content should be posted. The user input is then validated to see if there’s any error or the formatting is correct. After that, the message will be posted in the specified social networks and a success message is displayed to the user.DevelopersAlfred and Shahul
Package: python-pulse
PyPulsePlease Note: PyPulse is in the midst of dynamic development, and certain features may still be in progress or subject to change. We value your interest and patience as we strive to enhance and refine this project. If you find value in PyPulse, please consider showing your support by giving it a star. Your use of stars serves as a valuable indicator of the project's backing, and we are grateful for your contribution.📚 DocumentationFor detailed instructions and more information about PyPulse, please refer to theofficial documentation.🚀 Getting StartedUsing pip install the librarypipinstallpython-pulseCreate a new Projectpypulse-manage--create_projectYourProjectName📜 LicensePyPulse is licensed under the MIT License. See theLICENSEfile for details.💌 ContactIf you have any questions, suggestions, or feedback, please don't hesitate to reach out to us atzabbix@ztrunk.space.We hope PyPulse accelerates your desktop application development and simplifies the integration of web content into your Python projects. Happy coding! 😎🚀
Package: python-pulseaudio-profiles
Simple library to create and applypulseaudioprofiles under Linux.Uses thepulsectllibrary
underneath the hood.Provides the following command-line utilities:ppp-info– for outputting information about current setupppp-create– for generating a profileppp-apply– for applying a profileppp-list– for listing profilesppp-rm– for deleting a profileChangelog0.0.3 (2021-08-17)config.list_config()now initializes the config dir if necessary0.0.2 (2020-04-30)addedppp-listandppp-rmtools for listing and removing profiles0.0.1 (2020-04-28)initial release
Package: python-pulseaudio-profiles-trayicon
Python library that adds a tray icon for easily changing and creating pulseaudio profiles.Uses the [python-pulseaudio-profiles](https://github.com/fracpete/python-pulseaudio-profiles)
library under the hood.You can start the tray icon withppp-tray.Changelog0.0.2 (2021-08-17)added ability to select theme (dark or light icon in tray icon)0.0.1 (2020-04-30)initial release
Package: python-pulsechain
python-pulsechainPython implementation for PulseChain APIPulseChain API Python WrapperThis Python package provides a convenient wrapper for interacting with the PulseChain API. It is currently in the alpha stage, and the interface may change significantly as I continue to develop and improve the package.API Docs:https://scan.pulsechain.com/api-docsStructureThe package contains three modules:transaction.py: Functions for interacting with transactions on the PulseChain network.token.py: Functions for interacting with tokens on the PulseChain network.account.py: Functions for interacting with accounts on the PulseChain network.InstallationYou can install this package using pip:pip install python-pulsechainUsageFirst, import the functions from the package:from pulsechain.account import get_balance, get_token_listThen, you can use the functions to interact with the PulseChain API. For example, to get the balance of a particular address:balance = get_balance('your-address-here')
print(balance)To get the list of tokens owned by a particular address:token_list = get_token_list('your-address-here')
print(token_list)Functions return data from API without any modifications.DocumentationYou can find more detailed documentation in the docstrings of each function in the package.ContributingIf you'd like to contribute to this package, please feel free to submit a pull request. Any improvements or bug fixes are welcome.DisclaimerPlease note that this package is currently in the alpha stage. This means that the code may change significantly as I continue to improve and develop the package. I appreciate your understanding and patience during this time.LicenseThis project is licensed under the MIT License.
Package: python-purify
pip install python_purifyor:python setup.py installExamplesSetupfrom python_purify import WordPurify
from python_purify import ImagePurify
...
purify = WordPurify(my_api_key)
imgpurify = ImagePurify(my_img_api_key)
vidpurify = VideoPurify(my_img_api_key)The Web Purify default response type is XML, but JSON is normally better to work with. We made
JSON the standard format for our package, but you can set it to XML with the rspformat variable:purify = WordPurify(my_api_key, rspformat='xml')This will return a cElementTree object. If you want to use a better package like beautiful soup, you can
return the tree back to text with the following:from xml.etree import cElementTree as ET
...
out = purify.check('Some nice words')
xml_string = ET.tostring(out)
# Some other XML parser can load the data now.Initialization optionslive - Default: True. If false, uses the webpurify sandboxrspformat - Default:‘json’. Can be set to‘json’or‘xml’verbose - Default: False. If true, prints the WebPurify url before making a request.WordPurify MethodsOnce setup if finished, you can simply call each method:out = purify.check('Some nice words')
print out
# {u'rsp': {u'@attributes': {u'stat': u'ok'}, u'found': u'0', u'api_key': u'*********', u'method':  u'webpurify.live.check', u'format': u'rest'}}The following WordPurify methods are included:checkcheck_countreplacewp_returnadd_to_blacklistadd_to_whitelistremove_from_blacklistremove_from_whitelistget_blacklistget_whitelistNote:you should be able to set most of the options in the function call except for format. Format is determined at WordPurify
creation. In this example,rsp=1will give us the response time andslink=1will tell WebPurify to flag urls:purify.check('Some nice words', rsp=1, slink=1)ImagePurify MethodsJust like with WordPurify, once setup, you can call the ImagePurify Methods.out = imgpurify.img_account()The following ImagePurify methods are included:img_checkimg_statusimg_accountVideoPurifyVideoPurify works in much the same way as ImagePurify.out = vidpurify.vid_account()The following ImagePurify methods are included:vid_checkvid_statusvid_accountTestingWe have written some basic tests for python 2.7 and python 3.
Package: python-pushbullet
python-pushbulletA python module for interacting with the v2 Pushbullet API.SetupThis tool supposes that your Pushbullet API key is located in an environment variable or a.envfile. To create a.envfile, type the following:➜echoPUSHBULLET_API_KEY=<your-api-key-here>>.envMake sure that you don't commit this file to Git: it contains your private API key.Usage:➜./pushbullet_cli.pypost\>--title"Hello World"\>--body"Lorem ipsum dolor sit amet, consectetur adipiscing elit."➜./pushbullet_cli.pydevices
Chrome|chrome
GooglePixel3a|android
Firefox|firefox

➜./pushbullet_cli.pypost\>--title"Hello World"\>--body"Lorem ipsum dolor sit amet, consectetur adipiscing elit."\>--device"Google Pixel 3a"
Package: python-pushover
python-pushoveraims at providing comprehensive Python bindings for the API
of thePushover Notification Serviceas documentedhere.InstallationYou can install python-pushover fromPypiwith:$pipinstallpython-pushoverOr you can install it directly fromGitHub:gitclonehttps://github.com/Thibauth/python-pushover.gitcdpython-pushoverpipinstall.OverviewAfter being imported, the module must be initialized by calling theinitfunction with a valid application token. Thus, a typical use of thepushovermodule looks like this:frompushoverimportinit,Clientinit("<token>")Client("<user-key>").send_message("Hello!",title="Hello")You can also pass theapi_tokenoptional argument toClientto
initialize the module at the same time:frompushoverimportClientclient=Client("<user-key>",api_token="<api-token>")client.send_message("Hello!",title="Hello")Attachments can be sent with theattachmentparameter which takes as
argument as file object:withopen('/path/to/my/image.png','rb')asimage:client.send_message('Message with image',attachment=image)Command linepython-pushoveralso comes with a command line utilitypushoverthat
you can use as follows:pushover--api-token<api-token>--user-key<user-key>"Hello!"Usepushover--helpto see the list of available options.ConfigurationBoth thepushovermodule and thepushovercommand line utility support
reading arguments from a configuration file.The most basic configuration file looks like this:[Default]api_token=aaaaaauser_key=xxxxxxYou can have additional sections and specify a device as well:[Sam-iPhone]api_token=bbbbbbuser_key=yyyyyydevice=iPhonepython-pushoverwill attempt to read the configuration from~/.pushoverrcby default. The section to read can be specified by using theprofileargument. With the configuration file above, you can send a message
by simply doing:frompushoverimportClientClient().send_message("Hello!",title="Hello")orpushover--title"Hello" "Hello!"from the command line.APIYou can access the full API documentationhere.ContributorsSam Birch <sam.m.birch@gmail.com>CrupukchevelldrachenministerThibaut Horel <thibaut.horel@gmail.com>Filip Lundborg <filip@filipl.se>Philip Lundrigan <philipbl@cs.utah.edu>Steve Miller <copart@gmail.com>Changes0.4 (2018-05-13)Add support forexpireandretryparameters to the command line forpriority=2messagesAdd support for attachments0.3 (2016-12-29)Add support for the Glances APIAdd acancelfunction toMessageRequestobjects to cancel high
priority messagesAdd support for html message stylingFix bug in MessageRequest.poll forpriority=2requests0.2 (2014-08-16)Fix bug when using current timestampAdd apushovercommand line utilityAdd Python 3 supportAdd configuration file featureEasier and more compact Client class creationSwitch tosetuptoolsfor easier installation and dependencies handling0.1 (2013-04-16)Initial Release
Package: python-pushover2
python-pushoveraims at providing comprehensive Python bindings for the API
of thePushover Notification Serviceas documentedhere.** This is a fork of python-pushover with patches for the latest Python3 **** No other changes have been made **InstallationYou can install python-pushover2 fromPypiwith:$pipinstallpython-pushoverOr you can install it directly fromGitHub:gitclonehttps://github.com/m4rkw/python-pushover2.gitcdpython-pushover2pipinstall.OverviewAfter being imported, the module must be initialized by calling theinitfunction with a valid application token. Thus, a typical use of thepushovermodule looks like this:frompushoverimportinit,Clientinit("<token>")Client("<user-key>").send_message("Hello!",title="Hello")You can also pass theapi_tokenoptional argument toClientto
initialize the module at the same time:frompushoverimportClientclient=Client("<user-key>",api_token="<api-token>")client.send_message("Hello!",title="Hello")Attachments can be sent with theattachmentparameter which takes as
argument as file object:withopen('/path/to/my/image.png','rb')asimage:client.send_message('Message with image',attachment=image)Command linepython-pushoveralso comes with a command line utilitypushoverthat
you can use as follows:pushover--api-token<api-token>--user-key<user-key>"Hello!"Usepushover--helpto see the list of available options.ConfigurationBoth thepushovermodule and thepushovercommand line utility support
reading arguments from a configuration file.The most basic configuration file looks like this:[Default]api_token=aaaaaauser_key=xxxxxxYou can have additional sections and specify a device as well:[Sam-iPhone]api_token=bbbbbbuser_key=yyyyyydevice=iPhonepython-pushoverwill attempt to read the configuration from~/.pushoverrcby default. The section to read can be specified by using theprofileargument. With the configuration file above, you can send a message
by simply doing:frompushoverimportClientClient().send_message("Hello!",title="Hello")orpushover--title"Hello" "Hello!"from the command line.APIYou can access the full API documentationhere.ContributorsSam Birch <sam.m.birch@gmail.com>CrupukchevelldrachenministerThibaut Horel <thibaut.horel@gmail.com>Filip Lundborg <filip@filipl.se>Philip Lundrigan <philipbl@cs.utah.edu>Steve Miller <copart@gmail.com>Changes0.4 (2018-05-13)Add support forexpireandretryparameters to the command line forpriority=2messagesAdd support for attachments0.3 (2016-12-29)Add support for the Glances APIAdd acancelfunction toMessageRequestobjects to cancel high
priority messagesAdd support for html message stylingFix bug in MessageRequest.poll forpriority=2requests0.2 (2014-08-16)Fix bug when using current timestampAdd apushovercommand line utilityAdd Python 3 supportAdd configuration file featureEasier and more compact Client class creationSwitch tosetuptoolsfor easier installation and dependencies handling0.1 (2013-04-16)Initial Release
Package: python-pushsafer
python-pushsaferaims at providing comprehensive Python bindings for the API
of thePushsafer Notification Serviceas documentedhere.Forked from and original created by: Thibauthhttps://github.com/Thibauth/python-pushoverInstallationInstall from pip:pipinstallpython-pushsaferor you can install it directly fromGitHub:gitclonehttps://github.com/appzer/python-pushsafer.gitcdpython-pushsaferpipinstall.OverviewfrompushsaferimportClientclient=Client("<privatekey>")resp=client.send_message("Message","Hello","323","1","4","2","https://www.pushsafer.com","Open Pushsafer","0","2","60","600","10","1","yes|no|maybe","1","","","")print(resp)Paramsclient.send_message("Message","Title","Device or Device Group ID","Icon","Sound","Vibration","URL","URL Title","Time2Live","Priority","Retry","Expire","Confirm","Answer","AnswerOptions","AnswerForce","Image 1","Image 2","Image 3")APIYou can access the full API documentationhere.ContributorsKevin Siml <info@appzer.de>John Morris <2e0byo@gmail.com>Changes1.1 (2023-03-11)add new pushsafer parameter answer options, answer force, confirm1.0 (2021-10-25)Fix bugs and completely rewrite.0.4 (2018-08-19)add new pushsafer parameter priority, retry, expire, answer0.3 (2017-11-28)ignore verifying the SSL certficate (trust self signed certificates)0.2 (2017-02-12)Add new parameters (url, url title, time2live, image 1-3), minor bugfixes0.1 (2016-09-13)Initial Release