Saravanan666/pypi-org huggingface dataset:
Package: pySankeyBeta
pySankeyUses matplotlib to create simpleSankey diagramsflowing only from left to right.ExampleWith fruits.txt :truepredicted0blueberryorange1limeorange2blueberrylime3appleorange.........996limeorange997blueberryorange998orangebanana999applelime1000 rows × 2 columnsYou can generate a sankey's diagram with this code:importpandasaspdfrompysankeyimportsankeydf=pd.read_csv('pysankey/fruits.txt',sep=' ',names=['true','predicted'])colorDict={'apple':'#f71b1b','blueberry':'#1b7ef7','banana':'#f3f71b','lime':'#12e23f','orange':'#f78c1b','kiwi':'#9BD937'}ax=sankey(df['true'],df['predicted'],aspect=20,colorDict=colorDict,leftLabels=['banana','orange','blueberry','apple','lime'],rightLabels=['orange','banana','blueberry','apple','lime','kiwi'],fontsize=12)plt.show()# to displayplt.savefig('fruit.png',bbox_inches='tight')# to saveYou could also use weight:,customer,good,revenue
0,John,fruit,5.5
1,Mike,meat,11.0
2,Betty,drinks,7.0
3,Ben,fruit,4.0
4,Betty,bread,2.0
5,John,bread,2.5
6,John,drinks,8.0
7,Ben,bread,2.0
8,Mike,bread,3.5
9,John,meat,13.0importpandasaspdfrompysankeyimportsankeydf=pd.read_csv('pysankey/customers-goods.csv',sep=',',names=['id','customer','good','revenue'])weight=df['revenue'].values[1:].astype(float)ax=sankey(left=df['customer'].values[1:],right=df['good'].values[1:],rightWeight=weight,leftWeight=weight,aspect=20,fontsize=20)plt.show()# to displayplt.savefig('customers-goods.png',bbox_inches='tight')# to saveSimilar to seaborn, you can pass a matplotlibAxestosankeyfunction:importpandasaspdfrompysankeyimportsankeyimportmatplotlib.pyplotaspltdf=pd.read_csv('pysankey/fruits.txt',sep=' ',names=['true','predicted'])colorDict={'apple':'#f71b1b','blueberry':'#1b7ef7','banana':'#f3f71b','lime':'#12e23f','orange':'#f78c1b'}ax1=plt.axes()sankey(df['true'],df['predicted'],aspect=20,colorDict=colorDict,fontsize=12,ax=ax1)plt.show()Important informationsUse offigureName,closePlot,figSizeinsankey()is deprecated and will be
remove in a future version. This is done so matplotlib is used more transparently as
thisissueon the
original github repo suggested.Now,sankeydoes less of the customization and let the user do it to their liking by
returning a matplotlibAxesobject, which mean the user also has access to theFigureto customise. Then they can choose what to do with it - showing it, saving it
with much more flexibility.Recommended changes to your codeTo save a figure, one can simply do:plt.savefig("<figureName>.png",bbox_inches="tight",dpi=150)TheclosePlotis not needed anymore because withoutplt.show()aftersankey(),
no plot is displayed. You can still doplt.close()to be sure to not display this
plot if you display other plots afterwards.You can modify the sankey size by changing the one from the matplotlib figure.plt.gcf().set_size_inches(figSize)Package developmentpip3 install -e ".[test]"Lintpylint pysankeyTestingpython -m unittestCoveragecoverage run -m unittest
coverage html
# Open htmlcov/index.html in a navigator
Package: pysap
pysap - Python library for crafting SAP's network protocols packetsSECUREAUTH LABS. Copyright (C) 2021 SecureAuth Corporation. All rights reserved.Version 0.1.19 (April 2021)OverviewSAP NetweaverandSAP HANAare technology platforms for
building and integrating SAP business applications. Communication between components
uses different network protocols and some services and tools make use of custom file
formats as well. While some of them are standard and well-known protocols, others
are proprietaries and public information is generally not available.pysapis an open source Python 2 library that provides modules for crafting and sending packets
using SAP'sNI,Diag,Enqueue,Router,MS,SNC,IGS,RFCandHDBprotocols. In addition, support for creating and parsing different proprietary file
formats is included. The modules are built on top ofScapyand are
based on information acquired at researching the different protocols, file formats
and services.FeaturesDissection and crafting of the following network protocols:SAP Network Interface (NI)SAPDiagSAPEnqueueSAPRouterSAP Message Server (MS)SAP Secure Network Connection (SNC)SAP Internet Graphic Server (IGS)SAP Remote Function Call (RFC)SAP HANA SQL Command Network (HDB)Client interfaces for handling the following file formats:SAPSARarchive filesSAP Personal Security Environment (PSE) filesSAP SSO Credential (Credv2) filesSAP Secure Storage in File System (SSFS) filesLibrary implementing SAP'sLZHandLZCcompression algorithms.Automatic compression/decompression of payloads with SAP's algorithms.Client, proxy and server classes implemented for some of the protocols.Example scripts to illustrate the use of the different modules and protocols.InstallationTo install pysap simply run:$ pip install pysappysap is compatible and tested with Python 2.7. A Python 2/3 compatible version
isin the workingsbut
it'snot finalized yet.DocumentationDocumentation is available atRead the Docs.LicenseThis library is distributed under the GPLv2 license. Check theCOPYINGfile for
more details.DisclaimerThe spirit of this open source initiative is hopefully to help the community to
alleviate some of the hindrances associated with the implementation of
networking protocols and stacks, aiming at speeding up research and educational
activities. By no means this package is meant to be used in production
environments / commercial products. If so, we would advise to include it into a
proper SDLC process.AuthorsThe library was designed and developed by Martin Gallo fromSecureAuth's Innovation
Labsteam, with the help of a large number of
contributors.ContributorsContributions made by:Florian Grunow (@0x79)Scott Walsh (@invisiblethreat)Joris van de Vis (@jvis)Victor Portal GonzalezDmitry Yudin (@ret5et)Hans-Christian Esperer (@hce)Vahagn Vardanyan (@vah13)Mathieu Geli (@gelim)Yvan Genuer (@iggy38)Malte Heinzelmann (@hnzlmnn)Albert Zedlitz@cclauss@okuuvaDmitry Chastuhin (@_chipik)fabhapAndreas HornigJennifer Hornig (@gloomicious)ContactWhether you want to report a bug or give some suggestions on this package, drop
us a few lines atoss@secureauth.comor contact the author emailmgallo@secureauth.com.
Package: pysap-astro
Antoine Grigis <antoine.grigis@cea.fr>
Samuel Farrens <samuel.farrens@cea.fr>
Jean-Luc Starck <jl.stark@cea.fr>
Philippe Ciuciu <philippe.ciuciu@cea.fr>Author-email:samuel.farrens@cea.frLicense: CeCILL-B
Platform: OS Independent
Classifier: C
Classifier: L
Classifier: A
Classifier: S
Classifier: S
Classifier: I
Classifier: F
Classifier: I
Classifier: E
Classifier: R
Classifier: S
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: sf_tools>=2.0.4PySAP-AstroPython Sparse data Analysis Package external ASTRO plugin.This package is part of the PySAP plug-in framework and is not intended to
work as a stand-alone package.This work is made available by a community of people, among which the
CEA Neurospin UNATI and CEA CosmoStat laboratories, in particular A. Grigis,
J.-L. Starck, P. Ciuciu, and S. Farrens.Important linksOfficial PySAP source code repo:https://github.com/CEA-COSMIC/pysapPySAP HTML documentation (last stable release):https://cea-cosmic.github.io/pysap
Package: pysap-etomo
Martin Jacob <martin.jacob@cea.fr>
Guillaume Biagi <guillaume.biagi@cea.fr>
Philippe Ciuciu <philippe.ciuciu@cea.fr>
Zineb Saghi <zineb.saghi@cea.fr>
Patrick Quemere <patrick.quemere@cea.fr>Author-email: XXX
License: CeCILL-B
Platform: OS Independent
Classifier: C
Classifier: L
Classifier: A
Classifier: S
Classifier: S
Classifier: I
Classifier: F
Classifier: I
Classifier: E
Classifier: R
Classifier: S
License-File: LICENSEPython Sparse data Analysis Package external ETOMO plugin.
Package: pysap-macro
PySAP MacroPython script to connect with SAP and allow usage of VB scriptsGetting StartedThese instructions will get you a copy of the project up and running on your local machine. You can check myGitHubfor further informations.InstallingTo install this package and all of it's requirements, run the following code on your terminal:pip install pysap_macroTesting if it is workingYou can create a Python file for testing purpose with the following code:from pysap_macro import SAP

class Test:
    def __init__(self):
        self.run()

    def run(self):
        session = SAP.connect_sap(self, connection_name="SAP ENVIRONMENT NAME")

        # your VB code created by SAP below

Test()AuthorsThanks toFkfouri's sapy_scriptfor creating an amazing library and providing it on Github. This project was created based on his code.Mateus Lima SilvaLicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: pysap-mri
Chaithya G R <chaithya.giliyarradhakrishna@cea.fr>
Pierre-Antoine Comby <pierre-antoine.comby@cea.fr>
Jean-Luc Starck <jl.stark@cea.fr>
Philippe Ciuciu <philippe.ciuciu@cea.fr>Author-email: XXX
License: CeCILL-B
Platform: OS Independent
Classifier: C
Classifier: L
Classifier: A
Classifier: S
Classifier: S
Classifier: I
Classifier: F
Classifier: I
Classifier: E
Classifier: R
Classifier: S
License-File: LICENSE
Requires-Dist: scikit-learn>=0.19.1
Requires-Dist: progressbar2>=3.34.3
Requires-Dist: joblib>=1.0.0
Requires-Dist: scipy>=1.3.0
Requires-Dist: scikit-image>=0.17.0
Requires-Dist: mri-nufft>=0.4.0
Requires-Dist: finufft>=2.2.0
Requires-Dist: modopt>=1.7.1Python Sparse data Analysis Package external MRI plugin.
Package: pysapp
Introductionpysapp is a library designed as a “supporting application” forpysmvtapplications.Example applications will be avilable soon, for now, please follow the steps
below to get your own default application up and running.Steps for InstallationInstall Pythoninstall setuptools (includes easy_install)install virtualenveasy_install virtualenvCreate a new virtual environementvirtualenv myproj-staging –no-site-packagesActivate the virtual environment (os dependent)install pysapp & dependencieseasy_install pysappSteps for creating a working applicationNote: thepysmvtcommand is installed when you install pysapp, which has
pysmvt as a requirement.cd myproj-stagingmkdir srccd srcpysmvt project -t pysapp <myapp>replace <myapp> with your project nameanswer the questions that come upwrite down “Login Details”, referred to hereafter as <user> & <pass>cd <myapp>-distpython setup.py -q developcd <myapp>pysmvt broadcast initdbsetup the database tablespysmvt broadcast initdata <user>put basic data in the database, use the
settings profile for your userpysmvt serve <user>run a development http server with the user’s settings
profilepoint your browser athttp://localhost:5000/Creating a New Application ModuleThis step creates a Application Module directory structure in <myapp>/modules/<mymod>:pysmvt module <mymod>where <mymod> is the name of the module you want to createQuestions & CommentsPlease visit:http://groups.google.com/group/pyslibsCurrent StatusThe code stays pretty stable, but the API is likely to change in the future.Thepysapp tipis installable viaeasy_installwitheasy_installpysapp==dev
Package: pysapscript
DescriptionSAP scripting for Python automatizationDocumentationGithub - https://github.com/kamildemocko/PySapScriptInstallationpip install pysapscriptUsageCreate pysapscript objectpss=pysapscript.Sapscript()parameterdefault_window_title: = "SAP Easy Access"Launch Sappss.launch_sap(sid="SQ4",client="012",user="robot_t",password=os.getenv("secret_password"))additional parameters:root_sap_dir=Path(r"C:\Program Files (x86)\SAP\FrontEnd\SAPgui")maximise=Truequit_auto=TrueAttach to window:window=pss.attach_window(0,0)positional parameters (0, 0) -> (connection, session)Quitting SAP:will automatically quit if not specified differentlymanual quitting:pss.quit()Performing action:use SAP path starting withwnd[0]for element argumetnswindow.write(element, value)
window.press(element)
window.select(element)
window.read(element)
window.read_shell_table(element)
window.press_shell_button(element, button_name)
window.change_shell_checkbox(element, checkbox_name, boolean)Another available actions...close window, open new window, start transaction, navigate, maximize
Package: pysaql
pysaqlPython SAQL query builderFeatures:Table of Contents:InstallationGuideDevelopmentInstallationpysaql requires Python 3.9 or above.pipinstallpysaql# orpoetryaddpysaqlGuideDevelopmentTo develop pysaql, install dependencies and enable the pre-commit hook:pipinstallpre-commitpoetry
poetryinstall
pre-commitinstall-tpre-commit-tpre-pushTo run tests:poetryrunpytest
Package: pysarif
PySarifThis package provides a simple way to load, save, and interact with SARIF files.The SARIF file, once loaded, can be interacted with like a normal Python object.Nearly all of the code has been automatically generated from theSARIF JSON Schemausing a modified version of Microsoft'sjschema-to-pythonpackage. The modified version can be found ingenerator.Quickstartpip install pysariffrompysarifimportload_from_file,save_to_filesarif=load_from_file("/path/to/sarif.sarif")forruleinsarif.runs[0].tool.driver.rules:print(rule.name)save_to_file(sarif,"/path/to/new/sarif.sarif")What about existing packages?Microsoft offers thesarif-ompackage. Sadly, they do not provide any way to load an existing SARIF file into their object model, nor do they provide a way to serialize the object model into a SARIF file. As such, I believe there is currently no (easy) way to work with SARIF files in Python, other than working with it as a dict.
Package: pysarplus
SARplusSimple Algorithm for Recommendation (SAR) is a neighborhood based
algorithm for personalized recommendations based on user transaction
history. SAR recommends items that are mostsimilarto the ones
that the user already has an existingaffinityfor. Two items aresimilarif the users that interacted with one item are also likely
to have interacted with the other. A user has anaffinityto an
item if they have interacted with it in the past.SARplus is an efficient implementation of this algorithm for Spark.
More details can be found atsarplus@microsoft/recommenders.
Package: pysarpu
pysarpuPU learning under SAR assumption with unknown propensity. Implementation of the general SAR-EM algorithm.Free software: MIT licenseDocumentation:https://pysarpu.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2022-10-07)First release on PyPI.
Package: pysas
pysasSpeech Analysis and Synthesis Toolkit for Python(2.X, 3.X).Inspired by r9y9’s ssp products(https://github.com/r9y9).This module includeWorldC++
library by M. Morise.usagehttp://nbviewer.ipython.org/github/shunsukeaihara/pysas/blob/master/sample.ipynbLICENSELicensed under MIT License. Bundled World C++ library is licensed under
New BSD license.
Package: pysass
pysassA simple wrapper onlibsass-python pysasscto add watch capability using watchdog.Featuresadd-wand--watchflags topysassccommand.watch included directories and source directory recursively.only watch*.scssfiles.throttling.Install$ pip install pysassUsageUsepysasscommand instead ofpysasscin order to use-wor--watchflag additionaly to those provided bylibsass-python pysassc.eg.$ pysass -t compressed -I node_modules/skeleton-scss/scss/ \
	-m ./project/src/main.scss ./project/dist/style.css --watch
Package: pysastra
pySastraLightweight Natural Language Processing for Indonesian Language.Design PlanPlannedPipelineDescription🟠LanguageA text-processing pipeline.🟡TokenizerSegment text, and create Doc objects with the discovered segment boundaries.🟠LemmatizerDetermine the base forms of words.🟡MorphologyAssign linguistic features like lemmas, noun case, verb tense etc. based on the word and its part-of-speech tag.🟠TaggerAnnotate part-of-speech tags on Doc objects.🔄DependencyParserAnnotate syntactic dependencies on Doc objects.🔄EntityRecognizerAnnotate named entities, e.g. persons or products, on Doc objects.🔄TextCategorizerAssign categories or labels to Doc objects.🔄MatcherMatch sequences of tokens, based on pattern rules, similar to regular expressions.🔄PhraseMatcherMatch sequences of tokens based on phrases.🔄EntityRulerAdd entity spans to the Doc using token-based rules or exact phrase matches.🔄SentencizerImplement custom sentence boundary detection logic that doesn’t require the dependency parse.🟢 Completed With Test
🟡 Completed
🟠 On Progress
🔄 Plannedreference : spaCy language pipeline
Package: pysat
pysat: Python Satellite Data Analysis ToolkitThe Python Satellite Data Analysis Toolkit (pysat) is a package providing a
simple and flexible interface for downloading, loading, cleaning, managing,
processing, and analyzing scientific measurements. Although pysat was initially
designed for in situ satellite observations, it now supports many different
types of ground- and space-based measurements.FullDocumentationJGR-Space PhysicsPublicationCitation InfoCome join us on Slack! An invitation to the pysat workspace is available
in the 'About' section of thepysat GitHub Repository.Development meetings are generally held fortnightly.Main FeaturesInstrument independent analysis routines.Instrument object providing an interface for downloading and analyzing a wide
variety of science data sets.Uses pandas or xarray for the underlying data structure;
capable of handling the many forms scientific measurements take in a
consistent manner.Standard scientific data handling tasks (e.g., identifying, downloading,
and loading files and cleaning and modifying data) are built into the
Instrument object.Supports metadata consistent with the netCDF CF-1.6 standard. Each variable
has a name, long name, and units. Note units are informational only.Simplifies data managementIterator support for loading data by day/file/orbit, independent of data
storage details.Orbits are calculated on the fly from loaded data and span day breaks.Iterate over custom seasonsSupports rigorous time-series calculations that require spin up/down time
across day, orbit, and file breaks.Includes helper functions to reduce the barrier in adding new science
instruments to pysatInstallationStarting from scratchPython and associated packages for science are freely available. Convenient
science python package setups are available fromhttps://www.python.org/,Anaconda, and other locations
(some platform specific). Anaconda also includes a developer environment that
works well with pysat. Core science packages such as numpy, scipy, matplotlib,
pandas and many others may also be installed directly via pip or your
favorite package manager.Installation through pippip install pysatInstallation through githubgit clone https://github.com/pysat/pysat.git
cd pysat
python setup.py installAn advantage to installing through github is access to the development branches.
The latest bugfixes can be found in thedevelopbranch.  However, this branch
is not stable (as the name implies).  We recommend using this branch in a
virtual environment or usingpython setup.py develop.git clone https://github.com/pysat/pysat.git
cd pysat
git checkout develop
python setup.py developNote that pysat requires a number of packages for the install.dasknetCDF4numpypandasportalockerscipytoolzxarrayThe first time the package is run, you will need to specify a directory to
store data. In python, run:pysat.params['data_dirs'] = 'path/to/directory/that/may/or/may/not/exist'Nominal organization of data is top_dir/platform/name/tag/inst_id/files
Package: pysatadif
Generate ADIF For Satellite QSOs================================Quick Installation==================::pip install pysatadifUpgrading=========::pip install --upgrade pysatadifQuick Usage==========::$ pysatadif --satname SO-50 --timeon 0050 --qso N0CALL --qso N1CALL --qso N2CALL,DM00 --output adifFull Usage==========::usage: pysatadif [-h] -s SATNAME -n TIMEON [-f TIMEOFF] [-d QSODATE][-g MYGRID] [-r MYRIG] [-c OPERATOR] [-t TXPWR] -q QSO[-o OUTPUT] [-v]optional arguments:-h, --help            show this help message and exit-s SATNAME, --satname SATNAMESatellites to track-n TIMEON, --timeon TIMEONStart time of QSO (HHMMSS)-f TIMEOFF, --timeoff TIMEOFFEnd time of QSO (HHMMSS)-d QSODATE, --qsodate QSODATEQSO Date (YYYYMMDD)-g MYGRID, --mygrid MYGRIDMy grid square-r MYRIG, --myrig MYRIGMy rig-c OPERATOR, --operator OPERATORMy callsign-t TXPWR, --txpwr TXPWRTX Power-q QSO, --qso QSO     QSO callsign and optionally grid (eg N0CALL,DN70)-o OUTPUT, --output OUTPUTOutput Format (text, adif)-v, --verbose         Print verbose debugging messagesConfiguration=============Run pysatadif once. Then see $HOME/.pysatadif/defaults.jsonYou may configure your callsign, maidenhead grid square, radio, andtransmitting power which will apply to all passes. You may overridethese at any time by using the command-line switches.Hints=====If the QSO was made on the current UTC day, you may leave out theQSODATE parameter. If the QSO was made during the current UTC year, youmay leave out the YYYY.You may enter callsigns and grids in lower case, and they will beconverted to upper case.If you copied the other station's grid square, be sure to add it:-q N0CALL,AA00. If you don't have it, leave the comma and following out.History=======0.0.14 - Correcting README to reflect uploading and packaging to pypi0.0.13 - Added error checking for timeon parameter0.0.12 - Initial release0.0.3  - Typo0.0.2  - Moving data files to data, dynamically including them0.0.1 - Initial Import, broken data files
Package: pysatCDAAC
pysatCDAAC: pysat support for COSMIC Data Analysis and Archive Center instrumentsPrerequisitespysatCDAAC uses common Python modules, as well as modules developed by
and for the Space Physics community.  This module officially supports
Python 3.7+.Common modulesCommunity modulesnetCDF4pysat>=3.0.4numpypandasrequestsxarrayInstallationCurrently, the main way to get pysatCDAAC is through github.git clone https://github.com/pysat/pysatCDAAC.gitChange directories into the repository folder and run the setup.py file.  For
a local install use the "--user" flag after "install".cd pysatCDAAC/
pip install .Note: pre-1.0.0 versionpysatCDAAC is currently in an initial development phase and requires pysat 3.0.0+.Using with pysatThe instrument modules are portable and designed to be run like any pysat instrument.import pysat
from pysatCDAAC.instruments import cosmic_gps

cosmic = pysat.Instrument(inst_module=cosmic_gps, tag='ionprf')Another way to use the instruments in an external repository is to register the instruments.  This only needs to be done the first time you load an instrument.  Afterward, pysat will identify them using theplatformandnamekeywords.import pysat

pysat.utils.registry.register(‘pysatCDAAC.instruments.cosmic_gps’)
cosmic = pysat.Instrument('cosmic', 'gps', tag='ionprf')