Saravanan666/pypi-org huggingface dataset:
Package: pip-upgrade-outdated
pip_upgrade_outdatedRunpip install --upgradefor all outdated packages (pip list --outdated).Allow specifying which version ofpipto run, and parallel or serial execution of the upgrade step.Command line usageusage: pip_upgrade_outdated [-h] [-3 | -2 | --pip_cmd PIP_CMD]
                            [--serial | --parallel]
                            [--sequential_run | --batch_run] [--user]
                            [--dry_run] [--verbose] [--version]
                            [--exclude PKG]

Upgrade outdated python packages with pip. Any unknown arguments will be passed to pip.

optional arguments:
  -h, --help            show this help message and exit
  -3                    use pip3
  -2                    use pip2
  --pip_cmd PIP_CMD     use PIP_CMD (default pip)
  --serial, -s          upgrade in serial via a single pip upgrade command (default)
  --parallel, -p        upgrade in parallel via individual pip upgrade commands
  --sequential, -q      upgrade in serial via individual pip upgrade commands
  --user, -u            Adds the --user flag when installing the packages
  --dry_run, -n         get list, but don't upgrade
  --verbose, -v         may be specified multiple times
  --version             show program's version number and exit
  --exclude PKG, -x PKG
                        exclude PKG; may be specified multiple timesTODONeed better error handling?Should the script explicitly return a value to the shell?allow patterns in exclude optionSourcescode based onhttps://gist.github.com/serafeimgr/b4ca5d0de63950cc5349d4802d22f3f0project structure based onhttps://gehrcke.de/2014/02/distributing-a-python-command-line-application/
Package: pip-upgrade-pkgs
pip_upgrade_pkgsA single command to upgrade outdatedpip install --userpackages.$ pip_upgrade_pkgs
=====================================================
UPGRADING ALL OUTDATED "pip install --user" PACKAGES:
=====================================================

Outdated packages detected = 16.
Initiating upgrading...

No. Package            Version         Latest          Type  Status
--- ------------------ --------------- --------------- ----- --------
1   Cython             0.29             0.29.1         wheel UPGRADED
2   ipython            6.2.1            7.1.1          wheel UPGRADED
3   ipywidgets         7.0.5            7.4.2          wheel UPGRADED
4   jupyter-client     5.1.0            5.2.3          wheel UPGRADED
5   jupyter-console    5.2.0            6.0.0          wheel UPGRADED
6   matplotlib         2.1.0            3.0.2          wheel UPGRADED
7   numpy              1.15.1           1.15.4         wheel UPGRADED
8   pandas             0.21.0           0.23.4         wheel UPGRADED
9   Pillow             5.2.0            5.3.0          wheel UPGRADED
10  qtconsole          4.3.1            4.4.3          wheel UPGRADED
11  setuptools         40.0.0           40.6.2         wheel UPGRADED
12  sympy              1.1.1            1.3            sdist UPGRADED
13  virtualenv         16.0.0           16.1.0         wheel UPGRADED
14  virtualenv-clone   0.3.0            0.4.0          wheel UPGRADED
15  wheel              0.31.1           0.32.3         wheel UPGRADED
16  youtube-dl         2018.9.26        2018.11.23     wheel UPGRADED

SUMMARY:
No. of packages upgraded = 16/16
No. of upgrade errors    = 0/16Install Requirementspython 3.5, 3.6, 3.7
pip~=18.0OSUbuntu 16.04 (Xenial) and aboveInstallationSubmit this terminal command:$ pip install --user pip_upgrade_pkgsFor python3.5:this package will be installed in ~/.local/lib/python3.5/site-packages/pip_upgrade_pkgsthis package execution script will be installed in ~/.local/bin/pip_upgrade_pkgs.Execution:Submit this terminal command:$ pip_upgrade_pkgsor, access its module and execute its main() function:$ python3
Python         3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type     "help", "copyright", "credits" or "license" for more information.
>>> import pip_upgrade_pkgs
>>> pip_upgrade_pkgs.main()
Package: pip-upgrader
pip-upgraderAn interactive pip requirements upgrader. Because upgrading
requirements, package by package, is a pain in the ass. It also updates
the version in your requirements.txt file.PurposeThis cli tools helps you interactively(or not) upgrade packages from
requirements file, and alsoupdate the pinned version from
requirements file(s).If no requirements are given, the commandattempts to detect the
requirements file(s)in the current directory.Quick preview:Installationpip install pip-upgraderNote:this packages installs the following requirements:'docopt', 'packaging', 'requests', 'terminaltables', 'colorclass'To avoid installing all these dependencies in your project, you can
installpip-upgraderin your system, rather than your virtualenv. If
you install it in your system, and need to upgrade it, runpip install -U pip-upgraderUsageActivate your virtualenv(important, because it will also install
the new versions of upgraded packages in current virtualenv)CD into your project.Then: :$ pip-upgradeArguments: :requirements_file(s)          The requirement FILE, or WILDCARD PATH to multiple files. (positional arguments)
--prerelease                  Include prerelease versions for upgrade, when querying pypi repositories.
-p <package>                  Pre-choose which packages tp upgrade. Skips any prompt.
--dry-run                     Simulates the upgrade, but does not execute the actual upgrade.
--skip-package-installation   Only upgrade the version in requirements files, don't install the new package.
--skip-virtualenv-check       Disable virtualenv check. Allows installing the new packages outside the virtualenv.
--use-default-index           Skip searching for custom index-url in pip configuration file(s).Examples:pip-upgrade             # auto discovers requirements file. Prompts for selecting upgrades
pip-upgrade requirements.txt
pip-upgrade requirements/dev.txt requirements/production.txt

# skip prompt and manually choose some/all packages for upgrade
pip-upgrade requirements.txt -p django -p celery
pip-upgrade requirements.txt -p all

# include pre-release versions
pip-upgrade --prereleaseTo usepip-upgraderon install requirements located in asetup.pyfile, try this:./setup.pyegg_info
pip-upgrade$(./setup.py--name|tr---_)*.egg-info/requires.txtThis will display any versions that can be upgraded, and helps you to
manually main
Package: pip-upgrade-tool
pip-upgrade 🎉The purpose of pip-upgrade is to be a simple yet robust and reliable tool for upgrading all of your packages while not breaking dependencies.Installationpip install pip-upgrade-toolorpip install git+https://github.com/realiti4/pip-upgrade.git@master --upgradeUsageJust runpip-upgradein your terminal while virtualenv is active.$ pip-upgradeChecking outdated packages...
These packages will be upgraded: ['colorama', 'isort']
Continue? (y/n): y
...
All packages are up to date! 🎉Tip:You can use-eto exclude some packages and continue inContinue? (y/n):after seeing which packages are going to be upgraded. This is super useful for packages like gohlke's Numpy+mkl for example.-rto repeat the previous excluded packages. It'll show if there is a saved repeatable action.These packages will be upgraded: ['hypothesis', 'Pillow', 'pytest', 'setuptools']
(-r, --repeat  :  -e pytest)
Continue? (y/n or -e/-r/--help): -e pytest hypothesisYou can also exclude packages beforehand. Use-eor--exclude. The tool won't upgrade dependency breaking packages already, this is extra for packages that you want to keep it at a version. You can also add packages to config file for this to persist until you remove. This combined withpip-upgrade -ythat accepts and skips user prompt can be used for automated environments.$ pip-upgrade -e numpy pandasOptionspip-upgrade -eExclude packages you don't want to upgrade. Can take multiple or single value.pip-upgrade -yAccept all upgrades and skip user prompt.pip-upgrade --cleanClear pip's cache.pip-upgrade --localBy default locally installed editable packages (installed withpip install -e .) won't be upgraded. Use this option to upgrade everything.pip-upgrade --novenvBy default the tool won't work if virtualenv is not active. Use this if you want use it globally and pass the assertion error.pip-upgrade --reset-configReset config file located in~/.pipupgrade.inito it's default.Permanent ConfigurationWhenpip-upgradeis run for the first time, it will create a file in the user's home directory named.pipupgrade.ini. This file can be manually edited by the user for permanent configuration options. The configuration file current consists of two options under theconfsection,excludeandnovenv.novenvis false by default, but if set to true, thepip-upgradecommand will not require you to be in a virtualenv, which is the same function as the--novenvargument. The second option,exclude, will take the same values as the--excludeargument, but these excluded packages will persist forever until removed.ContributingAny contribution is appreciated, please feel free to send pull requests.TODO / known issuesFeature - Update directly from Gohlke's packagesFeature - Revert to previous point
Package: pipuptodate
Updates all packages with pip in an environment - no dependenciesTested against Windows 10 / Anaconda / Python 3.9.16pip install pipuptodate# How does it work# 1) it creates a backup of the env if backupwholeenv is True# 2) it downloads the wheels of all current installed packages if backuppackages is True# 3) it does a dry run to get the highest compatible version and to resolve conflicts:#    install --dry-run --progress-bar off --upgrade --upgrade-strategy eager --ignore-installed# 4) it downloads the results from the dry run to download_folder# 5) it installs the downloaded files# How to use itfrompipuptodateimportupdate_pip_packages,restore_old_packagesupdate_pip_packages(download_folder="c:\\myupdatefolder21",# all backups and the wheels of the new packages are stored here. Don't delete this folder. If anything goes wrong, you can restore the backupbackuppackages=True,# downloads all wheels from installed packages with the right version numberbackupwholeenv=True,# makes a copy of all files in the env)# If something went wrong, you can install the previous versions:restore_old_packages(requirementstxt="c:\\myupdatefolder21\backup\requirementsbackup.txt",# created when you executed: update_pip_packages(...backuppackages=True)folder="c:\\myupdatefolder21\backup",# the downloaded wheels
Package: pipurge
Pipurgeis a tool that allows you to quickly uninstall Python packages, at system level or in a
virtualenv.UsageBasic usage:$pipurgeThere are 23 packages to uninstall. Proceed? [y/N]: y

  Uninstalling aiodns-1.1.1:
    Successfully uninstalled aiodns-1.1.1

  Uninstalling aiohttp-2.2.5:
    Successfully uninstalled aiohttp-2.2.5

  Uninstalling async-timeout-2.0.0:
    Successfully uninstalled async-timeout-2.0.0

  Uninstalling certifi-2018.11.29:
    Successfully uninstalled certifi-2018.11.29

  ...You can also use the–keepoption to specify certain packages to keep installed.
Pipurge will also keep the dependencies of the packages you specify so they stay working.If you’d like further control over the process, use the–askoption and Pipurge
will ask you whether to uninstall each package that’s left.$pipurge--keeprequests,flask--askFinding dependencies for requests...
    Finding dependencies for certifi...
    Finding dependencies for chardet...
    Finding dependencies for idna...
    Finding dependencies for urllib3...
  Finding dependencies for flask...
    Finding dependencies for Werkzeug...
    Finding dependencies for Jinja2...
      Finding dependencies for MarkupSafe...
    Finding dependencies for itsdangerous...
    Finding dependencies for click...

  There are 3 packages to uninstall. Proceed? [y/N]: y

  Uninstall bleach ? [y/N]: y
  Uninstalling bleach-3.0.2:
    Successfully uninstalled bleach-3.0.2

  Uninstall docutils ? [y/N]: n

  Uninstall faste ? [y/N]: y
  Uninstalling faste-0.2.5:
    Successfully uninstalled faste-0.2.5

  Purge complete!
Package: pipus
pipuspiphelper forusersite packagespipusis a very simple wrapper around pip to help you manage the installation
of Python packages in your user directory.pip lacks the ability to keep track of which packages were manually installed
and which came as dependencies. When installing packages in your home, this
quickly becomes an issue if you ever want to update the packages you installed
and do not care about updating the dependency packages if the dependent ones
did not receive any update.pipusfixes this by maintaning a file, similar to the familiar
requirements.txt file, in which the manually installed packages are listed.pipuswill then only update those packages when you attempt to run a global
update.Packages are always installed to your local site and never globally: pipus
callspip install --userinternally. This avoids conflict with your OS'
distributed Python packages and is the recommended way to install Python
packages not required by your system components.CommandsInstalling a package:pipus packagenameor manually editingpipus.txtand adding the package to it, then runningpipus(orpipus --update)Updating all packages installed with pipus:pipus(orpipus --update)Uninstalling a package:pipus -R packagenameor manually editingpipus.txtand removing the package from it, then runningpipus --refreshRemoving all local packages, then installing pipus ones (AKA migrating to
pipus):pipus --refreshFor details, seepipus --help.
Package: pipuserstats
PyPi download statistics for several packages or for all packages from a userpip install pipuserstatsRetrievesdownloadstatisticsforagivenuserorpackage(s)fromPyPIStatsAPI.Args:username_or_packages(str|tuple|list):Theusernameorpackage(s)toretrievestatisticsfor.Ifastringispassed,username_or_packageswillbetreatedasausername.Ifalist/tupleispassed,username_or_packageswillbetreatedaspackages.sleeptime(float|int,optional):ThetimetosleepbetweenAPIrequests.Defaultsto1.0.clear_cache(bool,optional):WhethertoclearthePyPIStatsAPIcachebeforeretrievingstatistics.DefaultstoFalse.Returns:pd.DataFrame:ApandasDataFramecontainingthedownloadstatisticsforthegivenuserorpackage(s).Raises:Exception:Ifanerroroccurswhileretrievingstatisticsforapackage.frompipuserstatsimportget_user_pip_statsdf=get_user_pip_stats(username_or_packages="hansalemao",sleeptime=1,clear_cache=False)print(df)"""# -1 means "no data available"total  2023-04-20  ...  2022-10-23  2022-10-22a-cv-imwrite-imread-plus      3593          31  ...          -1          -1a-cv-sift-detection            244          -1  ...          -1          -1a-cv2-calculate-difference     279           2  ...          -1          -1a-cv2-calculate-simlilarity    339           2  ...          -1          -1a-cv2-easy-resize             2223          24  ...          -1          -1...         ...  ...         ...         ..."""df=get_user_pip_stats(username_or_packages=["pandas","numpy"],sleeptime=0.5,clear_cache=False)"""dfOut[4]:total  2023-04-20  2023-04-19  ...  2022-10-24  2022-10-23  2022-10-22pandas  639313100     4258267     4265098  ...     3721798     2540678     2738365numpy   843036266     5667169     5747109  ...     4882242     3261557     3556995[2 rows x 181 columns]""""""
Package: pip-utils
Helper utilities for pip.InstallationDownload from PyPI:pip install --user pip-utilspip-utils is also availablehereas a ZIP application[0]. Once you’ve download it, you can install it to a directory on your PATH:install pip-utils ~/.local/binUsageusage: pip3-utils [-h] [--version]
                  {dependants,dependents,locate,outdated,parents} ...

Helper utilities for pip.

positional arguments:
  {dependants,dependents,locate,outdated,parents}
    dependants          list dependants of package
    dependents          list dependents of package
    locate              identify package that file belongs to
    outdated            list outdated packages that may be updated
    parents             list packages lacking dependants

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit

See `pip3-utils COMMAND --help` for help on a specific subcommand.For Python 2, usepip2-utils. For Python 3, usepip3-utils. Or, usepython-mpip_utils.If you’ve installed the standalone executable on your PATH, your can callpip-utils. Or run it directly with the Python interpreter of your choice, e.g.python3.5~/.local/bin/pip-utils.By default, pip-utils will interact with packages installed to the user site (assuming the user site is available). To disable this behavior, call pip-utils with Python’s-soption (i.e.python-smpip_utils) orPYTHONNOUSERSITEenvironment variable (i.e.PYTHONNOUSERSITE=1 python-mpip_utils).CommandsdependantsList dependants of a package:$ pip3-utils dependants pexpect
ipythondependentsList direct dependents of a package:$ pip3-utils dependents ipython
backports.shutil-get-terminal-size
decorator
pexpect
pickleshare
setuptools
simplegeneric
traitletsList direct dependents of a package with their version requirements:$ pip3-utils dependents -i dataset
alembic>=0.6.2
normality>=0.2.2
PyYAML>=3.10
six
six>=1.7.3
sqlalchemy>=0.9.1List all dependencies of a package recursively:$ pip3-utils dependents -r dataset
alembic
Mako
MarkupSafe
normality
python-editor
PyYAML
six
SQLAlchemylocateIdentify package(s) that file belongs to:$ pip3-utils locate ~/.local/bin/symilar
pylintoutdatedList outdated packages that may be updated. This differ’s from pip’s--outdatedflag in that it verifies that there are no conflicting dependencies that would otherwise make an update inadvisable.pip3-utils outdatedList all outdated packages. Note, this is equivalent to pip’s--outdatedflag.pip3-utils outdated --allList outdated packages unable to be updated due to dependency requirements:pip3-utils outdated --pinnedUpdate all outdated packages that may be updated.pip3-utils outdated --upgradeparentsList packages lacking dependants:pip3-utils parentsDevelopmentTo run tests (automatically pulling in dependencies):python setup.py testTo run tests directly, with verbose output:python3 -m pytest -vvLicenseCopyright (c) 2016 Six (brbsix@gmail.com).Licensed under the GPLv3 license.[0]https://bugs.python.org/issue1739468
Package: pip-venv-sure
Pip Venv SurePrevents the installation of packages into you base installation of pythonusage and setuppip3 install pip-venv-sure
alias pip3=pip-venv-suremotivationI don't like installing packages directly into my base installation. But as a mere human being I sometimes forget to activate my venv, so this prevent these kinds to accidents from happening.installing packages to base installation.Some times there is a need to install package directly to the base installation of python in that case you can use the following command.pip3 install any-template --allow-no-venv
Package: pipverify
THE COMMAND LINE INTERFACE IS SUBJECT TO CHANGEAboutVerify GPG signatures for packages supporting it on PIP using trust on first use.Warning:this is not a silver bullet to securing PIP. Use it only if you know what you are doing otherwise thismaycreate a false sence of security.GoalsEnsure a package was not modified by someone else then the original publisher without relying on hash checksums.
By not relying on hash checksums we eliminate the need to vet each update and calculate a hash from it.InstallingUsing pipUsingpipis discouraged because by default pip itself does nothing to verify you arent getting hacked. But to test it out its prbably ok.pip install pipverifyUsing pipenvSincepipverifyat least generates hashes its slightly better thenpip. If you also verify the hash of this package by hand then pipverify is almoast perfect.pipenv install pipverifyUsageHow to use:Import the GPG public key of the package authorPass the download URL of the PIP package and the expected fingerprint of the GPG key signing the packageExampleIf you dont havepipenvinstalled yet do that in a secure wayhttps://github.com/pypa/pipenvIntall dependenciespipenv installRun this scriptpipenv run python3 main.py -p https://files.pythonhosted.org/packages/71/bd/ab05ffcbfe74dca704e860312e00c53ef690b1ddcb23be7a4d9ea4f40260/stem-1.8.0.tar.gz -f 2AE224F5C424990AE5206C85888404C187F30690the output should be something likeGood signature with valid fingerprint for this package.
Package sha256 hash: a0b48ea6224e95f22aa34c0bc3415f0eb4667ddeae3dfb5e32a6920c185568c2This is the hash youmustuse to lock the package version either in yourrequirements.txtor better yet in yourPipfile.lock. If you dont do this the whole GPG verification with this tool ise useless.Help outputUsage: main.py [OPTIONS]

Options:
  -p, --package-url TEXT          PIP package url
  -f, --trusted-key-fingerprint TEXT
                                  The fingerprint of the GPG you trust to sign
                                  this package

  --gpghome TEXT                  Your GPG home dir
  --help                          Show this message and exit.FutureWouldnt it be cool to have a file defining which key fingerprint you trust to sign what package (Pipfile.sig.lockor something similar) then just let this script run over a project and check if the packages were singed by GPG keys you trust. The packages that dont support GPG signatures would need to be logged.
This would make it possible to upgrade packages locked inPipfile.lockwithout having to manually vet each and every package.ReleasingNote: The minor verion will be bumped up for test releases so the test PIP server wont get messed up with versions and thus wont cause wired hard to find errors.rm -rf dist
rm -rf pipverify.egg-info
pipenv shell
python setup.py sdist
# test package on the PIP test server
twine upload -r testpypi dist/* --sign --identity 5BDDF268

# if everything looked good on the test PIP server upload to the actual PIP server
twine upload dist/* --sign --identity 5BDDF268
Package: pip-versions
Installationpip3installpip-versionsUsageGet the latest versionpip-versionslatestdjango3.1.2Get all the versionspip-versionslistdjango2.2.152.2.163.03.0.13.0.23.0.33.0.43.0.53.0.63.0.73.0.83.0.93.0.103.13.1.13.1.2