Saravanan666/pypi-org huggingface dataset:
Package: lintswitch
*lintswitch* runs pylint, pep8 and pymetrics on your Python code, and jshint on your JS code, in the background.You must tell lintswitch which files to lint. A **vim** plugin is included, in the contrib directory, which calls lintswitch every time you save a file.With lintswitch, your code is constantly being watched and linted in the background, without interrupting your workflow. You view the results in a browser.Linters and file types currently supported:- Python: pylint, pep8, pymetrics- Javascript: jshintlintswitch has only been tested on Ubuntu, but in theory should work anywhere Python does, as long as you install the linters.# Installationgit clone git://github.com/grahamking/lintswitch.gitcd lintswitchsudo setup.py installThen copy: _contrib/lintswitch.vim_ to _~/.vim/plugin/_.**Dependencies**sudo apt-get install pymetricssudo pip install pylintsudo pip install pep8Note that 'pymetrics' in pypi (pip) is a different project, and won't work with lintswitch.For **jshint**:- install nodejs: `https://github.com/joyent/node/wiki/Installation`- install jshint: `npm install jshint -g`**lintswitch** will search your system path and virtualenv bin to find those dependencies.All depencies are optional - if a linter is absent it will simply be ignored.# OutputBrowse to _localhost:8008_ to view the output. Leave that window open whilst you work - it will auto-update to always display results for the file you just saved (server-sent events!).If you have Chrome, and click 'Enable Notifications' in the top right of the window, errors will be displaying using desktop notifications.# DaemonizeIn case you find lintswitch so awesome that you want to run it all the time, an [upstart](http://upstart.ubuntu.com/) is included. Copy `contrib/lintswitch.conf` as `/etc/init/lintswitch.conf`, and replace my username / group with yours.That script will start lintswitch on boot. You can also manage it manually: `sudo [start|stop|restart|status] lintswitch`# ConfigurationAll the configuration options are command line switches. See `lintswitch --help` for details.# Not using vim?To use lintswitch from other editors, you need to connect to a socket and send the filename. In Python, that looks like this:import sockets = socket.create_connection(('127.0.0.1', 4008), 2)s.send('%s\n' % full_path_of_file_you_want_to_lint)s.close()If you write a plugin for another editor, please send it my way and I will include it in _contrib_.## Virtualenv awareIf the file being checked is in a virtualenv, lintswitch will also look for the checkers in the virtualenv's bin directory.## pylint noteslintswitch will change into the root of your project before running pylint, and use a .pylintrc file if there is one there. The root of your project is determined to be the first directory that does not contain an __init__.py file, i.e. the first directory that is not a python module.## ContributeI'd love to add linters for other languages, so if you do that locally, please send it my way. Thanks!
Package: linttest
Django Lint Test================Lint Test is a simple Django app to perform flake8 linting on yourproject. You'll set a settings.LINT\_TEST\_SINCE\_COMMIT from somecommit in your git history.It will then check files changed since that commit origin and ensurethey lint properly. If any file doesn't lint properly your unit test runwill fail.## Quick start--------------1. ``pip install linttest``2. Add "linttest" to your INSTALLED\_APPS setting like this::::INSTALLED_APPS = [...'linttest',]3. Specify the commit origin in your settings (sh> git log)::::LINT_TEST_SINCE_COMMIT = '<commit hash>'4. Run the management command::::python manage.py linttestorpython manage.py test linttest5. Fix any files that fail the linting!## Run with your normal tests suite-----------------------------------1. Verify installation with the "Quick Start" guide2. Add a test that extends the ``LintTestCase`` to another test file inyour project::from linttest.tests import LintTestCaseclass MyLintTests(LintTestCase):pass3. Run the test command::::python manage.py testThis is required for django 1.6 and up because the DiscoveryRunnerdefaults to just running tests in your project.For local installation----------------------1. Git clone...2. Package it::python setup.py sdist  # rerun this and the next step on change3. From your desired install project - note the relative path - updatefor your project location::pip install ../linttest/dist/linttest-0.1.tar.gzor::pip install ../linttest/dist/linttest-0.1.tar.gz --upgrade  # rerun on change4. You can follow the quickstart from there
Package: lintwork
lintworkIntroductionlintworkis a lint worker oflintflowwritten in Python.PrerequisitesgRPC >= 1.36.0Python >= 3.7.0RunLocal modepipinstall-Urrequirements.txt
pythonwork.py--config-file="config.yml"--lint-project="project"--output-file="output.json"Service modepipinstall-Urrequirements.txt
pythonwork.py--config-file="config.yml"--listen-url="127.0.0.1:9090"DockerLocal modedockerbuild-fDockerfile-tcraftslab/lintwork:latest.
dockerrun-it-v/tmp:/tmpcraftslab/lintwork:latest./lintwork--config-file="config.yml"--lint-project="/tmp/project"--output-file="/tmp/output.json"Service modedockerbuild-fDockerfile-tcraftslab/lintwork:latest.
dockerrun-it--network=hostcraftslab/lintwork:latest./lintwork--config-file="config.yml"--listen-url="127.0.0.1:9090"Usageusage: work.py [-h] --config-file CONFIG_FILE
               [--lint-project LINT_PROJECT | --listen-url LISTEN_URL]
               [--output-file OUTPUT_FILE] [-v]

Lint Work

optional arguments:
  -h, --help            show this help message and exit
  --config-file CONFIG_FILE
                        config file (.yml)
  --lint-project LINT_PROJECT
                        lint project (/path/to/project)
  --listen-url LISTEN_URL
                        listen url (host:port)
  --output-file OUTPUT_FILE
                        output file (.json|.txt|.xlsx)
  -v, --version         show program's version number and exitSettingslintworkparameters can be set in the directoryconfig.An example of configuration inconfig.yml:apiVersion:v1kind:workermetadata:name:lintworkspec:cpp:checkpatch:---no-summary---no-tree---tersecpplint:java:aosplint:---disable-LintError---nolines---quietcheckstyle:--jar-/home/craftslab/opt/checkstyle/lib/checkstyle.jar--c=/home/craftslab/opt/checkstyle/etc/google_checks.xmljavalint:--jar-/home/craftslab/opt/javalint/lib/javalint.jar---filestringscheck:make:checkmake:---format=:{{.LineNumber}}::{{.Violation}}\npython:flake8:shell:shellcheck:---format=gccDesignErrorformatJSON format{"lintwork":[{"file":"name","line":1,"type":"Error","details":"text"}]}Text formatlintwork:{file}:{line}:{type}:{details}LicenseProject License can be foundhere.ReferenceLinterandroid-lintcheckmakecheckpatchcheckstylecpplintflake8golangci-lintgroovylintrust-clippyshellcheckspotbugsMiscerrorformatgRPCprotocol-buffersreviewdog
Package: linuk
linukPython Utility library for built in python codes.Installationpip install linukExamplefrom linuk.basic import listmaker
listmaker('ab cd ef gh')Whats NewNew module with python code templates
import linuk.templatesadded acronym_maker to linuk.basic
from linuk.basic import *
acronym_maker("Sega Nintendo Sony")for more documentation use built in help() command.
Package: linumpy
LinumpyLinumpyis the main library supporting research and development at theLaboratoire d'Imagerie Numérique, Neurophotonique et Microscopie(LINUM).Linumpycontains tools and utilities to quickly work with serial histology and microscopy data. Those tools implement the recommended workflows and parameters used in the lab. The library and scripts can be installed locally by using:pip install -e .We highly recommend working in aPython Virtual Environment.Linumpydocumentation is available:https://linumpy.readthedocs.io/en/latest/
Package: linus-colab-ssh
Colab SSHCreate SSH tunel to a running colab notebookPrerequisiteThis package only allow SSH public key authentication so you will need to prepare once. You might already had one at~/.ssh/id_rsa.pub. Referthisto create a new one if you don't had once alreadyIn order to connect to the SSH tunel from your machine, you will need to installcloudflaredfromhereUsageCreate a new Colab notebook with a single cell with the following content:!pip3installlinus-colab-sshfromcolab_sshimportsetup_ssh,loop_foreverpublic_key='<YOUR_PUBLIC_SSH_KEY>'setup_ssh(public_key)loop_forever()You can use list of public key or link to a raw text file ofauthorized_keyslikethisas wellOptinally, you can also specify a Mattermost Webhook URL withmattermost_webhook_addresswhen callingsetup_sshto send a push notification to your Mattermost channel when the SSH tunel is ready.Run it, after about 2 minutes, you will see something like this:Commandtoconnecttothesshserver:
✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️
ssh-oUserKnownHostsFile=/dev/null-oVisualHostKey=yes-oProxyCommand="cloudflared access ssh --hostname %h"root@economic-singapore-place-obtaining.trycloudflare.com
✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️
Oryoucanusethefollowingconfigurationinyour.ssh/configfile:
✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️
HostcolabHostNameeconomic-singapore-place-obtaining.trycloudflare.comUserrootUserKnownHostsFile/dev/nullVisualHostKeyyesStrictHostKeyCheckingnoProxyCommandcloudflaredaccessssh--hostname%h
✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️✂️```Then voila ;)Please noted that you must keep the kernel webpage connected to avoid Colab disconnect your kernel early.DisclaimerThis repo contains many of the configuration that I use for my day to day work so it might not be the best for you.If you had any problems using this, feel free to open an issue. Otherwise, I highly recommend you to fork this repo and did some necessary modification for yourself. Thanks for checking by
Package: linux-aio-bind
[english]|[한국어 (korean)]linux_aio_bind: Python binding forLinux Kernel AIOA low-level python binding module that matches the Linux kernel AIO system call.If you are not using thectypes moduleto develop high-level python modules directly, butyou want to use AIO functionality in python, seeHigh-level python wrapper.What is Linux Kernel AIO?Linux IO Models tableIn summary, it allows non-blocking and asynchronous use of blocking IO operations such asread(2)andwrite(2).Related documentsLinux Asynchronous I/OLinux Kernel AIO Design NotesHow to use the Linux AIO feature(in C)It is different fromPOSIX AIOThe POSIX AIO APIs have theaio_prefix, but the Linux Kernel AIO has theio_prefix.There is already a POSIX AIO API for asynchronous I/O, but Linux implements it in glibc, a user-space library, which is supposed to use multi-threading internally.
So, as you can see fromthe experiment, it's much worse than using the blocking IO API.Implementation & Structurectypes moduleis used.It is defined to correspond1:1with the C header of Linux AIO.Implemented 100% of the functionality when using C.All the functions shown in the man page based onLinux man pages (4.16), and all the functions added in4.20.3 source code, as far as I can find them.If you know how to use thectypes moduleto operate on pointers, you can also build other types of wrappers based on this package.e.g.High-level python wrapperIt usessyscallfor invoking ABI andcffifor gatheringdifferent syscall number by architectureon module installation.refer the codepython stub(pyifiles - for type hint) are included.All error handling in the documentation (based on man-pages 4.16)ExampleExamples can be found in the code in thetest directory.Notes & LimitsObviously available only on LinuxBecause it is a wrapper, it brings the constraints of Linux.It can not be used for files used as a kernel interface. (e.g.cgroup)Sometimes it works as Blocking.There are some things that have been solved through development after posting.Some features are being added because they are still under development.There are also some features that are not supported when the Linux version is lowYou need to checkLinux man pages (4.16)and its related API documentationPoll is 4.19 or higher, fsync and fdsync require 4.18 or higher kernel
Package: linux-allocated
ladLinux allocated devices parsing library for python.Use:from lad import ladmajor_minor = lad.convert('sda5')orname = lad.convert('8:6')That's all.Why this implementation is goodIt only loads what it needs to when it needs to. It does so quickly.Why this implementation is badI need help. There are a lot of LADs.Find it on pypi!https://pypi.org/project/linux-allocated/0.1/
Package: linuxbackup
Backup and restore for linuxThis library is targeting to help writing backup, restoration and configuration scripts with minimum effort.Example UsagesBacking up folders or filesfromlinuxbackupimport*folder(['/var/www','/var/log'])folder('/home/ubuntu/test',owner='ubuntu:ubuntu',permission='777')Execute the script with argument backup or restorepython3 example.py backup
sudo python3 example.py restoreExecuting shellsh(cmd,check)is the same assubprocess.run(cmd,shell=True,check=check)shris the same asshexcept it only runs in RESTOREsh('./test.sh')shr('curl https://get.acme.sh | sh')Editing php.iniphp=IniEditor('/etc/php/7.2/apache2/php.ini')php['PHP']['upload_max_filesize']='20M'php.write()#only executed in RESTORE mode
Package: linuxcmd
This is a simple extension of some useful python scripts on linux as a package, developed in order to make things easier and faster.Requirements:Paramiko1. getcmd :Description: To get the output of linux commands executed on remote servers easily and quickly.Arguments:a. hostname(required): Supply the server name/Ip from which you need to command results.b. username(required): usernamre to login to the server.c. password(required): password corresponding to the username supplied.d. cmds(required): Commands that need to be executed in the server. You can provide multiple commands to execute(a python list)e. filename(optional): If provided, appends the output of each command to filename supplied.2.portstatus:Description: To get the status of the port in given host.Arguments:a. hostname(required): Supply the server name/Ip for which you need to scan the ports.b. port(required, 'integer'): ports that need to be scanned, a python listFor any suggestions, feedbacks or contribution please visit https://github.com/Adityank003/linuxcmd
Package: linuxdialer
Click to Dial pop-up window for linux desktop.Install linuxdialer using pip3 (Not available for python 2)pip3 install linuxdialerInstallpython3-pyqt5andEkigafrom distro package manager.In debian based distro -sudo apt install python3-pyqt5 ekigaWhen installing from pip make sure you have~/.local/bininPATHenvironment variable.Run Application from command linelinuxdialer -t tel:+919988776655
linuxdialer -v path/to/vcardfileTest mime handler -Create atest.htmlcontaining<ahref="tel:+919988776655">Phone</a>, open with firefox/chrome
and click on PhoneClick on a tel number in evolution addressbookRight click on a vCard file and open with Linux Dialer
Package: linuxdoc
The LinuxDoc library contains Sphinx-doc extensions and command line tools to
extract documentation from C/C++ source file comments.  Even if this project
started in context of the Linux-Kernel documentation, you can use these
extensions in common Sphinx-doc projects.InstallInstall LinuxDocusingpip:pip install --user -U linuxdocLinksDocumentation:https://return42.github.io/linuxdocReleases:https://pypi.org/project/linuxdoc/Code:https://github.com/return42/linuxdocIssue tracker:https://github.com/return42/linuxdoc/issuespackage:linuxdoc (20231020)copyright:2023 Markus Heisere-mail:markus.heiser@darmarIT.delicense:AGPLv3+
Package: linuxdvb
This is a Python binding for the Linux DVB API. It is based on the headers fromkernel 2.6.35, and should work with any kernel implementing DVB API version 5.1or higher.All API features are implemented, but only the frontend and demux code has beentested, and only on DVB-S and ATSC hardware. Other hardware should work but Ihave no way of confirming this myself.Tested on CPython 2.6.5 and 3.1.2.Some code has been cribbed from the Python v4l2 binding.Usage example:::>>> import linuxdvb>>> import fcntl>>>>>> fefd = open('/dev/dvb/adapter0/frontend0', 'r+')>>> feinfo = linuxdvb.dvb_frontend_info()>>> fcntl.ioctl(fefd, linuxdvb.FE_GET_INFO, feinfo)0>>> feinfo.name'Genpix 8psk-to-USB2 DVB-S'>>> for bit, flag in linuxdvb.fe_caps.items():...     if (feinfo.caps & bit) > 0:...         print(flag)...FE_CAN_INVERSION_AUTOFE_CAN_FEC_1_2FE_CAN_FEC_2_3FE_CAN_FEC_3_4FE_CAN_FEC_7_8FE_CAN_FEC_AUTOFE_CAN_FEC_5_6FE_CAN_QPSKFE_CAN_QAM_16>>> fefd.close()::Support for DigiCipher II modes on Genpix DVB-S tuners is implemented. Get thedriver patch from:http://updatelee.blogspot.com/2010/09/genpix-skywalker-1-linux-driver-mods.html
Package: linux-farrukh90
Example PackageThis is a simple example package. You can useGithub-flavored Markdownto write your content.python3 -m build
python3 -m twine upload  dist/* --verboseOn the folder where pyproject.toml is located run the following commandspython3 -m venv publishing_environment
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install --upgrade twine
python -m twine upload dist/* --verbose
Package: linuxforhealth-packaging
python-packagingSample Integrations for PyPI and GitHub ActionsPre-requisitesPython>= 3.9 for application developmentQuickstart CLIOS X / Linux# clone the repogitclonehttps://github.com/LinuxForHealth/python-packaging.gitcdpython-packaging# create virtual environment and create an "editable" installpython3-mvenvvenv--clear&&\sourcevenv/bin/activate&&\python3-mpipinstall--upgradepipsetuptoolswheelbuild

python3-mpipinstall-e.[dev]# run testspython3-mpytest
Package: linuxinfo
Linux Informationwork in progressAnswers:is this a raspberry pi?functions returnNoneon erroris this a raspbian or ubuntu distro?is this distro based on debian?reads/proc/cpuinfofor revision codereads/etc/os-releasefor linux OS infoInfoReads therevision codewhich encodes a bunch of information asuuuuuuuuFMMMCCCCPPPPTTTTTTTTRRRR. This library
decodes that number.RPiInfo=namedtuple("RPiInfo","type processor memory revision manufacturer flag")LinuxInfo=namedtuple("LinuxInfo","distro distro_pretty debian_based version version_codename")Examplefromlinuxinfoimportlinux_info()fromlinuxinfoimportpi_infofromlinuxinfoimportRPiInfo,LinuxInfo# not sure you need thesefromlinuxinfo.rpiimportdecode# normally you don't use this!# given a revision code, it decodes it (see below). Normally you# wouldn't do this ... this is just a testprint(decode(0xa020a0))# compute module 3print(decode(0xa22042))# Pi2Bprint(decode(0xc03111))# Pi4Bprint(pi_info())# reads /proc/cpuinfo and get revision codeRPiInfo(type='CM3', processor='BCM2837', memory='1GB', revision=0, manufacturer='Sony UK', flag='new-style revision')
RPiInfo(type='2B', processor='BCM2837', memory='1GB', revision=2, manufacturer='Embest', flag='new-style revision')
RPiInfo(type='4B', processor='BCM2711', memory='4GB', revision=1, manufacturer='Sony UK', flag='new-style revision')Change LogDateVersionNotes2020 Dec 40.1.0changed name because it does more2019 Oct 270.0.3simple clean up2019 Oct 270.0.1initMIT LicenseCopyright (c) 2019 Kevin J. WalchkoPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: linux-isolate-process
linux_isolate_processIsolates any given process using theunshare()system call. Suited for ROS, though can work for any process.
Since the system call is linux specific, this would not work on Windows.
This can be really useful for running a large number of tests in parallel wihtout having them interacting with each other.This is similar to ROS domain IDs, though domain IDs are limited by the number of ports you have, and this approach is more scalable.Originally added indrake-rosInstallation1. FromPYPIpip install linux_isolate_process2. From sourcegit clone https://github.com/adityapande-1995/linux_isolate_process
cd linux_isolate_process
pip install .Usage1. This command can now be used as a commandline tool:linux_isolate_process <your command>For example, to run an isolated talker (Note : any ros nodes inside thebash -c "(<command>)"will be able to talk to each other) :linux_isolate_process /bin/bash -c "ros2 run demo_nodes_cpp talker"If you open another terminal and run a listener normally, usingros2 run demo_nodes_cpp listenerit will not receive any of the messages published by the talker.2. This can also be used as a module, to isolate the current process:Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import linux_isolate_process as i
>>> i.create_linux_namespaces()
True
Package: linux-kernel-compat-helper
linux-kernel-compat-helperLinux kernel compatibility helper to add version guards for an out-of-tree modules or to get the tag information for a particular commit.Build and Coverage statusIntroductionFor maintaining an out-of-tree module it is important to support multiple kernel version compatibility
using Linux kernel version guards, we can get the exact commit for the fix by usinggit blameorgit bisectetc, but the main problem is to figure out the version number which the fix
is present first.The problem statementClone Linus'slinux.gitIf you have clone Linus tovarldslinux.gitthen we can use below command to figure out the tag in which the commit first appeared. But cloning this repo
and keeping it up-to-date is inconvinient.$ git describe --contains <commit_sha>SolutionGithub Linus'slinux.gitThis repo is kept up-to-date and we can use the Github API to query commits and tags without cloning the repo and maintaining it. This module uses this approach and does a simple binary search based on commit and tag date.UsagePrerequisitesGithub API token with proper permissionspipenvinstalledTested on Ubuntu Distribution, but should work in others.RunningCreate and Install the virtual environmentpipenv installRun the application, below command will display the usage.pipenv run lk-get-tag -hExample commands$ export GITHUB_API_TOKEN=<token>
$ pipenv install
$ pipenv run lk-get-tag -c <commit_sha>