Saravanan666/pypi-org huggingface dataset:
Package: pysam-cabbage
pysam - a python module for reading, manipulating and writing
genomic data sets.pysam is a lightweight wrapper of the htslib C-API and provides
facilities to read and write SAM/BAM/VCF/BCF/BED/GFF/GTF/FASTA/FASTQ
files as well as access to the command line functionality of the
samtools and bcftools packages. The module supports compression and
random access through indexing.This module provides a low-level wrapper around the htslib C-API as
using cython and a high-level API for convenient access to the data
within standard genomic file formats.See:http://www.htslib.orghttps://github.com/pysam-developers/pysamhttp://pysam.readthedocs.org/en/stable
Package: pysaml-idp
pysaml_idpAutor : Alejandro Mejia AyalaThis library simplify SAML2 Login on Microsoft Entra ID (Azure AD)
It requires:A business application configured on Azure PanelA unique Application IdA valid callback Url configured in Business AppA valid login and logout Url addresses (from Business app configuration)HOWTOCreate test subdirmkdir pysaml-idp-test & cd pysaml-idp-testcreate a virtual environmentpython3 -m venv venv & source venv/bin/activateInstall requirenmentspip install Flask pysaml-idp python-dotenv cryptographySave variables on .env fileAPPLICATION_ID=<application_id># from Azure PortalREDIRECT_URL=<Callback_URL># Where login flow must return after IdentificationLOGIN_URL=<Login_Url># from Azure PortalLOGOUT_URL=<Logout_Url># from Azure Portalapp.pyfromflaskimportFlask,redirect,request,url_for,render_templateimportloggingfrompysaml_idpimportSAML2fromdotenvimportload_dotenvimportosload_dotenv()APPLICATION_ID=os.getenv('APPLICATION_ID')REDIRECT_URL=os.getenv('REDIRECT_URL')LOGIN_URL=os.getenv('LOGIN_URL')LOGOUT_URL=os.getenv('LOGOUT_URL')logging.basicConfig(level=logging.DEBUG)app=Flask(__name__)saml=SAML2(APPLICATION_ID,REDIRECT_URL,LOGIN_URL,LOGOUT_URL)@app.route('/')defhello_world():# Render the login template and pass the Azure AD login URL to the templatereturn'<a href="/azure_login">Azure Idp Login</a>'@app.route('/azure_login')defazureLogin():login_url=saml.prepare_request()response=redirect(login_url,code=302)response.headers['Cache-Control']='no-cache, no-store'response.headers['Pragma']='no-cache'returnresponse@app.route('/auth/redirect',methods=['GET','POST'])defsaml_redirect():# Extract the SAML response from the request form datasaml_response=request.form['SAMLResponse']claims=saml.extract_claims(saml_response)returnclaimsif__name__=='__main__':app.run(host='0.0.0.0',port="5000",debug=True,ssl_context='adhoc')run app$exportFLASK_APP=app$exportFLASK_ENV=development$flaskrunOpen page on your preferred browser[https://127.0.0.1:5000/](https://127.0.0.1:5000/)
Package: pysamloader-gui
Introductionpysamloader-guiis a kivy based GUI frontend to thepysamloaderpython
library for writing flash on Atmel’s ARM chips via SAM-BA.See thepysamloader documentation at ReadTheDocs. for
information about device support and features. This GUI is intended to be
simple, straightforward, and opinionated. It does not expose a great deal of
flexibility, and is intended to ‘just work’.Requirements & Installationpysamloader-guishould work on any platform which supportspythonandkivy. It is best tested on Linux followed by on Windows (10 and 7).pysamloader-guisupports only python 3.4 and later, due to itskivydependency.In general,pysamloader-guiis expected to be pip-installed. It can be safely
installed into a virtualenv. As long as you have a functioning python
installation of sufficient version, installingpysamloader-guiwould be simply :$pipinstallpysamloader-guiIf you require pre-built binaries, they are available for 64-bit Linux and
Windows. However, be aware that these binaries are not thoroughly tested,
and your mileage may vary based on your specific operating system and machine
architecture. You will also have to manually copy the includeddevicesfolder to the correct location.When using binary packages, the includeddevicesfolder contains the
included device support modules, each of which is a python file with a
single class of the same name, containing device specific information about
one device. This folder should be copied into a separate location where you can
safely add, remove, or modify device configuration as needed. This device
library is shared with thepysamloaderCLI application, which need not be
separately installed in order to the the GUI application. The location is
that provided byuser_config_dirof the pythonappdirspackage
for thepysamloaderapplication, specifically :Linux :~/.config/pysamloaderWindows :C:\Users\<username>\AppData\Roaming\QuazarTechnologies\pysamloader(Also see thepysamloaderdocumentation).The currentpysamloader-guiwindows .msi installer will create this folder
and populate it as a part of the install process.If you wish to develop, modify the sources, or otherwise get the latest
version, it can be installed from a clone of the git repository (or from a
source package) as follows :$gitclonehttps://github.com/ebs-universe/pysamloader-gui.git$cdpysamloader$pipinstall-e.Project InformationThe latest version of the documentation, including installation, usage, and
API/developer notes can be found atReadTheDocs.The latest version of the sources can be found atGitHub. Please use GitHub’s
features to report bugs, request features, or submit pull/merge requests.The principle author forpysamloader-guiis Chintalagiri Shashank. The
author can be contacted if necessary via the information on theauthor’s github profile. See the AUTHORS file
for a full list of collaborators and/or contributing authors, if any.pysamloader-guiis distributed under the terms of theGPLv3 license.
A copy of the text of the license is included along with the sources.
Package: pysamlsp
pysamlspis a Python library for implementing a Service Provider within a SAML2.0 SSO environment.This package is under active development but is currently incomplete. Please don’t try to use it.RequirementsPython packagespython-setuptoolspython 2.7lxmland for tests:noseexpecterdingusNon-Python packagesxmlsec1openssl (though xmlsec1 may be built with GnuTLS, Libgcrypt, or NSS)libxml2libxsltInstallationAt this point in development, I have not uploaded to Pypi. Once I have, installation will be as easy as:pip install pysqlspIn the meantime you can clone this repository and run:python setup.py installUsageInitialize the class with a configuration dictionary:sp_config = dict( ... )The configuration dictionary may have the following entries:‘assertion_consumer_service_url’: The URL of the SSO provider.‘issuer’: A unique identifier for the service provider; probably should match the entityID attribute of the SP metadata.‘private_key’: A path for the private key PEM file, required for signing AuthnRequests.‘sign_authnrequests’: True / False flag to indicate whether AuthnRequests should be signed.‘certificate’: A path for the certificate file against which a SAMLResponse signature can be verified.Create a redirect URL with the SAMLRequest query parameter:sp = Pysamlsp(sp_config)
redirect_url = sp.redirect_for_idp()The identity provider will post to the address specified in the service providers metadata.xml. The posted field “SAMLResponse” will contain a (base64encoded, gzip’d) XML response:saml_response = query['SAMLResponse']
if sp.idp_response_is_valid(saml_response):
  ...Signed AuthnRequestsIf you are signing your AuthnRequests, you’ll need an RSA private key. Here is a procedure for creating the keys using openssl.Create a private key, good for 10 years:openssl req -x509 -days 3650 -newkey rsa:1024 -keyout saml_key_pw.pem -out saml.crtRemove the passphrase from your new key. This library does not currently support keys with passphrases:openssl rsa -in saml_key_pw.pem -out saml_key.pemCreate a public key from the private key. You’ll need this for metadata:openssl rsa -in saml_key.pem -pubout > saml.pub
Package: pysamoo
pysamoo - Surrogate-Assisted Multi-objective OptimizationThe software documentation is available here:https://anyoptimization.com/projects/pysamoo/InstallationThe official release is always available at PyPi:pipinstall-UpysamooUsageWe refer here to our documentation for all the details.
However, for instance, executing NSGA2:frompymoo.optimizeimportminimizefrompymoo.problems.multi.zdtimportZDT1frompymoo.visualization.scatterimportScatterfrompysamoo.algorithms.ssansga2importSSANSGA2problem=ZDT1(n_var=10)algorithm=SSANSGA2(n_initial_doe=50,n_infills=10,surr_pop_size=100,surr_n_gen=50)res=minimize(problem,algorithm,('n_evals',200),seed=1,verbose=True)plot=Scatter()plot.add(problem.pareto_front(),plot_type="line",color="black",alpha=0.7)plot.add(res.F,facecolor="none",edgecolor="red")plot.show()CitationIf you use this framework, we kindly ask you to cite the following paper:Julian Blank, & Kalyanmoy Deb. (2022). pysamoo: Surrogate-Assisted Multi-Objective Optimization in Python.BibTex:@misc{pysamoo,
  title={pysamoo: Surrogate-Assisted Multi-Objective Optimization in Python},
  author={Julian Blank and Kalyanmoy Deb},
  year={2022},
  eprint={2204.05855},
  archivePrefix={arXiv},
  primaryClass={cs.NE}
}ContactFeel free to contact me if you have any questions:Julian Blank(blankjul [at] msu.edu)Michigan State UniversityComputational Optimization and Innovation Laboratory (COIN)East Lansing, MI 48824, USA
Package: pysampic
# SAMPIC DECODER
The packagesampic_decoderis a simple python packaged used to read
the binary files produced with the SAMPIC board from LAL in python/numpy.It depends on numpy and runs with both Python2.7 and Python3.x.Example:from pysampic import Datasetds = Dataset ( “sample.bin” )print (ds.keys()) #Prints the available keys
print (ds[‘HitNumber’]) # Reads the hit numbers of all entries as a ndarray
Package: pysampleboro
pysampleboroMy Python package to help you get up to speed.InstallationInstall this via pip (or your favourite package manager):pip install pysampleboroContributors ✨Thanks goes to these wonderful people (emoji key):alborotogarcia💻🤔📖This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCookiecutterand thebrowniebroke/cookiecutter-pypackageproject template.
Package: pysamples
Pysamples PackageThis is a python samples collection package.How to upload package to pypipython -m pip
install –user –upgrade setuptools wheelpython .setup.py sdist bdist_wheelpython -m pip install –user –upgrade twinepython -m twine upload –repository-urlhttps://test.pypi.org/legacy/dist/*pip install -ihttps://test.pypi.org/simple/pysamples==0.0.4python -m twine upload –repository-urlhttps://upload.pypi.org/legacy/dist/*
Package: pysampling
pysamplingYou can find the detailed documentation here:https://www.egr.msu.edu/coinlab/blankjul/pysampling/InstallationThe framework is available at the PyPi Repository:pipinstall-UpysamplingUsageThe method to be used for sampling using different algorithm must be
import from pysampling.sample. Here, we use Latin Hypercube Sampling to
generate 50 points in 2 dimensions.importmatplotlib.pyplotaspltfrompysampling.sampleimportsampleX=sample("lhs",50,2)plt.scatter(X[:,0],X[:,1],s=30,facecolors='none',edgecolors='r')plt.show()ContactFeel free to contact me if you have any question:Julian Blank (blankjul [at] egr.msu.edu)
Michigan State University
Computational Optimization and Innovation Laboratory (COIN)
East Lansing, MI 48824, USA
Package: pysan
Welcome to the pysan librarySequence analysis in Pythonfromnbdev.showdocimport*The pysan library is a collection of methods for doing sequence analysis. It's free, open source, and each method is fully documented with examples. Using pysan you'll be able to run powerful sequence analysis and visualisation tasks with just a few lines of code, and integrate or extend them into your other Python workflows.The pysan library is specifically for sequence analysis in the social sciences, which concerns the order in which people do things (like communicate), but can be applied to broader sequence analysis problems that are framed in the sequence domain. To find out more, get started by installing the library using the commands below, and read through the rest of this site.InstallInstall pysan using the following pip command;pip install pysanYou can also use the very latest version by cloning the github repository.git clone https://github.com/pysan-dev/pysan.gitWhy use pysan?Lots of events in the natural world happen in a particular order, from making a cup of tea, to getting promotions, and so on.
In science, this applies to everything from communication data, to consumer spending, and to gambling behaviour.
Analysing these events whilst preserving their sequential order requires analysis in the sequence domain.
The pysan library contains methods for visualising, comparing, and dissecting sequences, helping you develop insights into your sequences with only a few lines of code.Why Python?- Python is quickly becomingthego-to language for data analysis across a number of research areas.
By writing a sequence analysis library in Python, analysts can take advantage of other tools written in Python, whilst writing simple and readable code.
Package: pysand
PySand is a python package with sand management related calculations for oil and gas industry developed by Equinor.Acoustic sand detectors standard calibration and quantificationBasic (black oil) fluid propertiesDNVGL RP-O501 erosion rate calculationsER probe sand quantificationSand transport modelsInstallation instructionspip install pysandUpgradepip install pysand --upgradeRemovalpip uninstall pysandUsageJupyter Notebooks with example usage can be found in the example directory:Acoustic sand detectorErosionFluid propertiesSand transportBringing them all together:All pySand modulesContributingIf you want to contribute to the project and make it better, your help
is very welcome. Follow the following instructions and read theCONTRIBUTING.mdfile before getting started.
Package: pysandra
NOTICEThis project has recently started.  I don't recommend anyone use it just yet.However, it is for anyone who wantsto get involved in development,to give feedback,or are happy with it's very limited statePlease check back often, I hope to get this to a generally useful state this year.  Contributions, advice welcome, development is coodinated on github.pysandra- An asyncio based Cassandra client for Python.ProgressIn case you didn't read the notice, there's quite a limited set of functionality at the moment.Things that exist:asyncio interfacebasic query support (with results into native python types)basic DML supportbasic DDL querybasic prepared statementsbasic TLS support...see protocol.md for more detailsThings that don't exist:any authentication supportsync support (version 2.0)paging, batch supportstable apifriendly apiconnection to more then one cluster member...why are you still reading this.Goalscassandra client driver for asyncio based applicationsallow doing anything the wire protocol allows and servers tolerateImplementationCurrently targeting python 3.6 and aboveAims to be:correctfastefficientdeveloper friendlyTodostls contextpagingAUTHTestsapi docsmake user objects user friendly (exceptions, EventChange, Rows)batchclient connection routingcqlshellLicense & ContributionsThe pysandra project is dual-licensed under Apache 2.0 and MIT terms.See COPYRIGHT for full detailsUnless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.Pysandra 0.2.6 (2019-11-23)No significant changes.Pysandra 0.1.1 (2019-11-18)First Public Version
Package: pysandwich
SandwichSandwich is a multi-platform, multi-language, open-source library that provides
a simple unified API for developers to use (multiple) cryptographic libraries
in their applications. Find documentationhere.Status & API stabilitySecurityWARNING: This library is under current security review by a
third-party company. We will release a new version fixing the
findings found during that audit.API stabilitySandwich version is currentv0.x.y. Until Sandwich v1.0.0 is
released, expect some breaking changes in the various APIs.ContentsIntroductionGetting StartedLicenseContributionsIntroductionGetting StartedThe documentation containsinstallation & integration instructionsfor each supported language.LicenseSandwich is licensed underAGPL 3.0 only.ContributionsContributors need to sign and send a Contributor License Agreement:individuals need to signthe Individual Contributor License Agreement, and send it by email alongside their Github handle atsandwich [at] sandboxaq.comcorporate contributors need to signthe Corporate Contributor License Agreement, and send it by email alongside their Github handle atsandwich [at] sandboxaq.comDisclamerThe software and documentation are provided "as is" and SandboxAQ hereby disclaims all warranties, whether express, implied, statutory, or otherwise.
SandboxAQ specifically disclaims, without limitation, all implied warranties of merchantability, fitness for a particular purpose, title, and non-infringement, and all warranties arising from course of dealing, usage, or trade practice.
SandboxAQ makes no warranty of any kind that the software and documentation, or any products or results of the use thereof, will meet any person's requirements, operate without interruption, achieve any intended result, be compatible or work with any software, system or other services, or be secure, accurate, complete, free of harmful code, or error free.
Package: pysanejs
PySaneJSThis is a simple python module to querySaneJS,
a project that usesCDNJSas a source of known JavaScript libraries.CLI usageIt is not super useful to use it like that, but you can give it a try:# You can pass a list of sha512sanejs--sha512908a25a227d1d6dd4397ddbf8ed19d58d092edd11f7dfbe89385e1f340211aed0ef7777edae3d3c1824f410949b7b9373753b83a3178b0f656fb97424bb20bc2{"response":["dojo|1.11.0-rc3|resources/dnd.css","dojo|1.9.3|resources/dnd.css","dojo|1.8.10|resources/dnd.css","dojo|1.10.0|resources/dnd.css","dojo|1.9.1|resources/dnd.css","dojo|1.10.2|resources/dnd.css","dojo|1.9.7|resources/dnd.css","dojo|1.8.9|resources/dnd.css","dojo|1.10.1|resources/dnd.css","dojo|1.11.0-rc4|resources/dnd.css","dojo|1.8.2|resources/dnd.css","dojo|1.10.4|resources/dnd.css","dojo|1.8.8|resources/dnd.css","dojo|1.9.6|resources/dnd.css","dojo|1.8.0|resources/dnd.css","dojo|1.11.0-rc5|resources/dnd.css","dojo|1.8.6|resources/dnd.css","dojo|1.9.5|resources/dnd.css","dojo|1.8.1|resources/dnd.css","dojo|1.10.3|resources/dnd.css","dojo|1.8.5|resources/dnd.css","dojo|1.8.3|resources/dnd.css","dojo|1.9.4|resources/dnd.css","dojo|1.9.0|resources/dnd.css","dojo|1.9.2|resources/dnd.css","dojo|1.11.0-rc1|resources/dnd.css","dojo|1.8.4|resources/dnd.css","dojo|1.8.7|resources/dnd.css","dojo|1.11.0-rc2|resources/dnd.css"]}sanejs--libraryjquery-tools# You can pass a list of tools{"response":{"jquery-tools":{"1.2.0":{"jquery.tools.min.js":"f95c034c328d7c3f5bd14e0fd82a9309ab197931ff41120ca8d749036f5a773092dc0f357b190570754f5a17d7a42a71b932793a54b0ec812eef3730ddc93dc9"},"1.2.1":{"jquery.tools.min.js":"ba386f0827c971277c3f6941c58f9dbc410f668b272201127ee38377f57a8ec37c2cb415089cb12205c6ed2c339bf6f5a7d20c6259ae1f55337154257a398204"},"1.2.2":{"jquery.tools.min.js":"b40b56d553cb23c7fb607f31118ba7c2ae1058308795d5b0f6d42025c7aa3f9f2b5fbb3be4c8734cf6f8f2c3dd202aca79de14d7a54d448bbe34c8198b94fc96"},"1.2.3":{"jquery.tools.min.js":"597bb3566588ba0ec2c7fce0f4449022be687878d5c04113526503a0e77b79755c33a9ba1ad6ef8232a4a51b98b7a8b287caba7db699b4374a53370fb51f859d"},"1.2.4":{"jquery.tools.min.js":"1dbcb177bf7b28c72d3b54aa71befa5a6d91e35c1df702a1991c9df7e60aa3efcd59bbdb8fb0a61326c3ebfe046c809ea01030c3fd8de4b90668e2aee778d968"},"1.2.5":{"jquery.tools.min.js":"d91fdfc6cb7529493182d3c7ea12eb6cb3323060434bfd4c98c95c9f223fa97cff9a9254c5655b51818491d9de9f53ba3df1b5cbd1a20ed0dce683829b75db6a"},"1.2.6":{"jquery.tools.min.js":"f8be2202d8ff862849e19562ba93e2743027298d9fc908191ca48978458a7053c584c581f44f37b8a595ce9262fbda1b5bea83330dd3366fc2c44a172e286f96"},"1.2.7":{"jquery.tools.min.js":"b15d794a0289980a2dcffe70eb5ecaf42e2a3785a3dd8324f577fae7e8f381098fa9f8f048f6f0c1029d584d618ff5a30c6112a9baa1e1809f2ffb4781373e11"}}}}Note: As long as the hashes aren't loaded, every query will return the following:{"error":"The hashes are not all loaded yet, try again later."}When they're all loaded, the repository will be pulled on a regilar basis and load the new hashes.
Package: pysangkom
Just call a function .pysangkom()Warning⚠️EN: This library is useless and uses a lot of CPU and RAM. Use it when you want to crash your own computer.TH: Library นี้ไม่มีประโยชน์ใดๆ และใช้ CPU และ RAM ค่อนข้างมาก ควรใช้เมื่อต้องการพังคอมตัวเองทิ้งจะดีที่สุดsHow to usefrom pysangkom.forkyou import pysangkom

call = pysangkom.pysangkom()
Package: pysanity
Emulates sanity for other people’s dirty ass non-pep compliant code via only the /dirtiest/ of means.Tested with Python 2.7, 3.5.PyPi:https://pypi.python.org/pypi/pysanityAnd that means?Hi! I’mpysanityand I turn:importlogginglog=logging.getLogger(__name__)Into the much less brain numbing:frompysanityimportlogginglog=logging.get_logger(__name__)All the while keeping your precious code completion working as expected thanks to a not grossly over-dynamic nature.You’re welcome for my existence on PyPi.Logging you say?Hint:Try this out and stop accepting needless boilerplate in your code, stdlib or not:importloggingimportlogging.configimportinspectdef_namespace_from_calling_context():"""
    Derive a namespace from the module containing the caller's caller.

    :return str: the fully qualified python name of a module.
    """returninspect.currentframe().f_back.f_back.f_globals['__name__']defget_logger(name=None):"""
    Gets a logger instance with sensible defaults according to caller context.

    :param str name: Logger name. Defaults to caller's `__name__`.
    :return logging.Logger: Logger instance
    """ifnotname:name=_namespace_from_calling_context()returnlogging.getLogger(name)InstallationpipinstallpysanityRunning testsTox is used to handle testing multiple python versions.tox
Package: pySankey
pySankeyUses matplotlib to create simpleSankey diagramsflowing only from left to right.RequirementsRequires python-tk (for python 2.7) or python3-tk (for python 3.x) you can
install the other requirements with:pipinstall-rrequirements.txtExampleWith fruits.txt :truepredicted0blueberryorange1limeorange2blueberrylime3appleorange.........996limeorange997blueberryorange998orangebanana999applelime1000 rows × 2 columnsYou can generate a sankey's diagram with this code:importsankeyimportnumpyasnpimportmatplotlib.pyplotaspltimportpandasaspdpd.options.display.max_rows=8%matplotlibinlinedf=pd.read_csv('fruits.txt',sep=' ',names=['true','predicted'])colorDict={'apple':'#f71b1b','blueberry':'#1b7ef7','banana':'#f3f71b','lime':'#12e23f','orange':'#f78c1b'}sankey.sankey(df['true'],df['predicted'],aspect=20,colorDict=colorDict,fontsize=1,figure_name="fruit")You 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.0importsankeyimportnumpyasnpimportmatplotlib.pyplotaspltimportpandasaspdpd.options.display.max_rows=8%matplotlibinlinedf=pd.read_csv('customers-goods.csv',sep=',',names=['id','customer','good','revenue'])# actual call is left as an exercice to the reader but it could be something like# sankey.sankey(left=df['customer'], right=df['good'], rightWeight=df['revenue'],#               aspect=20, colorDict=colorDict, fontsize=20,#               figure_name="customer-good")