Saravanan666/pypi-org huggingface dataset:
Package: pfioh
Table of ContentsOverviewpfiohInstallationPython Virtual EnvironmentUsing thefnndsc/pfiohdockUsageEXAMPLESOverviewThis repository providespfioh– aserverprocess (think of it as anonymousftpthat natively understands recursive paths) that allows for file/path push/copy.pfiohpfiohis a service that pushes/pulls files and directories between different locations.InstallationInstallation is relatively straightforward, and we recommend using either python virtual environments or docker.Python Virtual EnvironmentOn Ubuntu, install the Python virtual environment creatorsudoaptinstallvirtualenvThen, create a directory for your virtual environments e.g.:mkdir~/python-envsYou might want to add to your .bashrc file these two lines:exportWORKON_HOME=~/python-envssource/usr/local/bin/virtualenvwrapper.shThen you can source your .bashrc and create a new Python3 virtual environment:source.bashrcmkvirtualenv--python=python3python_envTo activate or “enter” the virtual env:workonpython_envTo deactivate virtual env:deactivateUsing thefnndsc/pfiohdockThe easiest option however, is to just use thefnndsc/pfiohdock.dockerpullfnndsc/pfiohand then rundockerrun--namepfioh-v/home:/Users--rm\fnndsc/pfioh\--forever--httpResponse\--storeBase=/tmp--createDirsAsNeededUsagepfiohusageForpfiohdetailed information, see thepfioh wiki page.[--ip<IP>]

The IP interface on which to listen. Defaults to current host IP.

[--port<port>]
The port on which to listen. Defaults to '5055'.

[--forever]
Start service and do not terminate.

[--httpResponse]
Send return strings as HTTP formatted replies with content-type html.

[--storeBase<storagePath>]
A file system location in the network space accessible to ``pfioh``
that is used to unpack received files and also store results of
processing.

[--createDirsAsNeeded]
If specified, create dirs in the base storage as needed.

[--enableTokenAuth]
Enables token based authorization and can be configured to look for a .ini
file or an openshift secret.

[--tokenPath<tokenPath>]
Specify the absolute path to the token in the file system.
By default, this looks for the pfiohConfig.ini file in the current working directory.

[--swift-storage]
If specified, use Swift as object storage.

[--test]
Run internal tests.

[-x|--desc]
Provide an overview help page.

[-y|--synopsis]
Provide a synopsis help summary.

[--version]
Print internal version number and exit.

[-v|--verbosity<level>]
Set the verbosity level. "0" typically means no/minimal output. Allows for
more fine tuned output control as opposed to '--quiet' that effectively
silences everything.EXAMPLESStartpfiohinforevermode, accessible on localhost:pfioh\\--forever\\--port5055\\--storeBase=/tmp\\--httpResponse\\--createDirsAsNeeded\\--verbosity1\\--ip127.0.0.1
Package: pfla
pfla: Python Facial Landmark AnalysisA simple command line interface to automate facial analysis.pflauses a
pre-trained neural networks to detect faces and annotate them with 68
landmarks. The program also compyte four commonly used facial metrics. The
output is saved to a file to allow for easy statistical analysis by the user.PublicationThis software was published inJOSS. Since version 1.0.0,
the packaged has changed considerably. The publication release is still
availablehere.CitingIf you use this software please use this citation:@article{Rousseau_2018,
doi = {10.21105/joss.00855},
url = {https://doi.org/10.21105%2Fjoss.00855},
year = 2018,
month = {dec},
publisher = {The Open Journal},
volume = {3},
number = {32},
pages = {855},
author = {Maxime Rousseau and Jean-Marc Retrouvey},
title = {pfla: A Python Package for Dental Facial Analysis using Computer Vision and Statistical Shape Analysis},
journal = {Journal of Open Source Software}}FeaturesFace detection using mtcnnLandmark placementFacial metric calculationsRequirements and DependenciesPython 3.5 (or higher)Python packages:numpypandaspytestpillowfacenet-pytorchface-alignmentpytest-covpytorchInstallationInstall withpip:pipinstall-rrequirements-pytorch.txt\# pytorch for CPU-fhttps://download.pytorch.org/whl/torch_stable.html
pipinstall-rrequirements.txt# other dependenciespipinstallpflaUsageusage:pfla[-h][-d][-l][-m][-oOUTPUT][-v]path

PFLA:pythonfaciallandmarkanalysis.Thisprogramwillreadtheimage(s)givenasinputandcanapplyafacedetectionalgorithm,landmarkplacement
andcomputationofmetrics.Theresultsarereturnedasatextstream.

positionalarguments:pathpathtotheimageordirectoryofimages

optionalarguments:-h,--helpshowthishelpmessageandexit-d,--detectdetectfacesandoutputboundingbox-l,--landmarkannotatedetectedfacesandoutputcoordinates-m,--metricscomputemetricsandoutputresults-oOUTPUT,--outputOUTPUTspecifyoutputfilenameandformat/filetypeofthedata-v,--verboseincreaseoutputverbosity

AUTHOR:MaximeRousseauLICENSE:MITTestingTo test your installation run the following commands:cd[PATH_TO_PACKAGE_INSTALLATION]pytestDocumentationDocumentation of the package can be found here:https://pfla.readthedocs.io/en/masterContributeContribution guidelines:https://github.com/maxrousseau/pfla/blob/master/contributing.mdIssue Tracker:https://github.com/maxrousseau/pfla/issuesSource Code:https://github.com/maxrousseau/pflaLicenseThe project is licensed under the MIT license.ContactMaxime Rousseau, DMD candidate 2020 McGill University, Faculty of DentistryEmail:maximerousseau08@gmail.comWebsite:https://maxrousseau.github.io/portfolio/
Package: pflib
Python3 pushgateway libraryAboutPython3 library with functions for sending metrics toPushgateway.Installpip install pflibUsageMetric:FunctionArgs neededDescriptionadded_labellabel(dict),value(any, only is decimal)Added metric.sendnoneSends metrics from temporary file to Pushgateway and deletes the file afterwards.validate_metricnoneThis functions use to validate metric.__init__name,type,help,script_name(job)Initializing metric. Type - allstr.__str__nonePrinting metric in pushgateway format.ExamplesPlease checkexample.pyHow to useEdit metricimportosfrompflibimportmetricfile_name=os.path.basename(__file__)my_metric=metric("metric:name1","counter","helpMetric",file_name)print(my_metric.name)# Printing - metric:name1my_metric.name="example"print(my_metric.name)# Printing - example# For more check pls pf.py def __init__
Package: pflogf
pflogfColorful logging formatter for fnndsc/pf* family.
Its hardcoded format displays displays time, hostname, and calling function.
The various logging levels (debug, info, warn, error, critical) are printed in different colors.pflogf aims to replacepfmisc/debug.pyusing the standard Pythonloggingmodule.ScreenshotsThe output is intended for full-screen TTY output.It tries to detect when not enough colums are available to display full information.ExamplesimportloggingfrompflogfimportFnndscLogFormatterlogger=logging.getLogger(__name__)handler=logging.StreamHandler()handler.setFormatter(FnndscLogFormatter())logger.addHandler(handler)logger.setLevel(logging.DEBUG)logger.debug('debug me as I am full of bugs')logger.info('an informative statement')logger.warning('you\'ll probably ignore this warning')logger.error('error, problem exists between keyboard and chair')logger.critical('critical failure, haha jk')
Package: pfmisc
Table of ContentsOverviewUsageInstallationNotesOverviewThis repository providespfmisc– miscellaneous services for thepffamily.Most simply,pfmiscprovides debug, text-console colorization, and error modules.UsageSimply do aimportpfmiscclassMyClass():def__init__(self,*args,**kwargs):self.debug=pfmisc.debug()self.debug.qprint('hello there!')which will result in some decent debugging instdout. Sometimes, it is useful to create a shortcutself.debug=pfmisc.debug()self.log=self.debug.qprintInstallationInstallation is relatively straightforward, and best done withpip:pipinstallpfmiscNotesPlease examine thepfmisc.pycode for hints on how to use/call the various debugging and error modules:https://github.com/FNNDSC/pfmisc
Package: pfmongo
Table of ContentsQuick OverviewWarning, Will Robinson!dockeranddocker-composeOverviewInstallationUsingPyPIUsing CLIRunningEcosystemEnvironmentLinuxWindowsCommand line argumentsExamplesQuick Overviewpfmongois a python client/module (CLI and API) for simplifying the interaction with a MongoDB. The module provides someidiosyncraticabstractions that are nonetheless hoped to be logically straightforward. The repository includes adocker-compose.ymlthat allows for easy instantiation of the MongoDB infrastructure.Warning, Will Robinson!If you wish to usepfmongoon your own computer, you do need to note these prerequisites:dockeranddocker-composeSincepfmongointeracts with a MongoDB, the easiest mechanism to deploy this database is viadocker-composeand hencedocker. Installation of these is beyond the scope of this document, but should be straightforward enough. Google is your friend in that quest.Overviewpfmongoprovides a somewhat opinionated abstraction for interacting with a MongoDB.InstallationUsingPyPIThe best method of installing this script and all of its dependencies is by fetching it from PyPI usinga python virtual environment.pip3installpfmongoUsing CLIAlternatively, from a cloned version of the repository:pip3install-rrequirements.txt-U./or for development purposespip3install-rrequirements.txt-e./RunningEcosystemAssuming you havedockeranddocker-composeon your system, dodocker-composeup-dEnvironmentSeveral environment variables need to be set prior to usingpfmongo:LinuxexportMD_URI=mongodb://localhost:27017&&exportMD_USERNAME=admin&&exportMD_PASSWORD=admin&&exportMD_SESSIONUSER=rudolphWindows$env:MD_USERNAME=admin$env:MD_PASSWORD=admin$env:MD_URI=mongodb://localhost:27017$env:MD_SESSIONUER=rudolphCommand line argumentspfmongo --helpExamplesaliasmdb='pfmongo'mdbdatabaseconnectPACSDCMmdbcollectionconnectMRNmdbdocumentadd--fileexamples/lld.json--idlld.json-30-
Package: pfmt
pfmtDeveloper GuideSetup# create conda environment$mambaenvcreate-fenv.yml# update conda environment$mambaenvupdate-npfmt--fileenv.ymlInstallpipinstall-e.# install from pypipipinstallpfmtnbdev# activate conda environment$condaactivatepfmt# make sure the pfmt package is installed in development mode$pipinstall-e.# make changes under nbs/ directory# ...# compile to have changes apply to the pfmt package$nbdev_preparePublishing# publish to pypi$nbdev_pypi# publish to conda$nbdev_conda--build_args'-c conda-forge'$nbdev_conda--mambabuild--build_args'-c conda-forge -c dsm-72'UsageInstallationInstall latest from the GitHubrepository:$pipinstallgit+https://github.com/dsm-72/pfmt.gitor fromconda$condainstall-cdsm-72pfmtor frompypi$pipinstallpfmtDocumentationDocumentation can be found hosted on GitHubrepositorypages. Additionally you can find
package manager specific guidelines oncondaandpypirespectively.
Package: pfng
Polish Full Name GeneratorAuthor: Jakub Przepiórka
Version: 1.0.2AboutThe pfng is powered by thousands of Polish names and surnames, which allows you to generate thousands combinations of unique full names.
You can choose whether you want to generate male or female full names or mix of them.Why it is useful tool?Forget about inventing or manually typing names and surnames. This polish full name generator can generate you quickly thousands of full names.It can be useful when generating fake data or testing some applications.No dependencies
This package does not depend on other modules or packages that are not already included in standard Python distributions.Operating system
This package is written to work on Windows. There is no guarantee that it will work on other operating systems.InstallationThe preferred channel isPyPI:pip install pfngAlternatively, you can clone GitHubrepository:git clone git@github.com:JakubPrz/Polish-Full-Name-Generator.gitUsagefrompfngimportgenerate_full_namespeople=generate_full_names(number=20,gender='M&F')# Example 1: you can print themforpinpeople:print(p)# Example 2: save them to file for later usewithopen("full_names.txt",mode="w",encoding="utf-8")asfile:forfinpeople:file.write(f+"n")Thegenderparameter options:OptionMeaningMOnly male full namesFOnly female full namesM&FMix of male and female full namesGenerated full names sample['Waldemar Jastrząb', 'Marek Suliński', 'Nela Orawiec', 'Dagmara Czeczko', 'Aneta Makaruk', 'Laura Krężel', 'Janusz Gumułka', 'Iza Łuka', 'Ala Orzeł', 'Roksana Pilichowska', 'Nela Berus', 'Lila Gabryel', 'Mateusz Czopor', 'Alfred Dorsz', 'Anna Kanabus', 'Jerzy Bojek', 'Szymon Prędki', 'Adam Pondel', 'Julian Wichary', 'Sylwester Ogrodowczyk', 'Kajetan Parka', 'Witold Purtak', 'Urszula Opałka', 'Kazimiera Zawół', 'Ola Kuskowska', 'Szczepan Tokaj', 'Edward Pasierbek', 'Tymon Pielach', 'Maurycy Block', 'Remigiusz Wasiela']Note: There are only Polish full names because it's Polish Full Name Generator.ContributingContributions are welcome!
If you would like to make any improvements to this generator, feel free to submit a pull request.LicenseThis project is licensed under the MIT License - see the LICENSE.md file for details.
Package: pfpi
PFPI (Paguelo Facil Payment Interface)Easy python module to do payments through Paguelo Facil payment gateway.RequirementsPython 2.7.xInstallingInstall the pfpi module:$pipinstallpfpiHow to add a new credit card.frompfpi.modelsimportCreditCardServicecommerce_key='abcdef'production_mode=False# Change to True if you want use the production environmentcc=CreditCardService(commerce=commerce_key,firstname='first name',lastname='last name',email='example@domain.com',description='payment description',cc_number='4111111111111111',ccv2='123',cc_expiration='2019-12',production_mode=production_mode)result=cc.call()# Add new credit cardprintresult# return a JSON object with the resultHow to do Payment.frompfpi.modelsimportPaymentServicecommerce_key='abcdef'production_mode=False# Change to True if you want use the production environmentp=PaymentService(commerce=commerce_key,firstname='first name',lastname='last name',email='example@domain.com',description='payment description',amount=25.00,cc_number='4111111111111111',ccv2='123',cc_expiration='2019-12',production_mode=production_mode)result=p.call()# Do Paymentprintresult# return a JSON object with the resultHow to do Payment using  Token given from credit cardfrompfpi.modelsimportTokenPaymentService,CreditCardServicecommerce_key='abcdef'production_mode=False# Change to True if you want use the production environmentcc=CreditCardService(commerce=commerce_key,firstname='first name',lastname='last name',email='example@domain.com',description='payment description',cc_number='4111111111111111',ccv2='123',cc_expiration='2019-12',production_mode=production_mode)result=cc.call()# get the credit card tokentoken=result['token']p=TokenPaymentService(commerce=commerce_key,firstname='first name',lastname='last name',email='example@domain.com',description='payment description',amount=25.00,token=token,production_mode=production_mode)result=p.call()# Do Paymentprintresult# return a JSON object with the resultUninstall pfpi$pipuninstallpfpiAdditional InfoThis module is based on the follow documentationlinkReleases notes:1.0.0: Services added to add credit cards and do payments.1.0.1: Applying Validations before to call api services.
Package: pfp-lgbt
pfp_lgbt.pyAsynchronous Python API Wrapper forhttps://pfp.lgbt/Respects rate limits.InstallingTo install the library you can run the following commandpip3installpfp_lgbtDocumentationYou can find the documentation on this repo's wiki.ExamplesList the names of all available flags.importpfp_lgbtasyncdefexample():client=pfp_lgbt.Client()flags=awaitclient.flags()forflaginflags:print(flag.name)awaitclient.close()Create a static image from URL, and manually save the bytes as fileimportpfp_lgbtasyncdefexample():client=pfp_lgbt.Client()flag=pfp_lgbt.Flag(name='nb')# Non-binary flag# `Result` becomes bytes of result imageresult=awaitclient.imageStatic('https://i.imgur.com/Ypw5pca.png','square','solid',flag)withopen('result.png','wb')asresfile:resfile.write(result)awaitclient.close()Create animated image from URL, and save it to output fileimportpfp_lgbtasyncdefexample():client=pfp_lgbt.Client()flag=pfp_lgbt.Flag(name='nb')# Non-binary flag_=awaitclient.imageAnimated('https://i.imgur.com/Ypw5pca.png','square',flag,output_file='output.gif')client=awaitclient.close()
Package: pfpy
PFPy - PowerFactory with PythonPFPy provides a wrapper around PowerFactory's Python API with additional features inpfpy.pf.
Furthermore,pfpy.modelsprovides a high-level access to PowerFactory models, e.g. via:model.simulate()model.linearize()model.set_params()It has been developed at the Division of Electric Power and Energy Systems, KTH Royal Institute of Technology.The code has been tested with PowerFactory 2019 and PowerFactory 2020. Note that $PYTHONPATH needs to point to the PowerFactory Python API.ExamplesThe PowerFactory model used in all of the examples is located in./examples/data/models/PFPY_DEMO.pfdSimulation ExampleThe simulation of the aforementioned model is demonstrated in thesimulation example.
The model contains a controllable voltage source at the PCC. CSV files are generated that are replayed at the PCC, simulation is executed and the results are plotted.Linearization ExamplesThe same model is linearized as seen from the PCC in the followingJupyter notebook.
When compared to the linearization in PowerFacory, this code, in addition to the A matrix, provides also B,C, and D matrices.DocumentationAutomatically generated documentation from docstrings can be foundhere.AcknowledgmentsParts of this code were inspired by the following book:Francisco Gonzalez-Longatt, JosÃ© Luis Rueda Torres, Advanced Smart Grid Functionalities Based on PowerFactory, Springer, 2017
Package: pfreader
Reader for Baxter® PrismaFlex® LOX files written in Python.OpenSource software. No warranty. MIT license. Educational purposes only. Do not use for real-world scenarios.Neither affiliated with nor endorsed by Baxter®. PrismaFlex is a registered trademark of Baxter®dev0.0.6openpyxl support for faster XLSX creation0.0.5summarisation0.0.4fix pressure data0.0.3add PLY and PLP0.0.2make elements optional (support version 7 of software)0.0.1first public release
Package: pfrtf
pfrtf - Pandas fast reading table file by using pickleThis module will speed up the loading of data into Pandas from files that rarely change. Supports file formats (.xlsx, .xls, .xlsm, .xlsb and .csv). This module tracks file hashes and saves data in *.pkl format. If the file has already been read, re-reading occurs from the *.pkl file. This significantly speeds up the loading of data. In my case, it speeds up data reading by 100 times.RequirementsPandas>=1.4.4
openpyxl>=2.6.0Installpip install pfrtfTutorial:import pfrtf
import os
path_file = os.path.join(os.getcwd(),'SampleData.xlsx')
df = pfrtf.fast_read_file(path_file)

import pfrtf
df = pfrtf.fast_read_file(r'C:\Users\user\SampleData.xlsx')
Package: pfs
Parallel Foreach SubmoduleParallel Foreach Submodule (PFS) is a tool for "git submodule foreach" execution in parallel.The origin of the tool is the following question in Stack Overflow:👀Execute “git submodule foreach” in parallelWhat can I do with PFS?Execute git submodule foreach in parallelUse it from terminal when it is installedMultiplatform execution (it is developed in Python)InstallationYou can install or upgrade PFS with:$ pip install pfs --upgradeOr you can install from source with:$gitclonehttps://github.com/stt-systems/parallel_foreach_submodule.git--recursive
$cdparallel_foreach_submodule
$pipinstall.Quick example$pfs-p"D:\project"-c"git pull origin"-j8The example executes commandgit pull originfor each submdoule inD:\projectusing 8 threads.ShortcutsList of shortcuts or aliases to write faster some usual operationspfs --pull~pfs -c "git pull origin"pfs --status~pfs -c "git status"pfs --pending~pfs -c "git log <since origin/current>..<until current>"pfs --in-branch~pfs -c "IF (git rev-parse --abbrev-ref HEAD) == branch"pfs --not-in-branch~pfs -c "IF (git rev-parse --abbrev-ref HEAD) != branch"⚠️ Shortcuts only show repositories affected with changes, use--verbosefor full logHelpRun the following command to see all options available:pfs --helporpfs -h
Package: pfsense-backup
Usagepfsense-backupis a simple tool to fetch configuration backups from
the pfSense firewall.Arguments-h,--helpshow the help message and exit.-cFILE,--configFILEthe configuration file (default:~/.config/pfsense-backup/config.yml)-oFILE,--outputFILEthe output file. The file name can containstrftimedirectives. If the argument
is specified,directory,nameandkeepfields of the configuration
are ignored.Configuration fileThepfsense-backupneeds a configuration file
(default~/.config/pfsense-backup/config.yml). As the file contains secrets,
take care to set reasonable permissions. The file is in
theYAMLformat.Configuration filepfsense:url:https://pfsenseuser:adminpassword:...ssl_verify:true|false|/path/to/custom_cert.pemoutput:directory:.name:"pfsense-%Y%m%d-%H%M.xml"keep:12All fields exceptpasswordare optional.hostis a host name or an IP address.namespecifies the name of the output file.strftimedirectives
are allowed.keepremoves all but the most recent*.xmlfiles from thedirectory,
that in this case has to be specified and has to be an absolute path.directoryhas to already exist. As the backup is not encrypted
and contains secrets the permissions should be set accordingly.
Package: pfsense-fauxapi
PfsenseFauxapi - Python InterfacePython client for pfSense-FauxAPI -https://github.com/ndejong/pfsense_fauxapiInstallvia PyPipip3installpfsense-fauxapiInstall via Source# obtain the source materialgitclonehttps://github.com/ndejong/pfsense_fauxapi_client_python.gitcdpfsense_fauxapi_client_python
python3-mvenvvenvsourcevenv/bin/activate
pip3install-rrequirements.txt
python3setup.pyclean
python3setup.pytestpython3setup.pyinstallCode ExamplesThree Python code samples are provided that demonstrate interface usagefunction-iterate.py- iterates (almost) all the FauxAPI functions to confirm operation.update-aws-aliases.py- downloads the latest AWSip-ranges.jsonand populates the pfsense alias table(s).usergroup-management.py- demonstrates the ability to manage users and groups programmatically.Command LineAdditionally this pip-package provides a command-line interface to work with FauxAPIusage:fauxapi[-h][--host[host]][--apikey[key]][--apisecret[secret]][--verified-ssl][--debug][function][[function]...][[function-args]]FauxAPI

optionalarguments:-h,--helpshowthishelpmessageandexitCall:--host[host]HostaddressofthetargetpfSensehostwiththePfsenseFauxapipackageinstalled.--apikey[key]FauxAPIapikeyvalue-alternativelyviatheFAUXAPI_APIKEYenvironmentvariable.--apisecret[secret]FauxAPIapisecretvalue-alternativelyviatheFAUXAPI_APIKEYenvironmentvariable.--verified-sslEnableSSLcertificatechecks-defaultdoesNOTcheckSSLcertificates.--debugEnabledebugresponsefromtheremoteFauxAPI-helpfulintrackingdownissues.[function]TheFauxAPIfunctionbeingcalled[function-args]Argumentstothefunction,spaceseparatedCommand line example, using environment variables to pass theFAUXAPI_APIKEYandFAUXAPI_APIKEYcredentials.$fauxapi--host192.168.1.200gateway_status|jq.{"callid":"5c8d0f7361cba","action":"gateway_status","message":"ok","data":{"gateway_status":{"10.11.12.1":{"monitorip":"10.10.10.1","srcip":"10.10.10.200","name":"WAN_DHCP","delay":"0.422ms","stddev":"0.073ms","loss":"0.0%","status":"none"}}}}