Saravanan666/pypi-org huggingface dataset:
Package: pushnotify
pushnotify is a package for sending push notifications. It currently
supports Android devices running Notify My Android and Pushover, and iOS
devices running Pushover and Prowl.Seehttps://www.notifymyandroid.com/https://pushover.net/andhttp://www.prowlapp.com/for more details about these applications.DevelopmentAll development for pushnotify takes place on bitbucket:https://bitbucket.org/jgoettsch/py-pushnotify/You can follow this project on Twitter:https://twitter.com/pypushnotifyTo get started you can do the following:$ hg clone https://bitbucket.org/jgoettsch/py-pushnotify/
$ cd py-pushnotify
$ pip install -r requirements_dev.txt
$ python setup.py developIf you discover a bug, please create an issue ticket:https://bitbucket.org/jgoettsch/py-pushnotify/issues/newTo run the test suite, you will have to create three modules:pushnotify/tests/nmakeys.py:This file must contain two global variables: API_KEYS and
DEVELOPER_KEY. API_KEYS is a list containing at least one valid API
key as a string. DEVELOPER_KEY is a string containing a valid
developer key.pushnotify/tests/prowlkeys.py:This file must contain two global variables: API_KEYS and
PROVIDER_KEY. API_KEYS is a list containing at least one valid API
key as a string. PROVIDER_KEY is a string containing a valid
provider key. REG_TOKEN is a valid registration token that has
already been validated through the retrieve_token/retrieve_apikey
process.pushnotify/tests/pushoverkeys.py:This file must contain two global variables: TOKEN and USER.
TOKEN is a string containing a valid API token. USER is a
dictionary whose keys are strings containing valid user identifiers.
The key values are lists containing strings, where each string
contains a valid device identifier for the given API token. There
must be one API token, and it must have one device indentifier.InstallationIf you have already downloaded pushnotify, run the following
command inside this directory:$ python setup.py installIf you have not yet downloaded pushnotify, it would be easier to do
the following:$ pip install pushnotifyEither method will install pushnotify into your current environment.ChangelogFor a full history of changes see the commit history:https://bitbucket.org/jgoettsch/py-pushnotify/commits/allversion 0.5.1license-change:this and future versions are now licensed under
the GNU GPL v3.now uses the Requests package instead of urllib2version 0.5backwards-incompatible change:each client now conforms to a
standard interface, and can be instantiated with the get_client
factory methodversion 0.4each client now logs HTTP GET and POST operationsversion 0.3.1Prowl.Client.retrieve_token and Prowl.Client.retrieve_apikey now
raise a pushnotify.exceptions.ProviderKeyError if the specified
Provider Key is invalidversion 0.3added support for Prowl:http://www.prowlapp.com/version 0.2.1fixed an issue where developer keys were not being sent with Notify My
Android verificationsversion 0.2added support for Pushover:https://pushover.net/version 0.1added support for Notify My Android:https://www.notifymyandroid.com/
Package: pushover_complete
A Python package for interacting withallaspects of the Pushover API.StableDevelopmentTo learn more about Pushover and the Pushover API, please visit the Pushover Website,https://pushover.net.>>>frompushover_completeimportPushoverAPI>>>p=PushoverAPI('azGDORePK8gMaC0QOYAMyEEuzJnyUi')# an instance of the PushoverAPI representing your application>>>p.send_message('uQiRzpo4DXghDmr9QzzfQu27cmVRsG','Your toast is finished.')# send a message to a userThat’s all you need to get started with sending Pushover notifications from your Python program.
The majority of Pushover’s API endpoints are accessible viapushover_complete.
Check out thedocsto learn more.InstallationInstallation should be as easy as executing this command in your chosen terminal:$pipinstallpushover_completepushover_completeofficially supports Python 2.7, 3.5, and 3.6.
Currently, Python 3.3 and 3.4 pass all tests and function properly as well, but this could change: these versions are not officially targeted by development.
Additionally, due to changes in Sphinx, the documentation cannot be built with Python 3.3.As of version 1.1.0, support for Python 3.5 is deprecated. It will be removed in the next major version release.
This doesn’t mean that Python 3.5 will stop working immediately, but I will no longer consider failing tests for that version to be critical.Support for Python 2.x may be dropped in the future, but only in a major version update (e.g. 1.x.y → 2.x.y) and this change will be announced well in advance.ContributingContributions, large or small, from bug reports to pull requests and full-on forks, are highly encouraged.
Read the thecontributing pagein the docs orCONTRIBUTING.rstfor more information on getting involved.The full list of contributors is inAUTHORS.rstoron GitHub.ChangelogChanges as of 6 April 20181.1.1 <6 April 2018>HOTFIX for 1.1.0Fix Python versions badge in the documents indexAdd the Python 3.6 classifier insetup.pyso the right versions are shown on PyPI1.1.0 <6 April 2018>Addimage attachment support(Pulls#5and#9)Officially add support for Python 3.6Change default tox environment for Python 3 to py36Refactored.travis.ymlto be more concise and use the newpyenvironment specification(Pull#8)Some refactoring in the main API (more list comprehensions yay!) (Pull#6)Several small documentation changes/refinements1.0.2 <23 December 2016>“Add” Python 3.6 support. It’s not in Travis as an allowed failure and didn’t require any code changes to pass!Fix a major bug with the receipt cancel API. I was using aGETrequest instead of aPOSTStop using thereleasesSphinx plugin for the changelog. Its philosophy didn’t match well with mineUpdate release procedure based on no longer usingreleasesSome minor documentation fixes1.0.1 <10 May 2016>Officially add Python 2.7 support and add testing for it to tox and TravisNumerous updates to documentation and README, etc. to make them prettier and more useful1.0.0 <9 May 2016>Implementation of methods for the Pushover messages, sounds, users, receipt, subscriptions, groups, and licenses APIsDocumentation and build processLicenseMIT. See theLICENSE.rstfile for more information.
Package: pushoverflow
Send Pushover notifications of new questions posted to StackExchangeInstallation and RequirementsPushOverflow has been written for Python (tested with Travis CI on 3.5+).To install:$ python setup.py installor alternatively:$ pip install pushoverflowSetupCopy and renamepushoverflow.ini.sampletopushoverflow.ini.
By default PushOverflow will look for the file in the current
directory (eg../pushoverflow.ini) or you can specify the path at
runtime (eg.pushoverflow /path/to/pushoverflow.ini).Edit the configuration for the StackExchange sites you would like
notifications.tagsallows you to filter questions with one of
those tags (comma separated tags treated as boolean OR).excludewill filter out questions with any oof those tags. Both are optional.Each configuration section will check a specific StackExchange site. For
instance[scifi]will check for new questions inhttp://scifi.stackexchange.com/(Science Fiction & Fantasy).You will need to specify your Pushover user key in the configuration
(inuserkey), as well asregister an
applicationwith Pushover
and specify the application’s API token (inappkey).Settime_delta_minutesto the number of minutes you would like
between each check.Setup a cron job (crontab-e) to runpushoverflow.pywith the
same frequency astime_delta_minutes.Eg. Fortime_delta_minutes = 20:*/20 * * * * pushoverflow /path/to/config_fileor*/20 * * * * cd /path/to/config_directory && pushoverflowFuture IdeasAllow boolean AND of multiple tagsMore granular priority settings
Package: pushover-nythepegasus
pushover-clientThis package provides an easy-to-use Python 3 interface for the Pushover API.
Written in pure Python off therequestsmodule.Installpython3 -m pip install git+https://github.com/Nythepegasus/pushover-client/Supported FeaturesClientsend: Send a Message/Glance through the API.verify_user: Verifies that the current user_token and api_key are valid and working.get_limits: Get the current api_key's limits.get_receipt: Gets the receipt of a priority 2 Message.Messagemessage: The message of the notification, can contain HTML.title: An optional title message.attachment: An optional png/jpeg image attachment.device: Optionally specify a specific device to send it to.url: An optional supplementary URL.url_title: An optional title for the supplementary URL.priority: The priority at which the message is sent.sound: The sound that plays when the notification arrives.timestamp: The UNIX timestamp that the message is marked with.retry: Number of seconds to retry sending a priority 2 message.expire: Number of seconds when to stop retrying to send a priority 2 message.Glancetitle: An optional title for the Glance.text: A line of text to display with the Glance.subtext: A second line of text to display with the Glance.count: The number to display on the Glance widget.percent: The percentage to display on the Glance widget.ExamplesA simple example to send a message through the API:frompushoverimportClient,Messageclient=Client("user_token","api_token")msg=Message("This is a sample message!",title="Howdy!")r=client.send(msg)print(r.status_code)# 200 if sent correctlyA simple way to send a Glance through the API:frompushoverimportClient,Glanceclient=Client("user_token","api_token")glance=Glance(title="Howdy!",count=100,percent=84)r=client.send(glance)print(r.status_code)# 200 if sent correctly
Package: pushpage
“Push”-mode is jargon used in a number of templating systems to describe
templates which have their data “pushed” to them as a mapping, supplied by the
application.  Tradiional ZPT contexts include top-level variables (e.g.,
“context”) from which the template “pulls” data.  This package offers a variant
of ZPT which suppresses any context variables except those explicitly passed by
the caller.
Package: pushpin
pushpinGit hooks for python 📌Pushpin improves your python commits and more.You can use it to run toolings like pytest, pylint, isort, black, etcwhenever you commit or push. pushpin supports all Git hooks.It's basicallyhuskybut for modern python toolingsInstall# For poetry userspoetryadd-Dpushpin# For traditional pip userspipinstallpushpinUsage# prepare your repopushpininstall# add a hookpushpinadd.pushpin/pre-commit"pytest"Recommended Hooks# pylint - strictly manage your code qualitypushpinadd.pushpin/pre-commit"pylint --fail-under=8 ."# isort - sort your import orderspushpinadd.pushpin/pre-commit"isort ."# black - get some uncompromising stylespushpinadd.pushpin/pre-commit"black ."Used bypushpin will be used by these awesome python projects.list yours.
Package: push-plan
push-plan: Finger.farm status updaterProgram to archive~/plan&~/projectfiles and push their latest content to finger.farm finger
hosting service.UsageCopydoc/sample-config.tomlas~/.config/push-plan/config.toml. Modify values appropriately,
especially user name and API token command. Default config usesgopassto access the credential.Create plan and project file as specified in the config file. Modify them as required. Use the
command thereafter as follows:usage: push-plan [-h] [--no-save] [--no-push] [--skip-check] [-d]

Record and update finger status

options:
  -h, --help    show this help message and exit
  --no-save     Don't save status. Push previously saved status.
  --no-push     Don't push status.
  --skip-check  Skip check for change in status.
  -d, --debug   Print config info for debuggingThe files will be backed up in the specified archive directory prior to uploading online.DevelopmentDevelopment happens oversourcehut. Discussion and
collaboration are over~gokuldas/projects mailing list.
Task and bug tracking is done ondedicated tracker.LicenseCopyright (C) 2022 Gokul Das BThis program is distributed under GPLv3 license. Refer LICENSE file for details.
Package: pushplush
pushplush微信推送template消息模板枚举模板名称描述html	支持html文本。为空默认使用html模板txt	纯文本内容,不转义html内容,换行使用\njson	可视化展示json格式内容markdown	内容基于markdown格式展示cloudMonitor	阿里云监控报警定制模板默认 html使用方法from pushplush import pushqingqiu=push.push('自己token',title='成功',content='成功','template'='html')qingqiu.post_put()#测试qingqiu=push.push('自己token')qingqiu.get_deleate()
Package: pushpull
A websocket to rabbitmq gatewayBETAMakes it easy to talk to websocket clients using rabbitmq queues.Websocket to message broker gateway for servers:websocket client (browser) <---> pushpull gateway <----> message broker (rabbitmq) <---> your backend application
                                                                                     \
                                                                                      \-> the authenticator moduleIncludes some standard authenticator modulesInstallRequires python3.5+:pip install pushpullTestinstall a rabbitmq server and a mongodb serverruntoxUsageRun the websocket server:pushpull-serverRun the CLI websocket client:pushpull-client challenge_websocket http://localhost:8080/ user_tokenRun the CLI rabbitmq client:pushpull-client challenge_amqp amqp://localhost/ user_idRun the CLI rabbitmq authenticator:pushpull-client authenticate_amqp amqp://localhost/ pushpull.auth.simple_file:main,user_db.txtTheuser_db.txtis a text file with one entry per line:user_id:username:user_tokenBuild docker imageinstall wheel:pip install wheelBuild wheels for 3rd party and the project itself:pip wheel -r requirements.txt -w wheelhouse
pip wheel . --no-deps -w wheelhouse-app
docker build -t pushpull .
Package: push-queue
#                         CustomQueueCustomeQueue 继承自queue.Queue只是新增一个push方法
- push(new_item)
- 当该队列满的时候,会将队列中最先入队列的元素old_item取出来,会将new_item放入队列
- 然后返回old_item
- 当队列不满的时候,直接将new_item入队列,然后返回None
- 理论上这个方法不阻塞,也不会抛出异常
Package: push-receiver
subscribe to GCM/FCM and receive notificationspython implementation ofhttps://github.com/MatthieuLemoine/push-receivertested on python 2.7.16, 3.4.10 and 3.7.5I put this together in a day or so, it’s still rough around the edges,
especially the listen part, which I don’t really use myself and have just
implemented for fun and only briefly testednote that for the listening part I had to pull in http-ece which depends
on a full blown native crypto library rather than just oscrypto. it is
an optional dependency so you’ll have to install it explicitly by depending
on push_receiver[listen]usagepipinstallpush_receiver[listen,example]basic usage example that stores and loads credentials and persistent ids
and prints new notificationsyou can also run this example with this command (change the sender id)python-m"push_receiver"--sender-id=722915550290frompush_receiverimportregister,listenimportjsondefon_notification(obj,notification,data_message):idstr=data_message.persistent_id+"\n"# check if we already received the notificationwithopen("persistent_ids.txt","r")asf:ifidstrinf:return# new notification, store id so we don't read it againwithopen("persistent_ids.txt","a")asf:f.write(idstr)# print notificationn=notification["notification"]text=n["title"]ifn["body"]:text+=": "+n["body"]print(text)if__name__=="__main__":SENDER_ID=722915550290# change this to your sender idtry:# already registered, load previous credentialswithopen("credentials.json","r")asf:credentials=json.load(f)exceptFileNotFoundError:# first time, register and store credentialscredentials=register(sender_id=SENDER_ID)withopen("credentials.json","w")asf:json.dump(credentials,f)print("send notifications to{}".format(credentials["fcm"]["token"]))withopen("persistent_ids.txt","a+")asf:received_persistent_ids=[x.strip()forxinf]listen(credentials,on_notification,received_persistent_ids)
Package: pushscreen
This is a Python library that makes it even easier to talk thepushscreen.ioweb service in order
to connect to thePushScreen iPad app.InstallationThe code has been tested with Python 2.6 and 2.7.Please usepipto install on your machine:pip install pushscreenGetting StartedFirst, open the iPad app and create a channel.Then, in your Python code connect to that channel:from pushscreen import Channel
channel = Channel("my-channel-name")And with one more line you can send e.g. a URL to your device:channel.push(type="url", url="http://code.pb.io/pushscreen/demo1.html")Different types of pushsYou can push all types of content using thechannel.push()method.
Just set thetypeargument to eitherurl,htmlorclear,
and supply other parameters as keyword arguments.channel.push(type="url", url="http://code.pb.io/pushscreen/demo1.html")
channel.push(type="html", html="<h1>Hello world</h1>")
channel.push(type="clear")Or use one of the following convenience methods:urlchannel.url("http://code.pb.io/pushscreen/demo1.html")htmlchannel.html("<h1>Hello world!</h1>")clearchannel.clear()CustomizationFor theurlandhtmlpush types you may supply one or more of
the following customization options:interactiveBy default the user will not be able to interact with the content on the
iPad. To enable touch interaction (links, buttons, etc.), set this toTrue.Type:boolDefault:FalseExample:channel.url("http://my-url.com/",interactive=True)scrollableIf you want to make your content scrollable by the user, set this toTrue. Only useful if you also setinteractive=True.Type:boolDefault:FalseExample:channel.url("http://my-url.com/",interactive=True, scrollable=True)bouncesSet this toTrueif you want rubber-band scrolling on your content.
Only make sense in combination withscrollable=True.Type:boolDefault:FalseExample:channel.url("http://my-url.com/",interactive=True, scrollable=True, bounces=True)zoomableIf you want the user to be able to use the pinch gestures to zoom the
content, set this toTrue.Type:boolDefault:FalseExample:channel.url("http://my-url.com/",zoomable=True)javascriptExecute some arbitrary JavaScript code in the context of the web page
after it’s loaded.Type:strDefault:""Example:channel.url("http://my-url.com/",javascript="alert('Helloworld!');")ttlBy default the pushed content will stay on screen until the user
dismisses it or the next push arrives. If you want your content to
disappear after a specific time, set thettlparameter to the
desired time in seconds.Type:floatDefault:-1(do not disappear)Example:channel.url("http://my-url.com/",ttl=5.0)
Package: pushshift-comment-export
Exports all accessible reddit comments for an account usingpushshift.InstallRequirespython3.6+To install with pip, run:pip install pushshift_comment_exportIs accessible as the scriptpushshift_comment_export, or by usingpython3 -m pushshift_comment_export.Reddit (supposedly) only indexes the last 1000 items per query, so there are lots of comments that I don't have access to using the official reddit API (I runrexportperiodically to pick up any new data.)This downloads all the comments that pushshift has, which is typically more than the 1000 query limit. This is only really meant to be used once per account, to access old data that I don't have access to.For more context see the commentshere.Reddit has recently added adata requestwhich may let you get comments going further back, but pushshifts JSON response contains a bit more info than what the GDPR request doesComplies to the rate limitdescribed here$ pushshift_comment_export <reddit_username> --to-file ./data.json
.....
[D 200903 19:51:49 __init__:43] Have 4700, now searching for comments before 2015-10-07 23:32:03...
[D 200903 19:51:49 __init__:17] Requesting https://api.pushshift.io/reddit/comment/search?author=username&limit=100&sort_type=created_utc&sort=desc&before=1444260723...
[D 200903 19:51:52 __init__:43] Have 4800, now searching for comments before 2015-09-22 13:55:00...
[D 200903 19:51:52 __init__:17] Requesting https://api.pushshift.io/reddit/comment/search?author=username&limit=100&sort_type=created_utc&sort=desc&before=1442930100...
[D 200903 19:51:57 __init__:43] Have 4860, now searching for comments before 2014-08-28 07:10:14...
[D 200903 19:51:57 __init__:17] Requesting https://api.pushshift.io/reddit/comment/search?author=username&limit=100&sort_type=created_utc&sort=desc&before=1409209814...
[I 200903 19:52:01 __init__:64] Done! writing 4860 comments to file ./data.jsonpushshift doesn't require authentication, if you want to preview what this looks like, just go tohttps://api.pushshift.io/reddit/comment/search?author=Usage in HPIThis has been merged intokarlicoss/HPI, which combines the periodic results ofrexport(to pick up new comments), with any from the past using this, which looks likethis; my config looking like:class reddit:
    class rexport:
        export_path: Paths = "~/data/rexport/*.json"
    class pushshift:
        export_path: Paths = "~/data/pushshift/*.json"Then importing frommy.reddit.allcombines the data from both of them:>>> from my.reddit.rexport import comments as rcomments
>>> from my.reddit.pushshift import comments as pcomments
>>> from my.reddit.all import comments
>>> from more_itertools import ilen
>>> ilen(rcomments())
1020
>>> ilen(pcomments())
4891
>>> ilen(comments())
4914
Package: pushsource
A Python library for collecting content from various sources, used byrelease-engineeringpublishing tools.SourceDocumentationPyPIInstallationInstall thepushsourcepackage from PyPI.pip install pushsourceUsage ExamplefrompushsourceimportSource# Get a source of content; sources and their parameters can be# specified by URL. This source will use a couple of RPMs from# Fedora koji as the content source.withSource.get('koji:https://koji.fedoraproject.org/kojihub?rpm=python3-3.7.5-2.fc31.x86_64.rpm,python3-3.7.5-2.fc31.src.rpm')assource:# Iterate over the content and do something with it:forpush_iteminsource:publish(push_item)DevelopmentPatches may be contributed via pull requests tohttps://github.com/release-engineering/pushsource.All changes must pass the automated test suite, along with various static
checks.TheBlackcode style is enforced.
Enabling autoformatting via a pre-commit hook is recommended:pip install -r requirements-dev.txt
pre-commit installLicenseThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Package: push-swap-gui
push_swap_guiImplementation of push-swap (42-school project) on python with GUI.ForewordBe welcome to use my project,install,cloneandforkit!If you find a bug, please, create newissue(or contact with me in any way you want) to report about it! I will be glad to fix it! If you find a mistake in my spelling (because I'm from Russia, and English is not my native language), please notify me too!If youclone/forkthis app and realise some new feature, you may createpull request! I am definitely interested in this!Also, I will be happy if youfollowme, orstarthis project, ecpecially if you find it usefull, or use my code!For all questions be welcome to contact me in any way you want 👋Here is my  mail:elijahkash.code@gmail.comHow to use:InstallThis is a simple python3 package already added to PyPI. Therefore, to use you do not need to "clone" it from github. Just open terminal and run:> pip3 install push_swap_guiIf you have just started at school42 and have never encountered python and have difficulty installing the application, visit this page:https://github.com/elijahkash/push_swap_gui/wiki/FAQ_for_beginnersLaunchNow you can run this application from any directory, and in two ways:> python3 -m push_swap_gui> push_swap_guiImportYou also mayimport push_swap_guias a module. In this case, you can:push_swap_gui.PushSwapGUI(master): create a window with app in tkinter item, transmitted asmasterpush_swap_gui.push_swap(src_data): this func get iterable with source data, and return list with comands (push-swap solve)Example:>>> import push_swap_gui
>>> a = [1, -1, 3, 7, 2, 9, 12]
>>> push_swap_gui.push_swap(a)
['pb', 'ra', 'ra', 'ra', 'pb', 'ra', 'ra', 'ra', 'pa', 'pa', 'rra']
>>>Uninstall> pip3 uninstall push_swap_guiLicenseSee theLICENSEfile for license rights and limitations (MIT).SupportIf you like my activity, you may say “thank you” to me and support me for any amount! Use 'Sponsor' button in github!