Saravanan666/pypi-org huggingface dataset:
Package: pushed
OverviewPython wrapper for the pushed.co API.https://pushed.coSend push notifications to mobile devices without writing your own mobile
app. Have notifications pushed to you rather than relying on polling RSS feeds
and the like.UsageCurrently only the push functionality and some of the OAuth2 is implemented
here.Basic usage:import pushed

APP_KEY = 'MY_PUSHED_APP_KEY'
APP_SECRET = 'MY_PUSHED_APP_SECRET'
CHANNEL_ALIAS = 'MY_CHANNEL_ALIAS'
PUSHED_ID = 'PUSHED_ID_FOR_SUBSCRIBER'

p = pushed.Pushed(APP_KEY, APP_SECRET)

# Push message to your application's subscribers
shipment = p.push_app('test app push')

# Push message to your channel's subscribers
shipment = p.push_channel('test channel push', CHANNEL_ALIAS)

# Push message to a user by Pushed ID
shipment = p.push_pushed_id('test Pushed ID push', PUSHED_ID)

# Push URL enriched message to your application's subscribers
shipment =  p.push_app('test app push', content_url='http://example.com')Pushing to a user requires an OAuth2 access token. You must swap a temporary
code for this access token using the Pushed API. These temporary codes arrive
by webhook, when a subscriber follows your authorization link and agrees to the
access.To generate an authorization link to share with your users:p = pushed.Pushed(APP_KEY, APP_SECRET)
uri = p.authorization_link('https://example.org/my-webhook-handler')Using a code to get an access token, then sending a message to the user:p = pushed.Pushed(APP_KEY, APP_SECRET)
access_token = p.access_token(temporary_code)
shipment = p.push_user('test user push', access_token)All four push methods return an alphanumeric Shipment ID which you can check
against your Pushed.co control panel. If the Pushed API returns a JSON failure
message then aPushedAPIErrorwill be raised using its type and message fields.Thecontent_urlparameter is optional and is supported by all push types. It
allows you to enrich your messages with a hyperlink if desired.InstallationUsing pippip install pushed
Package: pusherclient
[![Build Status](https://travis-ci.org/ekulyk/PythonPusherClient.svg?branch=master)](https://travis-ci.org/ekulyk/PythonPusherClient)pusherclientpusherclient is a python module for handling pusher websocketsInstallationSimply run “python setup.py install”.This module depends on websocket-client module available from: <http://github.com/liris/websocket-client>ExampleExample of using this pusher client to consume websockets:import pusherclient

# Add a logging handler so we can see the raw communication data
import logging
root = logging.getLogger()
root.setLevel(logging.INFO)
ch = logging.StreamHandler(sys.stdout)
root.addHandler(ch)

global pusher

# We can't subscribe until we've connected, so we use a callback handler
# to subscribe when able
def connect_handler(data):
    channel = pusher.subscribe('mychannel')
    channel.bind('myevent', callback)

pusher = pusherclient.Pusher(appkey)
pusher.connection.bind('pusher:connection_established', connect_handler)
pusher.connect()

while True:
    # Do other things in the meantime here...
    time.sleep(1)Sending pusher events to a channel can be done simply using the pusher client supplied by pusher.  You can get it here: <http://github.com/newbamboo/pusher_client_python>import pusher
pusher.app_id = app_id
pusher.key = appkeyp = pusher.Pusher()
p[‘mychannel’].trigger(‘myevent’, ‘mydata’)ThanksBuilt using the websocket-client module from <http://github.com/liris/websocket-client>.
The ruby gem by Logan Koester which provides a similar service was also very helpful for a reference.  Take a look at it here: <http://github.com/logankoester/pusher-client>.CopyrightMTI License - See LICENSE for details.
Package: pusherclientb
[![Build Status](https://travis-ci.org/bartbroere/PythonPusherClient.svg?branch=master)](https://travis-ci.org/bartbroere/PythonPusherClient)pusherclientbpusherclientb is a python module for handling pusher websockets. This is a branched off version of the original (pusherclient) by Erik Kulyk. It is fully backwards compatible, and in addition provides decoded messages and custom arguments in the callback.InstallationSimply run “python setup.py install”.This module depends on websocket-client module available from: <http://github.com/liris/websocket-client>ExampleExample of using this pusher client to consume websockets:import pusherclient

# Add a logging handler so we can see the raw communication data
import logging
root = logging.getLogger()
root.setLevel(logging.INFO)
ch = logging.StreamHandler(sys.stdout)
root.addHandler(ch)

global pusher

# We can't subscribe until we've connected, so we use a callback handler
# to subscribe when able
def connect_handler(data):
    channel = pusher.subscribe('mychannel')
    channel.bind('myevent', callback)

pusher = pusherclient.Pusher(appkey)
pusher.connection.bind('pusher:connection_established', connect_handler)
pusher.connect()

while True:
    # Do other things in the meantime here...
    time.sleep(1)Sending pusher events to a channel can be done simply using the pusher client supplied by pusher.  You can get it here: <http://github.com/newbamboo/pusher_client_python>import pusher
pusher.app_id = app_id
pusher.key = appkeyp = pusher.Pusher()
p[‘mychannel’].trigger(‘myevent’, ‘mydata’)ThanksBuilt using the websocket-client module from <http://github.com/liris/websocket-client>.
The ruby gem by Logan Koester which provides a similar service was also very helpful for a reference.  Take a look at it here: <http://github.com/logankoester/pusher-client>.CopyrightMIT License - See LICENSE for details.
Package: pusher-push-notifications
Pusher Beams Python server SDKFull documentation for this SDK can be foundhereInstallationThe Pusher Beams Python server SDK is available on PyPihere.You can install this SDK by usingpip:$ pip install pusher_push_notificationsUsageConfiguring the SDK for Your InstanceUse your instance id and secret (you can get these from thedashboard) to create a Beams PushNotifications instance:from pusher_push_notifications import PushNotifications

beams_client = PushNotifications(
    instance_id='YOUR_INSTANCE_ID_HERE',
    secret_key='YOUR_SECRET_KEY_HERE',
)Publishing to Device InterestsYou can broadcast notifications to groups of subscribed devices usingDevice Interests:response = beams_client.publish_to_interests(
    interests=['hello'],
    publish_body={
        'apns': {
            'aps': {
                'alert': 'Hello!'
            }
        },
        'fcm': {
            'notification': {
                'title': 'Hello',
                'body': 'Hello, World!'
            }
        }
    }
)

print(response['publishId'])Publishing to Authenticated UsersSecurely send notifications to individual users of your application usingAuthenticated Users:response = beams_client.publish_to_users(
    user_ids=['user-0001'],
    publish_body={
        'apns': {
            'aps': {
                'alert': 'Hello!'
            }
        },
        'fcm': {
            'notification': {
                'title': 'Hello',
                'body': 'Hello, World!'
            }
        }
    }
)

print(response['publishId'])
Package: pushfin
PushFin=======Setup-----#. Install pushfin: ``pip3 install pushfin``#. Create configuration file at: ``~/.pushfin.yaml``. Take a look at the `example configuration <https://github.com/stv0g/pushfin/blob/master/etc/pushfin.yaml>`_.#. Add pushfin to crontab: ``crontab -e``\ :.. code-block::12 * * * * pushfin`Transaction fields for formatting---------------------------------MT940^^^^^Standard transaction data is parsed by the `\ ``mt940`` Python Module <https://github.com/WoLpH/mt940>`_.Common fields are listed below:.. list-table:::header-rows: 1* - Formatting field- Example value- Description* - ``trx[status]``- 'D'- 'D' = Debit, 'C' = Credit* - ``trx[funds_code]``- None* - ``trx[id]``- 'NMSC'* - ``trx[customer_reference]``- None* - ``trx[bank_reference]``- None* - ``trx[extra_details]``- ''* - ``trx[currency]``- 'EUR'* - ``trx[date]``-- Unix Timestamp* - ``trx[entry_date]``-- Unix Timestamp* - ``trx[transaction_code]``- '020'* - ``trx[posting_text]``- 'Überweisung'* - ``trx[prima_nota]``- '006200'* - ``trx[purpose]``- 'Kino Tickets'* - ``trx[applicant_bin]``- 'PBNABSEEFXXX'* - ``trx[applicant_iban]``- 'DE71235623523523523'* - ``trx[applicant_name]``- 'Max Mustermann'* - ``trx[return_debit_notes]``- None* - ``trx[recipient_name]``- None* - ``trx[additional_purpose]``- None* - ``trx[gvc_applicant_iban]``- None* - ``trx[gvc_applicant_bin]``- None* - ``trx[end_to_end_reference]``- None* - ``trx[additional_position_reference]``- None* - ``trx[applicant_creditor_id]``- None* - ``trx[purpose_code]``- None* - ``trx[additional_position_date]``- None* - ``trx[deviate_applicant]``- None* - ``trx[deviate_recipient]``- None* - ``trx[FRST_ONE_OFF_RECC]``- None* - ``trx[old_SEPA_CI]``- None* - ``trx[old_SEPA_additional_position_reference]``- None* - ``trx[settlement_tag]``- None* - ``trx[debitor_identifier]``- None* - ``trx[compensation_amount]``- None* - ``trx[original_amount]``- NoneExtra fields^^^^^^^^^^^^For ease formatting, we extended the standard MT940 fields with the following helpers:.. list-table:::header-rows: 1* - Formatting field- Example value- Description* - ``trx[date_ts]``- 1525007188- A Unix timestamp of the ``date`` field* - ``trx[date_fmt]``- '2018-04-28'- A formatted date of the ``date`` field* - ``trx[entry_date_ts]``- 1525007188- A Unix timestamp of the ``entry_date`` field* - ``trx[entry_date_fmt]``- '2018-04-28'- A formatted date of the ``entry_date`` field* - ``trx[amout]``- -20.42- Just the amount of the transaction (see ``amount``\ )* - ``trx[dir]``- 'from'/'to'-* - ``trx[color]``- '#009933'-* - ``bal[amount]``- '3.52'-* - ``bal[currency]``- 'EUR'- Current balance valuta* - ``bal[date]``- '2018-03-23'- Balance currency* - ``bal[date_fmt]``-- Date of last valuta
Package: pushgateway
OpenhabWebThingPushGatewayA push gateway sending webthing properties updates to a openhab serverThis project provides a background service connectingwebthing API-based devices such as windsensors or motion detector to theOpenhabautomation system.Internally, the service uses the web socket notification capability of the webthing api to listen for changes. If a webthing property is updated, the service will use the REST api of the Openhab installation
to update the assoiciated Openhab item.For each link (webthing property <-> openhab item association) an entry in a gateway config file has to be placed. E.g. a concrete config file may look like# webthing_root_uri, webthing_property_name, openhab_root_uri, openhab_item_name
http://192.168.1.21:9131/, temperature, http://192.168.1.12:8080, TempCurrent
http://192.168.1.21:9132/, windspeed, http://192.168.1.12:8080, WindspeedCurrent
http://192.168.1.187:9045/, motion, http://192.168.1.12:8080, MotionGroundfloorThe first entry is the webthing endpoint uri, the second the property name to be linked.
The third parameter is the endpoint uri of the openhab installation, and the fourth parameter is the item name
(which may differ from the webthing property name)To service can be started manually via command line usingsudo pushgateway --command listen --filename /etc/pushgateway/gateway.confAlternatively to thelistencommand, you can use theregistercommand to register and start the service as systemd unit.
By doing this the service will be started automatically on boot. Starting the server manually using thelistencommand is no longer necessary.sudo pushgateway --command register --filename /etc/pushgateway/gateway.confTo install this software you may usePIPpackage manager such as shown belowsudo pip install pushgateway
Package: pushgateway-client
安装模块pipinstallpushgateway-client如果国内下载较慢可以临时加速一下# pypi官网（原版拉取）pipinstallpushgateway-client--upgrade-ihttps://pypi.org/project# 阿里云源（加速拉取）pipinstallpushgateway-client--upgrade-ihttp://mirrors.aliyun.com/pypi/simple# 清华大学源（加速拉取）pipinstallpushgateway-client--upgrade-ihttps://pypi.tuna.tsinghua.edu.cn/simple使用说明from pushgateway_client import client   # 导入该模块

result = client.push_data(
    url="127.0.0.1:9091",               # 连接地址：此处只需要填写Pushgateway的IP地址+端口就行了，不用写http协议头，暂时只支持http连接
    metric_name="my_metric_name",       # 指标名称：此处指的就是Prometheus中的指标名（至于如何让Pushgateway中的指标投送到Prometheus中，请参阅官方文档）
    metric_value="123",                 # 指标的值：受官网当前版本的限制，目前只支持数字做为值
    job_name="demo",                    # Job名字：Prometheus会为所有的指标都追加一个job标签，在Prometheus这个job只是一个标签，但是在Pushgateway中这个job就是一个唯一标识符
    labels={                            # 标签可以自己随意设定，支持多标签；需要注意的是：<instance>标签如果不明确的指定的话，本模块会自动获取<您的主机名>来成为<instance>标签的值
        "aaa": "111",
        "bbb": "222",
        "ccc": "333",
        },
    timeout=5,                          # 设定推送数据时的超时时间，默认值为5秒
    )


print(result)                           # 返回值是一个布尔类型，便于您进行后续的集成开发
print(type(result))查看效果This is a simple example package.You can check out the details at blog.taycc.comhttps://blog.taycc.com.
Package: pushing-outshoot-unfold
Pushing Outshoot Unfoldremembering the pandemicInstall:go hereFile Structure:basically just ignore all folders exceptpushing_outshoot_unfold./
├───...
├───pushing_outshoot_unfold/     # Main folder
│   ├───days/                    # The only days folder
│   │   ├───...
│   │   ├───001a.toml            # Day 1 version A
│   │   └───001b.toml            # Day 1 version B
│   ├───sounds/                  # Sound files
│   ├───__init__.py              # Contains metadata, just ignore
│   ├───__main__.py              # Entrypoint for the project, main code here
│   ├───ascii.py                 # Dynamic ASCII art functions
│   ├───banner.py                # Title screen ASCII stuff
│   ├───eng.py                   # English questions
│   ├───math.py                  # Math questions
│   ├───sci.py                   # English questions
│   ├───sound.py                 # Code to run cross-platform sound files
│   └───interactions.py          # Main code for each day, plus utility funcs for stories
├───sailboat.toml                # Config file for distribution
├───icon.*                       # Icons
└───run.py2                      # repl.it script to run project easily with run button
Package: pushjet
pushjet(Python API)Welcome topushjet, Python’sPushjet(see the server on GitHub) API. Pushjet lets you push notifications directly to your phone (among other things)! This module lets you do that pushing from Python! It’s pretty sweet - it lets you do all sorts of cool things, like integrating notifications into your web app or notifying you when something goes on sale.And yep, the module’s just namedpushjet. Spiffy name, and surely not at all confusing. Probably. Hopefully. Maybe.How to installThe module ison GitHub, andit’s also on PyPI! That means you can install it usingpip. Simply run the following to install it:>pipinstallpushjetBam, you’re ready to go. It’s compatible with both Python 2 and 3, too - nice, huh?How to useSee theGetting startedsection of thedocumentation. Here’s a little taste:importpushjetimportuuidservice=pushjet.Service.create("Open courses",# Name"http://example.com/university_icon.png"# Icon URL)device=pushjet.Device(uuid.uuid4())device.subscribe(service)service.send("A spot is open for you in the competitive eating course!",# Message"Course open",# Title"http://example.com/courses/eating/competitive"# Link)formessageindevice.get_messages():printmessage.titleprintmessage.messageprintmessage.linkFor information on all the properties of the classes, and on how to use custom API instances, once again see thedocumentation.ContactIf there’s a feature you’re missing or a bug you’ve found inpushjet,open an issue on GitHub. If you’ve got a question - or there’s anything you’d like to talk about at all, really - you can reach me via:Twitter (@obskyr)E-mailI usually answer much faster on Twitter. Thaaaat… should be all. I think. Unless I’ve forgotten something, which I don’t think I have. I neverthinkI have, though, and then sometimes I still have. Let’s hope I haven’t this time.Enjoy!
Package: pushnote
pushnote========`pushnote`_ is a simple django plugin for sending push messages fromdjango server to sockjs clients. It internally uses `zeromq`_ and`sockjs-tornado`_. pushnote can send push notifications to all sockjsclients and to subset of this clients.Requirements:-------------1. `pyzmq`_>=2.02. `sockjs-tornado`_>=0.0.53. `django`_>=1.4Installation:-------------Install ``pushnote`` with your favorite Python package manager:::pip install pushnoteAdd ``pushnote`` to your ``INSTALLED_APPS`` in ``settings.py``::INSTALLED_APPS = ('django.contrib.auth','pushnote',...)Define ``PUSHNOTE_MQ_SOCKET`` in ``settings.py``::PUSHNOTE_MQ_SOCKET = 'tcp://127.0.0.1:8002'Usage:------Run pushnote forwarder device::pushnote-mq --sub=tcp://127.0.0.1:8002 --pub=tcp://127.0.0.1:8001Run sockjs-tornado server::pushnote-server --port=8080 --mq_socket=tcp://127.0.0.1:8001 --route=/sockjs --address=''Alternatively, if you don't need multiple tornado instances support, you can entirely omit pushnote-mq and should pass -S/--single argument to pushnote-server::pushnote-server --single --port=8080 --mq_socket=tcp://127.0.0.1:8002 --route=/sockjs --address=''Append sockjs client library to your page::<head><script src="http://cdn.sockjs.org/sockjs-0.3.min.js">...Open page in browser and connect to sockjs-tornado server::conn = new SockJS('http://localhost:8080/sockjs')Define a callback for incoming messages::conn.onmessage = function (e){ console.log(e.data); };Send a message from django::from pushnote.pub import notify_allnotify_all({'msg': u'Hi all!'})and you will see it in js console::Object {msg: "Hi all!"}Advanced notifications:-----------------------You can send notifications to subset of users.::from pushnote.pub import notifyfrom pushnote.utils import tokenizefrom django.contrib.auth.models import Useruser = User.objects.get(email='pushnote@mail.com')notify({'msg': u'Hi, %s!' % user.username}, users=[user])token = tokenize(user)notify({'msg': u'Hi user with token %s !' % token}, users=[user])To get this messages you need to subscribe by token::var token = {% pushnote_token %};SockJS.prototype.emit = function (name, data) { // wrapper around SockJS.send for pushnote's protocol supportvar meta_dict = {name:name,data:data};this.send(JSON.stringify(meta_dict))};conn = new SockJS('http://localhost:8080/sockjs')conn.emit('subscribe', {'token': token});conn.onmessage = function (e){ console.log(e.data); };``{% pushnote_token %}`` is nothing more than a wrapper around``pushnote.utils.tokenize`` that returns user.id signed withstandart django singing mechanism. You can configure you own salt by setting``PUSHNOTE_SALT`` in ``settings.py``. If you need more security,you can provide your own tokenization function. It should accept django Userobject and return token. Add path to this function in settings.py .::PUSHNOTE_TOKENIZER = 'pushnote.utils.tokenize'Conclusions:------------1. pushnote serializes datetime objects with ISO 8601 format. You can parse it on client with `moment.js`_ .2. pushnote server can handle client's messages constructed only in some specific way and can't be used for client to client communications.
Package: pushnotif
PushNotifWant to get notified on your phone when your code has executed? This is a simple tool to generate a Push Notification to your IFTTT app.QuickStartSetting Up IFTTT AppletSign up for anIFTTT account.Go to theCreatesection.Click onAddforIf Thisand choose"Webhooks".Choose the first option forReceive a web request.Give this event any name, for example,"Notifier", and click onCreate triger.Click onAddforThen Thatand choose"Notifications".Click on the first option forSend a notification from the IFTTT app.Type a message that you want to accompany your notification. Here, you can also add an option for sending variables from runtime when you run code. Click onAdd ingredientand choose any of the threeValuevariables. You can also use theEventNameto add the name of the event in the notification andOccurredAtto get the time when the event occurred.For example,Message Syntax{{EventName}} : Your Code has executed with message {{Value1}} at {{OccurredAt}}Message OutputNotifier : Your Code has executed with message "Model Finished Training" at September 9, 2021 at 07:51PMClick onContinue. Write a Title for your Applet and click onFinish.Go to theWebhook Documentationsto get your key. You will use this key to intialize your code.11. Download the IFTTT app for **[Android](https://play.google.com/store/apps/details?id=com.ifttt.ifttt&hl=en_US&gl=US)** | **[iPhone](https://apps.apple.com/us/app/ifttt/id660944635)**Executionpip install pushnotifRun the following with your event URL that you got when setting up IFTTT instep 10.from pushnotif import PushNotif

handler = PushNotif(key = <your_key>, event = <your_event>)

...

model.fit(...)

...

handler.send("Model Trained")You can put thehandler.send()method at the end of any cell you want to be notified for after execution.
Package: pushnotifier
PushNotifier (V2) for PythonA python module to easily use the service ofPushNotifierin your python projects.You can find the documentationhere.AboutEasily sendmessages ✉️urls 🌎images 🖼️via python to all your devices. For more info visitpushnotifier.deInstallationInstall PushNotifier via pip$pipinstallpushnotifierInstall PushNotifier manually$gitclonehttps://github.com/tomg404/pushnotifier-python$cd/path/to/repository/$pythonsetup.pyinstallUsagefrompushnotifierimportPushNotifierpn=PushNotifier('username','password','package_name','api_key')Sending messages>>>pn.send_text('hello world',silent=False,devices=['abcd','efgh'])>>>pn.send_url('https://www.example.com',silent=False,devices=['abcd','efgh'])>>>pn.send_notification('hello world','https://www.example.com',silent=False,devices=['abcd','efgh'])>>># Note on send_image: currently you can't send images to android/ios devices>>>pn.send_image('path/to/image.png',silent=False,devices=['abcd','efgh'])Get Basic information>>>password='XXXXX'>>>pn.login(password){'username':'username','avatar':'https://gravatar.com/avatar/XXXXX','app_token':'XXXXX','expires_at':XXXXX}>>>pn.get_all_devices()['abcd','efgh','ijkl']Refresh app token>>>pn.refresh_token()'new_token'More detailed helpSee thedocumentationor>>>help(pn.some_method_you_need_help_on)