Saravanan666/pypi-org huggingface dataset:
Package: pylint-sarif-unofficial
This isan unofficial forkofthepylint-sarifproject.Most
code here was written by the original GrammaTech developers, but they are not
responsible for any bugs.This is on PyPI aspylint-sarif-unofficial.This usespython-jsonschema-objects,
whichdoes not currently
supportversion 4.18 ofjsonschema.
To avoid holding your project'sjsonschemaversion (if it uses it) back, I
suggest installingpylint-sarif-unofficialusingpipxinstead of listing it
in your project's manifest file. You can put a command like this in your pylint
CI workflow:pipxinstallpylint-sarif-unofficialOr with the specific version you want, for example:pipxinstallpylint-sarif-unofficial==0.2.1Your project can still installpylintitself as a development dependency.TheLICENSEis the same as in the upstream project. The original project readme follows
below.pylint-sarifThis repo contains code for converting from Pylint output to SARIF, and for
invoking CodeSonar in a manner that does a analysis and imports the SARIF file.The version of SARIF supported is the one specified by the version
in sarif-spec.json. This is a snapshot taken from here:https://github.com/Microsoft/sarif-sdk/blob/develop/src/Sarif/Schemata/sarif-schema.jsonNote that the version string included therein identifies the particular draft of
the SARIF specification.pylint2sarif.pyThis runs pylint and converts the output to SARIF v2.To use:python pylint2sarif.py --helpTypically, you give it the exact same set of arguments that you would pass to pylint. E.g.,python pylint2sarif.py ex1.pypylint2cso.pyThis runs CodeSonar to create an analysis and import the SARIF file.python pylint2cso.py -hSample invocation:codesonar analyze -preset sarif_import Proj localhost:9460 python pylint2cso.py ex.pyNote that this must be run under CodeSonar in this fashion or it will just not work.Requirementspylint2sarif.pyneeds the following:Python 2 or 3, but note that Cygwin python is NOT supportedpip install python_jsonschema_objects. This has been tested for release 0.3.12, which corresponds to version 0.0.18pip install pylintpylint2cso.pyneeds:A version of CodeSonar supporting the importing of SARIF v2.
Package: pylint-sonarjson
pylint-sonarjsonA PyLint plugin that can output toSonarQube-importable JSONwith configurable issue severity, effort, and type.This is useful because when importing PyLint'sparsable outputviaSonarQube mechanism for third-party issuesall the severities are set toMAJOR. Withpylint-sonarjsonyou can configure the
issue severity per PyLint message ID, and import that as generic JSON in SonarQube.Usage$ pylint \
    --load-plugins=pylint_sonarjson \
    --output-format=sonarjson \
    --sonar-rules=<msg_id>:<severity>[:<effort>[:<type>]],... \
    --sonar-default-severity=<severity> \
    --sonar-default-effort=<effort> \
    --sonar-default-type=<type> \
    --only-enable-sonar-rules=<y or n> \
    --halt-on-invalid-sonar-rules=<y or n> \
    [...]The plugin provides a new optionsonar-rulesthat can configure the severity,
effort, and type of the issue as it would appear in SonarQube. The option takes
a comma-separated list whose items are of the form<msg_id>:<severity>:<effort>:<type>.
The effort and type are optional and  may be omitted.In addition, the default severity, effort, and type for messages that are not listed
insonar-rulescan respectively be set withsonar-default-severity,sonar-default-effort,sonar-default-type. They default toMINOR,5, andCODE_SMELLrespectively.Setting the optiononly-enable-sonar-rulestoydisables all messages
except for those specified insonar-rules. It is equivalent to--disable=all --enable=<msg_id>,...where<msg_id>,...are the message IDs
specified insonar-rules. The default value ofonly-enable-sonar-rulesisn.Lastly, enabling the optionhalt-on-invalid-sonar-ruleswill cause the plugin
to raise an exception when a rule given insonar-rulesdoes not exist in Pylint
and halt. Disabling this option will instead only report the invalid rule on
stderr but will otherwise ignore the invalid rule. The default value ofhalt-on-invalid-sonar-rulesisy.`For example:$ pylint \
    --load-plugins=pylint_sonarjson \
    --output-format=sonarjson \
    --sonar-rules=C0114:INFO:10,C0328:MINOR:1 \
    my_file.pyOutput:{"issues":[{"engineId":"PYLINT","ruleId":"C0114","type":"CODE_SMELL","primaryLocation":{"message":"Missing module docstring","filePath":"my_file.py","textRange":{"startLine":1,"startColumn":0}},"severity":"INFO","effortMinutes":10}]}This output, when saved to a file, can be imported into SonarQube as follows:$ sonar-scanner -Dsonar.externalIssuesReportPaths=<path_to_pylint_sonarjson_log>Installationpip install pylint-sonarjson
Package: pylint-string-spaces-checkers
# Pylint String Spaces CheckersAdditional string checkers for [Pylint](https://pylint.org).[![Build Status](https://travis-ci.org/ZhangBohan/pylint-string-spaces-checkers.svg?branch=master)](https://travis-ci.org/ZhangBohan/pylint-string-spaces-checkers)[![PyPIversion](https://badge.fury.io/py/pylint-string-spaces-checkers.svg)](https://badge.fury.io/py/pylint-string-spaces-checkers)## Install` pip installpylint-string-spaces-checkers`## UsageTo use the additional string checkers, run Pylint as follows:` pylint--load-pluginsstring_spaces_checkers foo.py `## Checkers### String concatenation spacesString substitution is often recommended over string concatenation, but most time we just miss the comma, so we should
check if we miss comma between strings
Package: pylint-super-not-called
Pylint super-not-called pluginA Pylint plugin that enforces methods to call the parent method with super.Installation# Install the package into your virtual environment:pipinstallpylint_super_not_called# Launch Pylint with the load-plugin optionpylint--load-pluginpylint_super_not_called.Use pylintrc to automatically load the plugin if neededConfigurationsuper-enforced-methods: a list of methods to check (default: 'setUp')
Package: pylint-testcode-plugin
AboutThis plugin will assist in writing better testcode. It will push you to follow best practices.Installationpip install pylint-unittestUsageYou can easily load the plugin with the--load-pluginsflag like below.pylint --load-plugins=pylint-unittest YOUR_MODULE.pyCheckersBelow an overview of the checkers that come with this plugin.NameMessageTypeDescriptionAssertionsCheckerMissing assertion(s) in test - (missing-assertion)Warning (W9999)Checks if test method includes 'Assert' keyword or any type of assertion expression (from unittest.TestCase)
Package: pylint-to-ruff
pylint-to-ruffA friend offlake8-to-ruff,
this project attempts to introspect your Pylint configuration and figure out
what Ruff rules to enable or disable.CompatibilityRuff versions 0.1.4 (November 2023) and newer are supported.UsageYou need to be in an environment where both your target Pylint version and
your target Ruff version are available to execute.Then, run the program – easiest ispipx:pipxrunpylint-to-ruffor if you have installed the package already with Pip, simplypylint-to-ruffThe tool will output a TOML segment you can paste or interpolate into your
Ruff configuration file.
Package: pylint-tta
pylint-ttaPylint plugin to check forPyTorchtensor type annotationsTested on Python 3.6+BranchStatusMasterQuickstartpipinstallpylintpylint_tta# Use pylint defaults with the pluginpylint--load-plugins=pylint_tta<directory># Only use the pluginpylint--load-plugins=pylint_tta--disable=all--enable=C9001,C9002,C9003,C9004,C9005,C9006<directory>What it checks forGiven fileexample1.py,importastroidimporttorchdeffail_func():a=torch.randn(5,5,5)a.unsqueeze_(1)b_fail=a.view(5,25,-1)c_fail=a[:,:1]c_fail:str=a[:,:1]d_fail:str=a.unsqueeze(1)e_fail=a.unsqueeze_(1)returnNonedefpass_func():a=torch.randn(5,5,5)c_pass:('w','h','b')=a[:,:,1]d_pass:('width','batch','height')=a.unsqueeze(1)returnNonepylint-tta will yield:************* Module example1
example1.py:8:4: C9005: In-place operation detected (disallow-inplace-tensor-operations)
example1.py:9:4: C9001: Missing type annotations on tensor operation (missing-tensor-annotations)
example1.py:10:4: C9003: Missing type annotations on slicing (missing-slicing-annotations)
example1.py:11:4: C9004: Invalid type annotations on slicing (invalid-slicing-annotations)
example1.py:12:4: C9002: Non tuple type annotations on tensor operation (invalid-tensor-annotations)
example1.py:13:4: C9006: Assignment on in-place operation detected (assignment-on-inplace-operations)CodesCodeNameC9001missing-tensor-annotationsC9002invalid-tensor-annotationsC9003missing-slicing-annotationsC9004invalid-slicing-annotationsC9005disallow-inplace-tensor-operationsC9006assignment-on-inplace-operationsDevRun Exampleexport PYTHONPATH=`pwd`; pylint --load-plugins=pylint_tta --disable=all --enable=C9001,C9002,C9003,C9004 example1.pyTestingpytest -s
Package: pylint-unittest
Aboutpylint-unittestis aPylintplugin for
detecting incorrect use of unittest assertions.Installationpip install pylint-unittestUsageEnsurepylint-unittestis installed and then execute:pylint --load-plugins pylint_unittest [..other options..] <path_to_your_sources>Alternatively, addload_plugins=pylint_unittestto yourpylintrcfile, under the MASTER section.Ruleswrong-assertionThis rule will complain if you use assertEqual with True, False or None
as arguments instead of the respectiveassertTrue,assertFalse,assertIsNone.deprecated-unittest-aliasThis rule will complain if you use a deprecated unittest alias. Seeherefor more information.LicenseGPL-3.0
Package: pylint_web2py2
This Pylint plugin minimizes Pylint’s complaints about web2py code.
Web2py executes user code in special environment populated with predefined objects and types and with objects defined in model files.
Also it has magic import mechanism which knows some special places where to find modules.Pylint doesn’t know about these details – its parser is unable to find these objects and modules, resulting in a flood of laments.
This plugin:
- adds variables defined in models to other models’ and controllers’ scope
- adds definition of some predefined global objects to models and controllers
- adds web2py module paths to sys.path, so pylint is able to find themTo enable this plugin:
- Add–load-plugins=pylint_web2py2to pylint options
or
- Addload-plugins=pylint_web2py2to your .pylintrc
Package: pylint-web2py3
pylint_web2py3A Pylint plugin that removes Pylint's complaints about web2py code.DescriptionWeb2py executes user code in special environment populated with predefined objects and types and with objects defined in model files.  It also has magic import mechanism which knows some special places where to find modules.Pylint doesn't know about these details -- its parser is unable to find these objects and modules, resulting in a flood of laments.
This plugin:Adds variables defined in models to other models' and controllers' scopeAdds definition of some predefined global objects to models and controllersAdds web2py module paths to sys.path, so pylint is able to find themInstallationYou can either install this plugin from Pip:pipinstallpylint_web2py3Or, you can install from source:gitclonehttps://github.com/vinyldarkscratch/pylint_web2py3cdpylint_web2py3
pythonsetup.pyinstallEnabling PluginAdd--load-plugins=pylint_web2py3to pylint options
orAddload-plugins=pylint_web2py3to your .pylintrc
Package: pylint-websockets
Pylint WebsocketsA pylint plugin for websocketsInstallationVia Pippip install pylint-websocketsVia Poetrypoetry add --dev pylint-websocketsUsageAdd the following arguments when running Pylint:--load-plugins=pylint_websocketsAlternatively, add the following to yourpyproject.toml:[tool.pylint.MASTER]load-plugins='pylint_websockets'
Package: pylintxml
What is pylintxml?pylintxml is a simple tool that allows creating simple xml 'linters'.InstallationThe best way is to get the pip package management tool (or use a virtualenv)
and run the following:pip install pylintxmlExamplesCheck out pylintxml\examples folderExamples:cd examples\qt && pylintxml sample.xmlcd examples\qt && pylintxml sample.xml -scd examples\qt && pylintxml sample.xml -s -vcd examples && pylintxml -r books\.lintxml books\sample.xml -scd examples\books && pylintxml sample.xml -vUsagepylintxml --help
Package: pylinuxnetnamespace
Binds an IP-address to a subprocess through network namespaces - Linux onlyTested against Ubuntu / Python 3.11 + 3.10 / Anacondapip install pylinuxnetnamespaceSimplifies Network Namespace Management:This library streamlines the
process of creating and managing network namespaces and routing rules,
reducing complexity and manual configuration efforts.Effortless Command Execution:With this library, executing commands
within network namespaces becomes straightforward, allowing users to
interact with isolated environments effortlessly.Automation for Isolated Environments:It provides a convenient way to
automate the setup of isolated network environments, making it
ideal for automating testing or development environments.Streamlined Source NAT Configuration:The library simplifies the
configuration of Source NAT (SNAT) rules, a common requirement for network management.Args:su_password(str):Thesuperuser(sudo)password.networkip(str):TheIPaddresstobindtotheprocess.networkinterface(str,optional):ThenetworkinterfacetoapplyNATrulesto(defaultis'eth0').nameserver(str,optional):TheDNSnameserverIPaddress(defaultis'8.8.8.8').new_ip_start(str,optional):ThestartingIPaddressrangeforcreatingnetworkinterfaces(defaultis'192.168.').virtual_namespace_prefix(str,optional):Theprefixfornamingnetworknamespaces(defaultis'eth').Returns:IpRun:AnIpRuninstancewiththespecifiedconfiguration.Usage:# Create a bound subprocess that binds an IP address to a process using network namespaces.frompylinuxnetnamespaceimportget_bound_subprocess_Popenbindedsubproc=get_bound_subprocess_Popen(su_password='1',networkip='192.168.9.100',networkinterface='enx344b50000000',nameserver='8.8.8.8',new_ip_start='192.168.',virtual_namespace_prefix=f'eth')# bindedsubproc behaves like the subprocess.Popen class# you have to create it only once and can use it multiple timesbindedsubproc('ping 1.1.1.1',shell=True)bindedsubproc('ping google.com',shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
Package: py-linux-ports
py-linux-portsCheck Linux System Port's StatusPackage Installation  :pip install py-linux-portsPackage LinkPy-Linux-Port's:importjsonfromPyLinuxPorts.PyLinuxPortsimportportScanIpAddress="192.168.43.133"PortNumber=65000result=portScan(IpAddress,PortNumber)print(json.dumps(result,indent=4))withopen('result.json','w')asi:json.dump(result,i)License:MIT LicensedAuthor:Sujit MandalGitHubPyPi
Package: pylinx
pylinxPython utils for Xilinx's toolsThis package based on the following requiremets:Running-SDK-project-in-other-softwareError during control Xilinx XSCT with pexpectExamplewin_xsct_executable=r'C:\Xilinx\SDK\2017.4\bin\xsct.bat'xsct_server=XsctServer(win_xsct_executable,port=PORT,verbose=False)xsct=Xsct('localhost',PORT)print("xsct's pid:{}".format(xsct.do('pid')))print(xsct.do('set a 5'))print(xsct.do('set b 4'))print("5+4={}".format(xsct.do('expr $a + $b')))xsct.close()xsct_server.stop_server()Prints out:xsct's pid: 13808
5
4
5+4=9
Package: pylio
PylioSend email messages through a specified Gmail account.Getting StartedDownload Pylio and its dependanciespip install pylioTurn on Gmail API by clickingEnable Gmail APIonGmailSelect+ Create a new project.Download the credentials file to access your Gmail account.Move the downloaded file to your working directory and ensure it is namedcredentials.json.You can also specify the location ofcredentials.jsoneither inconfig.yamlor using the--cred-fileflag.From command line: usepyliowith the below arguments. Default arguments will come from theconfig.yamlunless otherwise stated.Command line override arguments:--to email_addressemail address of intented recepient--message msg_bodytext body of email--config-file path(optional) path to custom configuration file; default isconfig.yaml--cred-file path(optional) path to Google Gmail credentials JSON file--subject subject_line(optional) subject line of emailContentsconfig.yamlDefault configuration file to specify to, message, and Google credentials filePylioMail.pyClass using Google APIsetup.pypip fileHow does it work?This repository is a wrapper that simplifies the use of theGoogle Gmail API.TroubleshootingCheck if authorization is enabled:Google AuthorizationMake surehttps://www.googleapis.com/auth/gmail.sendis chosen inauthorization.2018 (c) Xavier Collantes
Package: py-Lion
py-Lion LibraryA stable userbot base library, based on Telethon.Installationpip install py-LionUsage=> Create folders namedplugins,addons,assistantandresources.=> Add your plugins in thepluginsfolder and others accordingly.=> Create a.envfile withAPI_ID,API_HASH,SESSION,BOT_TOKEN,BOT_USERNAME,REDIS_URI,REDIS_PASSWORD&LOG_CHANNELas mandatory environment variables. Check.env.samplefor more details.=> Runpython -m pyLionto start the bot.Creating pluginsTo work everywhere@Lion_cmd(pattern="start",)asyncdef_(e):awaiteor(e,"Lion Started")To work only in groups@Lion_cmd(pattern="start",groups_only=True,)asyncdef_(e):awaiteor(e,"Lion Started")Assistant Plugins 👇@asst_cmd("start")asyncdef_(e):awaite.reply("Lion Started")Made with 💕 by@TeamLion.CreditsLonamiforTelethon
Package: pyLionChief
PyLionChiefPyLionChief is an open-source project that aims to provide Python access to the Lionel's LionChief line of trains.InstallationPyLionChief can be installed usingpip, or by downloading the source code and running thesetup.pyscript.Installing with pipTo install PyLionChief usingpip, simply run:pip install pylionchiefInstalling from sourceTo install PyLionChief from source, follow these steps:Download the source code from theGitHub repository.Extract the contents of the archive to a directory of your choice.Navigate to the directory containing thesetup.pyscript.Run the following command:python setup.py installExamplesPyLionChief comes with a few examples to help users get started. These examples can be found under theexamplesdirectory in the repository root.LicensePyLionChief is released under the MIT license. See the LICENSE file for more details.
Package: pylion-yellowakita
LionUma biblioteca simples para comunicação p2p na rede localInstalar$pipinstall-elionExemplofromrandomimportrandintfrompeerimportPeerclassHelloPeer(Peer):defon_found(self,peer:"Peer"):print('i am',self)print('found',peer)peer.send(b'hello peer!')defon_message(self,peer:"Peer",message:bytes):print('received',message,'from',peer)if__name__=='__main__':HelloPeer('0.0.0.0',randint(8800,8888)).run()2022 - Marcel Guinhos de Menezes
Package: pylipd
PyLiPDPython utilities to interact with the Linked Paleo Data (LiPD) formatInstallationpip install pylipdUsageLoading local LiPD filesfrom pylipd.lipd import LiPD
lipd = LiPD()
lipd.load(["MD98_2181.Stott.2007.lpd", "Ant-WAIS-Divide.Severinghaus.2012.lpd", "Asi-TDAXJP.PAGES2k.2013.lpd"])Loading LiPD data from GraphDB serverfrom pylipd.lipd import LiPD
lipd = LiPD()
lipd.set_endpoint("https://linkedearth.graphdb.mint.isi.edu/repositories/LiPDVerse2")
lipd.load_remote_datasets(["MD98_2181.Stott.2007", "Ant-WAIS-Divide.Severinghaus.2012", "Asi-TDAXJP.PAGES2k.2013"])
Package: pylipid
PyLipID is a python package for analyzing lipid interactions with membrane proteins from
Molecular Dynamics Simulations. PyLipID has the following main features, please check out
the tutorials for examples and the documentations for the API functionalities:Detection of binding sites via calculating community structures in the interactions networks.Calculation of lipid koff and residence time for interaction with binding sites and residues.Analysis of lipid interactions with binding sites and residues using a couple of metrics.Generation of representative bound poses for binding sites.Analysis of bound poses for binding sites via automated clustering scheme.Adoption of a dual-cutoff scheme to overcome the ‘rattling in cage’ effect of coarse-grained simulations.Generation of manuscript-ready figures for analysis.PyLipID can be used from Jupyter (former IPython, recommended), or by writing Python scripts.
The documentaion and tutorials can be found atpylipid.readthedocs.io.InstallationWe recommend installing PyLipID using the package installerpip:pip install pylipidAlternatively, PyLipID can be installed from the source code. The package is available for
download on Github via:git clonehttps://github.com/wlsong/PyLipIDOnce the source code is downloaded, enter the source code directory and install the package as follow:python setup.py install
Package: pyliquibase
pyliquibaseA Python module to useliquibasein python, using the Java Native Interface (JNI).For further details on python-java integrationplease see hereInstallationinstall:pipinstallpyliquibaseinstall from github:pipinstallhttps://github.com/memiiso/pyliquibase/archive/master.zip--upgrade--userHow to Useusing command line:pyliquibase--defaultsFile=changelogs/liquibase.propertiesstatus
pyliquibase--defaultsFile=changelogs/liquibase.propertiesvalidate
pyliquibase--defaultsFile=changelogs/liquibase.propertiesupdateSQL
pyliquibase--defaultsFile=changelogs/liquibase.propertiesupdateusing python:frompyliquibaseimportPyliquibaseif__name__=='__main__':liquibase=Pyliquibase(defaultsFile="changelogs/liquibase.properties",logLevel="INFO")# call execute with argumentsliquibase.execute("status")liquibase.execute("rollback","MyTag")# orliquibase.validate()liquibase.status()liquibase.updateSQL()liquibase.update()liquibase.update_to_tag("MyTag")liquibase.rollback("MyTag")# liquibase maintenance commandsliquibase.changelog_sync()liquibase.changelog_sync_to_tag("MyTag")liquibase.clear_checksums()liquibase.release_locks()Python Java IntegrationPython library is based onLiquibaseCommandLinePython class. It is reflection of JavaLiquibaseCommandLineclass.
liquibase calls are passed to JavaLiquibaseCommandLine.execute(liquibaseargs)method.Pyjniusis a Python library for accessing Java classes. It either starts a new JVM inside the process, or retrieves the already surrounding JVM. To read more on pyjnius please seehttps://pyjnius.readthedocs.io/en/latest/classLiquibaseCommandLine(JavaClass,metaclass=MetaJavaClass):__javaclass__='liquibase/integration/commandline/LiquibaseCommandLine'# methodsexecute=JavaMethod('([Ljava/lang/String;)I')ContributorsLIQUIBASE is a registered trademark ofLiquibase, INC.
Package: py-liquidhandler
This is a library and a GUI control program written in Python for
controlling a Waters 2700 Sample Manager (and compatible) liquid
handling robot. These are quite common in Mass spectrometry labs and
typically have 1-2 arms with attached syringes and one 6-port valve.Changes in Version 0.5: more bugfixes, and it looks even good in
Windows now!The library allows to easilycontrol the movements of up to 2 armscontrol the syringe pump and 6-port valve to dispense and draw
liquids from a reservoir or e.g. a 96-well platesave and recall positions (like “wash”, “A1” on a plate, etc.) for
easier scriptingThe GUI program provides a platform-independent graphical interface
for the library. However, the library can be used without the GUI
part.