Saravanan666/pypi-org huggingface dataset:
Package: pynotification
Platform SupportedDeploymentsPyNotificationPython module to trigger OS-agnostic notification/messagebox.Installationpython-mpipinstallpynotificationUsagefrompynotificationimportpynotifierpynotifier(title="Test title",message="Test message")Optional argumentsdialog:Boolean flag to trigger notification as a dialog in a popup window. Blocks process until user has pressedOKicon:Custom icon to be used forLinuxandWindowsoperating systems.Linux: Choose anypre-defined iconsor a.pngfile as icon.Windows: Choose any.icofile as icon. Defaults tonotification.icodestroy:Boolean value to destroy the notification box onWindowsoperating system after notifying.debug:Display logs in the form ofinfo,warningsanderrorsmessages.logger:Bring your ownLoggerfor custom logging.Coding StandardsDocstring format:GoogleStyling conventions:PEP 8Clean code with pre-commit hooks:flake8andisortRelease NotesRequirementpython-mpipinstallgitverseUsagegitverse-releasereverse-frelease_notes.rst-t'Release Notes'LintingPreCommitwill ensure linting, and the doc creation are run on every commit.Requirementpipinstallsphinx==5.1.1pre-commitrecommonmarkUsagepre-commitrun--all-filesPypi Packagehttps://pypi.org/project/pynotification/Runbookhttps://thevickypedia.github.io/pynotification/License & copyright© Vignesh RaoLicensed under theMIT License
Package: pyNotifications
Python NotificationsSend telegram messages through python. Telegram bot is needed.Usagefrom pyNotifications import PythonNotifications

notifyer = PythonNotifications(token=TOKEN, id=CHAT_ID, appName='test')

notifyer.addMessage('Info test', 'info')
notifyer.addMessage('Warning test', 'warning')
notifyer.addMessage('Error test', 'error')

notifyer.sendMessage('error')
notifyer.sendMessage('warning')
notifyer.sendMessage('info')
Package: pynotificator
PyNotificatorHomePage/Documentation/PyPIQuick StartInstallationInstall with pip.$ pip install pynotificatorIf you are using Windows, you need an option:pip install pynotificator[win].Python and Command Line ToolsYou can use command line tools.Beep# Python
from pynotificator import BeepNotification
bn = BeepNotification(3)
bn.notify()

# Command Line Tools
$ beep-notify -t 3Desktop# Python
from pynotificator import DesktopNotification
dn = DesktopNotification('Hello', title='PyNotificator', subtitle='Notify')
dn.notify()

# Command Line Tools
$ desktop-notify -m Hello -t PyNotificator -s NotifySlack# Python
from pynotificator import SlackNotification
sn = SlackNotification('PyNotificator', 'https://hooks.slack.com/services/xxx')
sn.notify()

# Command Line Tools
$ slack-notify -m PyNotificator https://hooks.slack.com/services/xxxDiscord# Python
from pynotificator import DiscordNotification
dn = DiscordNotification('PyNotificator', 'https://discordapp.com/api/webhooks/xxx')
dn.notify()

# Command Line Tools
$ discord-notify -m PyNotificator https://discordapp.com/api/webhooks/xxxLINE# Python
from pynotificator import LineNotification
ln = LineNotification('PyNotificator', 'xxx')
ln.notify()

# Command Line Tools
$ line-notify -m PyNotificator xxxLicenseMIT LicenseAuthorhigurashi-takuto
Package: py-notifier
Python NotificationsPython3 module for sending notifications.The list of available backends:Platform (pynotifier.backends.platform.Backend):macOSLinuxWindowsEmail (pynotifier.backends.smtp.Backend)Platform notifications requirementsWindows:WinToaster- Python moduleLinux:libnotify-binCLI tool (manual installation is required). For Ubuntu run:sudoapt-getinstalllibnotify-binInstallationInstall using pip:pipinstallpy-notifierExampleimportsslimportsmtplibfrompynotifierimportNotificationClient,Notificationfrompynotifier.backendsimportplatform,smtpsmtp_server=smtplib.SMTP_SSL('smtp.gmail.com',465,context=ssl.create_default_context())c=NotificationClient()c.register_backend(platform.Backend())c.register_backend(smtp.Backend(server=smtp_server,name='My Organization',email='sender@organization.com',password='super_password'))filenames=['path/to/file1.json','path/to/file2.txt',# ...]attachments=[]forfilenameinfilenames:attachments.append(smtp.Attachment(open(filename,'rb'),filename))smtp_config=smtp.NotificationConfig(emails=['receiver_1@email.com','receiver_2@email.com'],attachments=attachments)notification=Notification(title='Hello',message='World',smtp=smtp_config)c.notify_all(notification)LicenseThe project is licensed under the terms of theMIT License,
see theLICENSEfile for more information.
Package: py-notify
Py-notify is a Python package providing tools for implementingObserver programming
pattern.  These tools include signals, conditions and variables.Signals are lists of handlers that are called when signal is emitted. Conditions are
basically boolean variables coupled with a signal that is emitted when condition state
changes. They can be combined using standard logical operators (not,and, etc.) into
compound conditions. Variables, unlike conditions, can hold any Python object, not just
booleans, but they cannot be combined.For more verbose introduction, please refer to thetutorial.
Package: pynotifyd
pynotifydSimple freedesktop notification daemon.InstallationpipinstallpynotifydUsagepynotifydoutputs JSON-formatted notification events at the standard output
and debug information atstderr. Each notification is on exactly one line to
make it easier to be collected by shell scripts.Event types:notify- Notification has been emitted{"action":"notify","notification":{"id":3,"app_name":"KDE Connect","app_icon":"kdeconnect","summary":"WhatsApp","body":"Tudor: Hi!","urgency":2}}delete- Notification has been dismissed or expired{"action":"delete","id":1}Example usageRequiresjq.#!/bin/shpynotifyd2>/dev/null|whileread-rline;doaction="$(echo"$line"|jq-r.action)"case"$action"innotify)app_name="$(echo"$line"|jq-r.notification.app_name)"echo"New notification from$app_name!";;esacdone
Package: pynotify-telfer
PyNotifyNotify yourself when your python script (or other programs) are done.Usagenotify send "Complete" "Simulation x has finished"orimport pynotify
pynotify.send("Complete", "simulation x has finished")SetupCreate an Email Account to Send FromCreate a new google accountGo into the accountsettings > securitythen allowLess secure appsInstallClone this repository and cd into itpip install --user pynotify-telferConfigureSave the bot informationnotify sender update --email <bot email> --password <bot password>Add your recipientsnotify add <your email>
Package: pynotifyx
pynotifyx is a simple Python binding to the Linux inotify file system event
monitoring API.Documentation is provided in the module.  To get help, start an interactive
Python session and type:>>> import pynotifyx
>>> help(pynotifyx)You can also test out pynotifyx easily.  The following command will print events
for /tmp:python -m pynotifyx /tmpTests can be run via setup.py:./setup.py testNote that the module must be built and installed for tests to run correctly.
In the future, this requirement will be lifted.Visithttps://github.com/joeisca/pynotifyxfor more information.
Package: pynotion-wrapper
Python NotionA simple wrapper for Notion SDK written in PythonInstallationThis library only supported Python version 3.7 and above, earlier version might be work,
but it still has backward compatibility for current APIspip install pynotion-wrapperUsageBefore to do that, ensure you've setupNotion Integrationand obtain theIntegration Token.
You can see about the Integration inhere.For quick example to get all users :fromnotion.clientsimportNotionAPIversion="2021-05-13"# notion version is requiredsecret="YOUR_NOTION_TOKEN"client=NotionAPI(secret,version)print(client.get_all_users())That following result something like :{'object':'list','results':[{'object':'user','id':'d4da784c-1c77-47e8-96bd-e917d96cd8b8','name':'Ryan Febriansyah','avatar_url':'https://lh4.googleusercontent.com/-O3Rzxu0oM9k/AAAAAAAAAAI/AAAAAAAAAAA/AMZuucnDB5M-7zjHQcTqlJ0JBiAtlA5-RQ/photo.jpg','type':'person','person':{'email':'ryanfebriansyah72@gmail.com'}},{'object':'user','id':'f4eb6dff-b0a9-431e-993f-970f049f1c76','name':'python-sdk','avatar_url':None,'type':'bot','bot':{}}],'next_cursor':None,'has_more':False}This wrapper also providingdictrepresentation, so it will be separate with JSON type and returned as List for relevant
object instances. For example, you can use this property method for retrieve all users information and db information :fromnotion.clientsimportNotionAPIversion="2021-05-13"secret="YOUR_NOTION_TOKEN"client=NotionAPI(secret,version)print(client.get_users_instances)# method for getting all user instancesprint(client.get_db_instances)# method for getting all db instancesthe returned value if using property method will be more simple rather than extensive output like in JSON based :# encapsulated typesUserObjects(object='user',id='d4da784c-1c77-47e8-96bd-e917d96cd8b8',name='Ryan Febriansyah',type='person',email='ryanfebriansyah72@gmail.com')Currently this wrapper only supported for retrieve Notion resources :DatabaseBlocksPagesUserIn the meantime, all APIs endpoint that provided by Notion will be adding into wrapper (for consideration itself,
it might be delayed until Notion API already stable). All contributions are much welcomed!
Package: pynovaposhta
Pynovaposhta - NovaPoshta client for humansInstallation>>>pipinstallpynovaposhtaUsingfromnovaposhtaimportNovaposhtaclient=Novaposhta(api_key='<YOUR_API_KEY>')# Each model in NovaPoshta API has a corresponding client methodareas=client.addresses().get_areas()Supported modelsAddressesCounterpartiesPrintingScanSheetsCommonAdditionalServiceAdditionalServiceGeneralInternetDocumentTODO:Supporting all modelsAsync versionVerbose documentation
Package: pynoveldl
Documents:https://noveldl.readthedocs.io/NovelDLSearch and download novels from some specific websites.
You can star this repository to keep track of the project if it's helpful for you, thank you for your support.Support ListSource_ENSource_CNSupport Search?Support Download?zw81八一中文网✓✓gebiqu阁笔趣✓✓xbiquge笔趣阁✓✓InstallPip installrun "pip install pynoveldl"Source code install(1)Offline
Step1:gitclonehttps://github.com/CharlesPikachu/noveldl.git
Step2:cdnoveldl->run"python setup.py install"(2)Online
run"pip install git+https://github.com/CharlesPikachu/noveldl.git@master"Quick StartRun by leveraging the APIfromnoveldlimportnoveldlconfig={'savedir':'outputs','search_size_per_source':5,'proxies':{},}client=noveldl.noveldl(config=config)client.run()Run by leveraging compiled fileUsage: noveldl [OPTIONS]

Options:
  --version           Show the version and exit.
  -k, --keyword TEXT  想要搜索下载的小说关键字, 若不指定, 则进入noveldl终端版
  -p, --proxies TEXT  设置的代理
  -s, --savedir TEXT  下载的小说的保存路径
  -c, --count TEXT    在各个平台搜索时的小说搜索数量
  -t, --targets TEXT  指定小说搜索下载的平台, 例如"zw81,gebiqu"
  --help              Show this message and exit.ScreenshotProjects in Charles_pikachuGames: Create interesting games by pure python.DecryptLogin: APIs for loginning some websites by using requests.Musicdl: A lightweight music downloader written by pure python.Videodl: A lightweight video downloader written by pure python.Pytools: Some useful tools written by pure python.PikachuWeChat: Play WeChat with itchat-uos.Pydrawing: Beautify your image or video.ImageCompressor: Image compressors written by pure python.FreeProxy: Collecting free proxies from internet.Paperdl: Search and download paper from specific websites.Sciogovterminal: Browse "The State Council Information Office of the People's Republic of China" in the terminal.CodeFree: Make no code a reality.DeepLearningToys: Some deep learning toys implemented in pytorch.DataAnalysis: Some data analysis projects in charles_pikachu.Imagedl: Search and download images from specific websites.Pytoydl: A toy deep learning framework built upon numpy.NovelDL: Search and download novels from some specific websites.MoreWeChat Official AccountsCharles_pikachu
Package: pynovice
# novice1.geo_map: reverse Geocoder takes a latitude / longitude coordinate and returns the nearest town/city.（add google map）2.bert_extracter: Extract text features from bert.3.rule_engine: A simple extensible rules engine implemented in Python.4.score_card: A complete score card process.[bins,woe,model_pre,score,auc,ks,lift,psi,csi]5.data_base: DistributionAnysis:Analyze and plot the data[bar,lines,page,tab]
Package: py-now-playing
Py Now PlayingThis project started as me wanting to create a Discord RPC that would take the currently playing audio from a specified application, and put that onto my Discord activity. I found some windows apis that allow me to do this, however they weren't intuitive to use. So, I started this.How to use# Initalize the Classnp=NowPlaying()#initalize the mediamanagernp.initalize_mediamanager()To get the active media apps, useget_active_app_user_model_ids().
Then you can use a filter or a loop to find the application you're looking for.list(filter(lambda app: app['Name'] == 'App Name', now_playing))Then use something likenow_playing[0]['AppID']to get the appid from the filter, and pass that intoget_now_playing(app_user_model_id)to get the currently playing media for that application.Other NotesI've noticed that even when using Firefox and watching YouTube videos, that the playback_type is still MediaPlaybackType.MUSIC. I'll have to figure out why and if that changes at all.Note that if you're testing the Amazon Music RPC I made in /tests, because Amazon has a skill issue Amazon Music doesn't always report the current song to Windows properly, so it may not appear correct.Above: The Discord RPC Application using Py Now Playing and Pypresence
Package: py-np4vtt
NP4VTTNP4VTT is a Python package that enables researchers to estimate and compare nonparametric models in a fast and convenient way. It comprises five nonparametric models for estimating the VTT distribution from data coming from two-attribute-two-alternative stated choice experiments:Local constant model  (Fosgerau, 2006, 2007)Local logit (Fosgerau, 2007)Rouwendal model (Rouwendal et al., 2010)Artificial Neural Network (ANN) based VTT model (van Cranenburgh & Kouwenhoven, 2021)Logistic Regression based VTT model (van Cranenburgh & Kouwenhoven, 2021)Additionally, a Random Valuation model (Ojeda-Cabral, 2006) is included for benchmarking purposesInstallation stepsUsepipto install thepy-np4vttlibrary normally:python3 -m pip install py-np4vttExamplesWe provide Jupyter Notebooks that show how to configure and estimate each model included in NP4VTT:Local constant model:linkLocal logit:linkRouwendal model:linkANN-based VTT model:linkLogistic Regression-based VTT model:linkThese examples guide the user through the process of loading a dataset, estimating a nonparametric model, and visualising the VTT distribution using scatter and histogram plots. We use the Norwegian 2009 VTT data to illustrate each example.Take, for example, the VTT distribution from the Rouwendal model using NP4VTT:ReferencesFosgerau, M. (2006). Investigating the distribution of the value of travel time savings. Transportation Research Part B: Methodological, 40(8), 688–707.https://doi.org/10.1016/j.trb.2005.09.007Fosgerau, M. (2007). Using nonparametrics to specify a model to measure the value of travel time. Transportation Research Part A: Policy and Practice, 41(9), 842–856.https://doi.org/10.1016/j.tra.2006.10.004Rouwendal, J., de Blaeij, A., Rietveld, P., & Verhoef, E. (2010). The information content of a stated choice experiment: A new method and its application to the value of a statistical life. Transportation Research Part B: Methodological, 44(1), 136–151.https://doi.org/10.1016/j.trb.2009.04.006Ojeda-Cabral, M., Batley, R., & Hess, S. (2016). The value of travel time: Random utility versus random valuation. Transportmetrica A: Transport Science, 12(3), 230–248.https://doi.org/10.1080/23249935.2015.1125398van Cranenburgh, S., & Kouwenhoven, M. (2021). An artificial neural network based method to uncover the value-of-travel-time distribution. Transportation, 48(5), 2545–2583.https://doi.org/10.1007/s11116-020-10139-3
Package: pynpm
Python interface to your NPM and package.json.Further documentation is available onhttps://pynpm.readthedocs.io/.InstallationPyNPM is on PyPI so all you need is:$pipinstallpynpmUsageFirst point PyNPM to yourpackage.json:frompynpmimportNPMPackagepkg=NPMPackage('path/to/package.json')Now you can run e.g.npm installfrom within Python:pkg.install()Arguments are also support so you can run e.g.npm run build--report:pkg.run_script('build','--report')Want to useyarninstead?frompynpmimportYarnPackagepkg=YarnPackage('path/to/package.json')pkg.install()By default NPM output is piped through and the function call will wait for NPM
to finish. If you want to silence the output or interact with process passwait=Falseand you will get a subprocess.POpen object back:p=pkg.install(wait=False)p.wait()By default you can run the following NPM commands:buildinitinstalllinkrun-scriptstartstoptestYou can also run other NPM commands or restrict which commands you can run:pkg=NPMPackage('path/to/package.json',commands=['install'])Trouble shootingWindows user may face the following error when running theNPMcommand:[WinError 2] The system cannot find the file specifiedIt means supbrossess is unable to run the specific command. To fix this issue,
use theshell=Trueoption uppon class initialization:pkg=NPMPackage('path/to/package.json',shell=True)!DANGER!This option is not recommended for security reasons. It should only be used
on trusted inputs.ChangesVersion 0.2.0 (released 2023-11-27)Addedshellargument.Package structure update.Addedblackformatting.Dropped Python 3.6 support.Version 0.1.2 (released 2020-05-06)Deprecated Python versions lower than 3.6.0. Now supporting 3.6.0 and 3.7.0.Version 0.1.1 (released 2017-05-16)Fix problem with testing click CLI output.Version 0.1.0 (released 2017-05-12)Initial public release.
Package: pynpm-download
pynpm-download - A Js Dependency Downloader using NPM Public Registry APIUsagefrompynpmdimportJsLibResolverlibs=["d3","@hpcc-js/wasm"]rsvr=JsLibResolver()forlibinlibs:print(rsvr.get_lib(lib))FAQWhats the difference to other approaches?Most other libaries are either bound to a certain Web-framework or use npm binary. This library only uses the web api.Why don't you use Google Hosed Libraries (or similar) to get external js-libraries?GDPR (If there is no other server, you do not have to point it out in the privacy policy.)It works locally with bad or no internet connection (after inital download).
Package: pynpoint
Pipeline for processing and analysis of high-contrast imaging dataPynPoint is a generic, end-to-end pipeline for the reduction and analysis of high-contrast imaging data of exoplanets. The pipeline uses principal component analysis (PCA) for the subtraction of the stellar PSF and supports post-processing with ADI, RDI, and SDI techniques. The package is stable, extensively tested, and actively maintained.DocumentationDocumentation is available athttp://pynpoint.readthedocs.io, including installation instructions, details on the pipeline architecture, and several notebook tutorials.AttributionIf you use PynPoint in your publication then please citeStolker et al. (2019). Please also citeAmara & Quanz (2012)as the origin of PynPoint, which focused initially on the use of PCA as a PSF subtraction method. In case you use specifically the PCA-based background subtraction module or the wavelet based speckle suppression module, please give credit toHunziker et al. (2018)orBonse et al. (preprint), respectively.ContributingContributions in the form of bug fixes, new or improved functionalities, and pipeline modules are highly appreciated. Please consider forking the repository and creating a pull request to help improve and extend the package. Instructions forcoding of a pipeline moduleare available in the documentation. Bugs can be reported by creating anissueon the Github page.LicenseCopyright 2014-2021 Tomas Stolker, Markus Bonse, Sascha Quanz, Adam Amara, andcontributors.PynPoint is distributed under the GNU General Public License v3. See theLICENSEfile for the terms and conditions.AcknowledgementsThe PynPoint logo was designed byAtlas Interactiveand isavailablefor use in presentations.
Package: pynprimos
Facilitando un número n a la función esta devuelve los números primos hasta n, indicando también la cantidad que ellos.El paquete se llama pynprimos y la función nprimos.
This 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: pynput-json-manager
Json_ManagerThe purpose of the project is to provide a single package that handles experimental setups for your work. The structure of a set of experiments is as follows. We have a folderpath_to_informationwhich will contain the different options for our experiments (is it running? hyper-parameters,...) and a folderexp_folderwhich will contain one json file per-exp.To have a simple and straight-forward way to create and manage the files, we use pynput which requires some authorization at installation (see thislinkfor more information).InstallationYou have two options: either git clone or pip install usingpip install pynput-json-managerTutorial (for git clone or submodule)I made atutorial(you can copy/paste the CLI from the video demo) for this package. In the tutorial, we create experiments which will depend on three parameters. The first one is an integer with default value 2, the second is bool with default value True and the last is a flaot with default value 2.5 (and only values of .0 or 0.5 are accepted). Then we create three experiments, before deleting one and removing the second option (the bool option).In the tutorial, we show how you can navigate when generating exp (i use the arrows of the keyboard) and type values when setting float/int variables.Tutorial (for pip installation)I also made atutorialfor the use after pip install. In the case of pip install, the base command becomespython -m pynput_json_manager.manage_jsonsHow to useWe can do several things hereget a summary of all the experiments availableadd a new options for old and future experiementsgenerate new experimentsdelete old experimentsdelete parameters in all experimentsreset experiments values to default (in order to restart experiments for example)For all cli command, you can add the following arguments--exp_folderand--path_to_informationto have a custom folder naming. Note that if the folders don't exist they are created by the program.summary of all experimentssimply runpython -m src.pynput_json_manager.manage_jsons --statusor useget_status(exp_folder, path_to_information)add optionsimply runpython -m src.pynput_json_manager.manage_jsons --add_paramor useadd_parameters_to_exps(exp_folder, path_to_information)generate a new expsimply runpython -m src.pynput_json_manager.manage_jsons --generateor usecreate_exp(exp_folder, path_to_information)delete experimentssimply runpython -m src.pynput_json_manager.manage_jsons --deleteor usedelete_exps(exp_folder, path_to_information)delete parameterssimply runpython -m src.pynput_json_manager.manage_jsons --delete_paramor usedelete_key_in_exps(exp_folder, path_to_information)reset experimentssimply runpython -m src.pynput_json_manager.manage_jsons --reset arg1 arg2or usereset_exps(exp_folder, path_to_information, keys_to_reset)