Saravanan666/pypi-org huggingface dataset:
Package: purviewcli
Microsoft Purview CLIThis package provides a command line interface to Microsoft Purview's REST API.Getting StartedGetting Started- how to install, setup, and use purviewcli.Installationpip install purviewcliUsagepv command sub-command --parameter1='value' --parameter2='value'Parameter TypesAll parameters are required by default.Parameters enclosed with square brackets "[ ]" are optional.Mutually exclusive parameters are enclosed with parens "( )" and separated with a pipe "|".The "=<val>" indicates parameters which require an input (e.g. --parameter=<val>). Input can be specified after a space (e.g. --parameter 'value') or equal "=" sign (e.g. --parameter='value').Parameters that do not require an input areFalseby default andTrueif present (e.g. --ignoreRelationships).The ellipsis "..." indicates parameters that are allowed to repeat (e.g. --guid='12345' --guid='23451' --guid='34512')Command ReferenceControl Plane (Azure Resource Manager)CommandSurface Areapv managementAccount,Private Endpoint,OtherData Plane (Apache Atlas)CommandSurface Areapv entityBusiness Attribute,Business Metadata,Label,Classification,Entitypv glossaryGlossary,Terms,Categoriespv lineageLineagepv relationshipRelationshippv typesClassification,Entity,Enum,Relationship,Struct,Term TemplateData Plane (Other)CommandSurface Areapv accountAccount,Collection,Resource Set Rulepv insightAsset,Scanpv policystoreMetadata Policies,Data Policiespv scanClassification Rule,Credential,Source,Scan,Filter,Ruleset,Triggerpv searchSearchpv shareShares,Invitations,Mappings,Assets
Package: purview-py
Purview PythonDescriptionThis package is meant to act as a wrapper for the MSFT Purview (and Apache Atlas) APIs. It is currently in development bySpydernaz. To set up a development instance in Apache Atlas, you can see this repohereInstallationThis package runs on python3 and above. To install runpip3installpurview_pyConfigurationDescribe the config StepsExample UsageThe follow code will connect to your purview instance and fetch thehive_tabletype. From here you could modify some details and then update your server as shown in the second part of this snippetimportpurview_py# Your configurationCLIENT_ID=__YOUR_CLIENT_ID__CLIENT_SECRET=__YOUR_CLIENT_SECRET__TENANT_ID=__YOUR_TENANT_ID__resource=__YOUR_RESOURCE__# Create a connection to your resourceconn=purview_py.PurviewConnection(resource,purview_py.TokenAuth(CLIENT_ID,CLIENT_SECRET,TENANT_ID))# Fetch the hive_table typet=purview_py.PurviewType.getTypeByName(conn,"hive_table")# Add some new attributes to the type# Update the Type in PurviewDocs
Package: pus
pusUpdate the required packages in setup.cfg file.InstallEnterpipinstallpusfrom the command-line.UsageEnterpussetup.cfgRunning the testsEnterpython-c"import pus; pus.test()"AcknowledgmentThis package is mostly a wrapper around thepurpackage.
Many thanks to its contributors!AuthorsDanilo HortaLicenseThis project is licensed under theMIT License.
Package: push7
# push7-pythonpush7 api client for pythonsupporting python2.7 and python3.4# Usage```bashpip install push7```## InitializeFirst, you should create a client for push7.```pythonfrom push7 import Clientappno = 'edit_your_appno'apikey = 'edit_your_apps_apikey'client = Client(appno, apikey)```## Create Push```python# Immediatelyclient.push("title", "body", "http://arg.vc/icon.png", "http://arg.vc/").send()# Create a reserved push ( push7 system will be send push to user after 4 hours)from datetime import datetime, timedeltatarget_datetime = datetime.now() + timedelta(hours=4)client.push("title", "body", "http://arg.vc/icon.png", "http://arg.vc/", target_datetime).send()```## Create Push with Query```pythonfrom push7.push import PushWithQuery as queryparameters = ['user001', 'user002']client.push_with_query("title", "body", "http://arg.vc/icon.png", "http://arg.vc/", query.Mode._or, parameters).send()```# For Contributors## TestingIf you want to run tests, you should set environment vars 'PUSH7_APPNO' and 'PUSH7_APIKEY'.After setting environment vars, you can run tests by below commands.```bashtox```## Pylint```bashcd push7pylint * --disable=R,C,unused-import,locally-disabled```## Mypy```bashcd push7mypy --ignore-missing-imports *.py```## Yapf```bashcd pushyyapf -r -i push7/```
Package: push7-cmd
This command provides a push7 command.
Using this command, you can send a push notification from your terminal to your browser usingpush7.jp.Installationpipinstallpush7-cmdSetupFirst, you should add a push7 application into push7-cmd.push7applicationsadd'your_appno''your_apikey'push7applicationslistpush7applicationsuse'your_appno'Usage# Send a push from stdinpush7<a.txt# Send a push from stdinecho'notification'|push7a-time-consuming-command|push7# Send a push with given titleecho'notification with given title'|push7-t'test push'# Send a push without stdinpush7--title'poe'--body'poe'a-command-will-cause-output-like-a-flood|push7--body'finish the command'# Add new applicationpush7applicationsadd'your_appno''your_apikey'# List registed applicationspush7applicationslist# Delete the applicationpush7applicationsdelete'your_appno'# Change default applicatios
# Default applications means : An application which this command will use when you sent a push.push7applicationsuse'your_appno'# Helppush7--helpAll Commandspush7applicationslistpush7applicationsdelete<appno>push7applicationsadd<appno><apikey>push7applicationsuse<appno>push7--titletitle--bodybody
Package: pushable
Package DescriptionThis is a Python package that provides a simple class Pushable that creates "pushable" iterators by wrapping an inner iterator/iterable. Pushable iterators act like dynamically expanding queues, allowing you to peek ahead or push items back onto the queue.Basic UsageWe can turn any iterable/iterator into a pushable iterator using the constructor.count_up = Pushable( range( 0, 5 ) )We can use it like an ordinary iterator:print( next( count_up ) )
# Prints 0Or we can look-ahead to see what is coming:whats_up_next = count_up.peek()
print( whats_up_next )
# Print 1
print( next( count_up ) )
# Also prints 1 because peek does not remove the item from the internal queue.We can even push back items onto it:count_up.push("cat")
count_up.push("dog")
print( list( count_up ) )
# Prints 'dog', 'cat', 2, 3, 4ExamplesFrom an iterator such as a file-object, which will iterate over the lines in a file, create a peekable/pushable iterator. This can be useful for example when we want to know if the iterator still has contents or want a sneak peek at what is coming.frompushableimportPushabledefread_upto_two_blank_lines(filename):withopen(filename)asfile:plines=Pushable(file)# Pushable iterators can be used as booleans in the natural way.whileplines:line=next(plines)# peekOr makes it safe to look ahead.ifline=='\n'andplines.peekOr()=='\n':# Two blank lines encountered.breakelse:yieldlineIt is also useful to perform "macro-like" transformation.frompushableimportPushabledeftranslate(text,translations):ptokens=Pushable(text.split())whileptokens:token=next(ptokens)iftokenintranslations:ptokens.multiPush(*translations[token].split())else:yieldtokenprint(' '.join(translate('My name is MYNAME',{'MYNAME':'Fred Bloggs'})))# Prints: My name is Fred BloggsMore Complex UsesIn addition to peeking and popping items, which risks raising aStopIterationexception if there's nothing left on the internal queue, we
can utilisepeekOrandpopOrto deliver a default value instead. The
default value is passed as an optional parameter and falls back to None.We can also peek and pop multiple values usingmultiPeekOrandmultiPopOr,
which return generators. These support skipping over values so that you can
get the 2nd and 3rd value without getting the first e.g.(second,third)=Pushable("pqr").multiPop(skip=1,count=2)print(second,third)# Prints: q rLastly, we can push multiple items withmultiPush:count_up.multiPush("cat","dog","rabbit")print(list(count_up))# Prints: ['cat', 'dog', 'rabbit']For a full set of available methods seethe documentation.
Package: pushbaby
IntroductionPushBaby is a simple APNS library using gevent. PushBaby aims to
do the hard bits of APNS for you and no more. It handles:Packing APNS messages into the binary payload formatEstablishing and reestablishing SSL connectionsReceiving and propagating errors to your application, asynchronouslyEncoding pushes to JSON using efficient encodingTruncating messages to fit APNSRetrying pushes on nonfatal errorsPushBaby takes APNS payloads as dictionaries: it does not attempt to
construct them for you.PushBaby does not load balance over multiple connections, although
this is something that would be considered in the future.If you use PushBaby, remember that the rest of your application
must be gevent compatible, or you’ll find PushBaby won’t do
important things like receive errors.Why PushBaby?There are many alternative APNS libraries for Python, for example:applepushnotificationhttps://github.com/martinkou/applepushnotificationSimilar, gevent-based library. Unmaintained.apnshttps://github.com/djacobs/PyAPNsUses pure python threads but will not always feed back errors if pushes can’t
be sent to the gateway.pyapnshttps://github.com/samuraisam/pyapns/tree/masterA full-featured XML-RPC HTTP-to-APNS server.apns-clerkhttps://bitbucket.org/aleksihoffman/apns-clerkFork of apns-client. Waits for error responses but means all calls to send a
push block synchronously for some time.APNSWrapper / HypnoAPNSWrapperhttps://code.google.com/p/apns-python-wrapper/Unmaintained. Uses openssl s_client.apns-clienthttps://bitbucket.org/sardarnl/apns-clientUnmaintained
Package: pushbot
A Python library that streamlines your repository creation and commits on Github in 2 lines of code.FeaturesRepository creationCommits to existing repositoryAutomatically Merge conflicts resolvedHigh-level wrapperI've built this library to both explore how Github API works and ease my process to create and commit to my Github account. If you're using VS Code editor, it should already be streamlined but for beginners it is not that straightforward. Besides, resolving merge conflicts is another pain that one-might encounter while doing push through git interface (bash). That is why, I have developed this project.Long-term planDeveloping a total terminal interface through which users can perform almost any operation on Github.PrerequisitesGitHub accountGithub Personal Access Token (Fine-grained version)Python 3.8. X installedQuickstartInstallingpipinstallpushbotimporting the libraryfrompushbotimportpush_repopush_repo()
Package: pushbots
A python 2/python 3 REST API library module (wrapper) forpushbots. The module, the tests and the
examples work for both python 2 and python 3 versions.Current “pushbots” module supports all of the pushbots API calls. List
of supported API calls follow:Register (For testing API call)Register Batch (For testing API call)unRegister (For testing API call)AliasTagunTagDevice Location (For testing API call)Devices InfoDevice Info (For testing API call)Push (For testing API call)Push BatchGet Push analyticsRecord AnalyticsIn the list above, some of the API calls are tagged with “(For testing
API call)”. This means that a token is needed to perform those API calls
and since this module is reserved for backends, you, normally, won’t be
using those API calls. Though you can retrieve device tokens based on
alias, tags, etc through devices info (see
examples/get_token_from_alias.py and examples/location.py,
examples/unregister.py for more info):There is also a second list of generic API calls, for calls not listed
in the first list. At the moment of creating this all API calls are
supported. This is provided for future API calls:Put (For generic put API calls, not listed above)Post (For generic post API calls, not listed above)Get (For generic get API calls, not listed above)InstallYou can choose to install “pushbots”. If you don’t want to install it,
you can manually copy the “pushbots” package into your project. There
are two ways to install “pushbots”.With pip:pip install pushbotsManually: Go toreleasesand download
the latest version. Extract the compressed file, navigate to project’s
root directory and run:python setup.py installDependenciesFor “pushbots” to work, python “requests” must be installed. If you
already have “setuptools” installed and choose to install “pushbots”
from pip or setup.py, you don’t have to manually install “requests”.
On any other case, you must install it manually:http://docs.python-requests.org/en/latest/pipinstallrequestsHow to usefrompushbotsimportPushbots# Your codeExamplesYou can find examples under pushbots/examples directory. If there is an
API call missing from the first list mentioned above, you can view the
examples/generic.py examples, on how to make custom API calls, listed in
the second list mentioned (put, post, get). If you want to perform token
operations, you can use the examples/get_token_from_alias.py to get
the devices tokens and platforms associated with a specific alias. Also
the files, examples/location.py and examples/unregister.py make use of
tokens to make an API call, whereas all the other files in examples make
use of alias, tags etc for the API calls.TestsThe tests package is located under pushbots directory. Tests create
virtual devices to test the API calls provided by “pushbots” module. You
can run the tests by typing:python-mpushbots.tests.runIf you want help on how to run tests, type:python-mpushbots.tests.run-h
Package: pushbullet-cli
Installation$ pip install pushbullet-cliUsageUsePushbulletfrom the command line.First of all, set your API key by running:$ pb set-keyThen pasting your API key at the prompt.Push stdin to all devices:$ echo "hello" | pb pushPush text to all devices:$ pb push "I love burritos"Pick a device to push to:$ pb list-devices
# Find the index of your desired device
$ pb push -d 0 "iPhones cannot eat burritos"Push links:$ pb push --link https://www.pushbullet.com/Push files:$ pb push --file /path/to/burrito_photo.jpgPush to all subscribers of channel:$ pb push -c "CHANNEL" "Why burritos are better than tacos"Send an SMS:$ pb sms -d 0 -n +123456789 "I sense a soul in search of answers"List your pushes:$ pb list -c 20To set the API key from within python:import keyring, keyrings.alt
if isinstance(keyring.get_keyring(), keyrings.alt.file.EncryptedKeyring):
    keyring.set_keyring(keyrings.alt.file.PlaintextKeyring())
keyring.set_password("pushbullet", "cli", PUSHBULLET_KEY)Changelog1.2.2Bump dependenciesAdd support for python 3.101.2.1Bump dependenciesFix #991.2Bump dependencies1.1Bump keyring version (Security patches)1.0Remove Python 2.7 support (Countdown)Support to Click 7.0Add test casesAdd CI buildAdd coverage report0.7.6List previous pushes (#35)Avoid prompt the user when message is piped (#34)Removes default title (Note) (#36)ContributionMany thanks to the original author @r-darwishPull requests are welcomeTake a look at theContributing
guidelines
Package: pushbullet-python
pushbullet-pythonA Python wrapper around the Pushbullet API to send different types of push notifications to your phone or/and computer.Installationpip3 install pushbullet-pythonRequired Package:requestsUsage ExampleimportosfrompushbulletimportAPI# set the API Class and link it to the api objectapi=API()# now set the tokenaccess_token=os.environ['access_token']api.set_token(access_token)# now you can use the API Wrapper# sending a note, arguments: title, messageapi.send_note("Hello","How are you? This is a test from the Pushbullet Python API wrapper.")# sending a link, arguments: title, message, urlapi.send_link("A Link","Here is my website.","http://www.lingeswaran.com")# sending a file, arguments: title, message, file name, file type, file urlapi.send_file("An Example Image","Check out the example image!","test_image.png","image/png","https://dummyimage.com/600x400/000/fff")
Package: pushbullet-tools
PushBullet Messaging and Alerting toolsTo use this you should get the pushbullet app on your phone.
On your computer, first go to thepushbulletwebsite, and create an account. Then go toSettingsand clickCreate Access
Token. Copy this token as you will need it for configuring pushbullet_tools.Installationpipinstallpushbullet_tools
pbmsgconfigYOUR_PUSHBULLET_API_TOKENThis will store your API token using your user's local python keyring.Command-line Usagepbmsgpush-m'push a simple message'pbmsgpush--title'message title'-m'message body'pbmsgpush--link<URL>--title'Link Title'--body'additional message to include'pbmsgpush--file<FILE_URL>Context ManagerThepushbullet_tools.push_alertcontext manager you can execute a process and
receive a push notification on process completion or on error.importpushbullet_toolsaspbtwithpbt.push_alert():/**insertlongrunningprocesshere**/withpbt.push_alert(title='With love from{username}',success_msg='This Turkey is cooked!',fail_msg='There was a problem see:{error}',closing_func=cleanup_func):/**dolotsofstuff**/The messages can be customized and aclosing_funccan be assign to run after
process regardless of whether an error is thrown.Sending messages in pythonfrompushbullet_toolsimportpush_messageaspmpm.push_note(pm.HOSTNAME,pm.USERNAME+' says hi')pm.push_link('link title','some message context','link URL')pm.push_file('some_file.py','text/python','https://file.download.url')
Package: pushcart
pushcartHelps with moving potatoes, bricks and data around.Pushcart is a metadata-based solution accelerator running on top of Spark. It also provides a set of ready-made functionalities for data transformations which might otherwise take a lot of code to put together using onlypyspark.sql.functions.Who is this forData engineers writing pure Spark codeData engineers working with Databricks Delta Live TablesHow does the metadata look like?Useful for transforming data from bronze to silver, a metadata specification looks as such:column_ordersource_column_namesource_column_typedest_column_namedest_column_typetransform_functiondefault_valuevalidation_rulevalidation_action0idstringIdintId IS NOT NULLDROP1first_namestring2surnamestring3Namestring"F.concat_ws(' ', F.col('first_name'), F.col('surname'))",F.lit('John Doe')4dobstringDateOfBirthdate"F.to_date(F.col('dob'), 'yyyy-MM-dd')"5record_tsstringRecordDateTimetimestamp"F.to_timestamp(F.col('record_ts'), 'yyyy-MM-dd HH:mm:ss')"RecordDateTime IS NOT NULLDROP
Package: pushco
PushCo -a Python API for push.coPushco is a simple API to provide access to your push.co app.
Register one athttp://push.co, you will get an API key and an API secret assignedInstall:pip install pushcoTypical usage would be:from pushco.pushco import Pushco

API_KEY = 'your API key'
API_SECRET ='your API secret'

p = Pushco(API_KEY, API_SECRET, 'Hi, this is a push message')
p.push()

#url view
p = Pushco(API_KEY, API_SECRET, 'Click for Python', url = 'http://python.org')
p.push()

#map view
p = Pushco(API_KEY, API_SECRET,'London', latitude = '51.5072', longitude='0.1275')
p.push()
Package: pushcollector
A Python library for collecting information from push tasks, used byrelease-engineeringpublishing tools.SourceDocumentationPyPIInstallationInstall thepushcollectorpackage from PyPI.pip install pushcollectorUsage ExamplefrompushcollectorimportCollector# Get an instance of a collector; the concrete backend returned# may differ per execution environmentcollector=Collector.get()# Save a log filecollector.attach_file('pushlog.json',json.dumps(somedata)).result()# Append to a log filecollector.append_file('pushlog.txt',sometext).result()# Save some push item(s)collector.update_push_items(items).result()DevelopmentPatches may be contributed via pull requests tohttps://github.com/release-engineering/pushcollector.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: pushdata-io
Pushdata Python client libraryThis library allows you to easily store and retrieve time series data using the online servicepushdata.io.Installationpip install pushdata-ioGetting startedYou can start storing data onpushdata.ioimmediately, without even registering an account there. Just install this package and write three lines of code, like this:importpushdatapd=pushdata.Client(email="youremail@yourdomain.com",tsname="MyTimeseries")pd.send(12345)# Stores the data point 12345, timestamped with the current date and timeAfter you've run the code and stored at least one data point, go tohttps://pushdata.io/youremail@yourdomain.comwhere you will be able to view your timeseries.Usageimportpushdata# 1. Initialize with no authentication# Initialize with our account email and time series name we want to usepd=pushdata.Client(email="myemail@example.com",tsname="mytimeseries")# 2. ...or initialize with authentication (for account with security=on)pd=pushdata.Client(apikey="thd8JT73LsB8jah0F4d9",tsname="mytimeseries")# Send a data point to the time seriespd.send(4711)# Send to another time series by overriding tsnamepd.send(4711,tsname="myothertimeseries")# Retrieve all data from the time seriesresponse=pd.recv()# Or from another time seriesresponse=pd.recv(tsname="anothertimeseries")# Retrieve data timestamped during the last weekimportdatetimeone_week_ago=datetime.datetime.now()-datetime.timedelta(days=7)response=pd.recv(fromtime=one_week_ago)# Retrieve data for one 24-hour period, one week agoimportdatetimeone_week_ago=datetime.datetime.now()-datetime.timedelta(days=7)one_week_ago_plus_24h=one_week_ago+datetime.timedelta(days=1)response=pd.recv(fromtime=one_week_ago,totime=one_week_ago_plus_24h)## Print time series data## We get a Python Requests response object from recv(), which# includes response code, raw HTTP response body, and more.# We use the .json() method to parse the body text as JSON# and get a dictionary:tsdata=response.json()## And then we print stuff:print("Timeseries name: "+tsdata["name"])print("First point recorded at   : "+tsdata["first"])# timestamp of first point in time seriesprint("Last point recorded at    : "+tsdata["last"])# timestamp of last point in time seriesprint("Total number of points    : "+tsdata["total"])# total number of points in timeseriesprint("Number of points returned : "+tsdata["returned"])# number of points returned in this callprint("---- Points ----")forpointintsdata["points"]:print("Time=%svalue=%f"%(point["time"],point["value"]))## tsdata (the decoded JSON response from pushdata.io) is# a dictionary that looks like this:#  {#     "name": "mytimeseries",#     "first": "2019-02-15T07:43:31.546805Z",#     "last": "2019-03-05T11:21:06.20951Z",#     "total": 482,#     "returned: 482,#     "offset": 0,#     "limit": 10000,#     "points": [#        {#           "time": "2019-02-15T07:43:31.546805Z",#           "value": 4711.0#        },#        ...#     ]#  }## See https://speca.io/ragnarlonn/pushdata-io#TimeSeriesData#