Saravanan666/pypi-org huggingface dataset:
Package: pip-licenses-reader
pip-licenses-readerThe pip-licenses-reader provides a simple reader for JSON files generated bypip-licenses.Setting up the dataCreate a file calledbill_of_materials.jsonusing the following command:pip-licenses--format=json--output-file=bill_of_materials.json--with-authors--with-urlsand place it next to your start-up script.NOTE: If you use another file name or location, the file path must set at run-time.Usagefrom pip_licenses_reader import read_file

license_collection = read_file()The resulting element will be read-only. It provides a value calledprojects, which is iterable. For each item, the following properties are set:authornameurlversion (aspackaging.version.Versionfromsetuptoolsorpackaging)licenseHence, the data can be considered as bill of materials for your project, if it was created from a virtual env.If you used another file path or name, this can be passed as the first argument calledfile.Errors will be logged using the a regularLoggerfrom pythonsloggingmodule.LicenseThis project is licensed under the BSD-3-Clause license.
Package: piplinetest
PiplinetestA Python library for building HTTP pipeline tests based on pydantic.Project OverviewThis project provides base classes for constructing test steps and test classes.InstallationYou can install thepiplinetestlibrary using the following command:pipinstallpiplinetestUsageImport the required classes and functions:frompiplinetestimportBaseTestStep,BasePipLineTestfromtypingimportList# Create a test step:classHttpTestStep(BaseTestStep):description:str="test"url:str="/api/request_log"method:str="GET"headers:dict={}process_methods_prefix="tests.process_methods."pre_process_method="pre_process:process_nothing"# Create a test class instance:classHttpPipelineTest(BasePipLineTest):description:str="test"test_steps_list:List[HttpTestStep]=[HttpTestStep,]# Execute the test class:t=HttpPipelineTest(host="http://127.0.0.1:5001")t.execute()ContributingContributions and issues are welcome. You can contribute to the project by following these steps:Fork the projectCreate a new branch (git checkout -b feature/your-feature)Commit your changes (git commit -am 'Add some feature')Push to the branch (git push origin feature/your-feature)Submit a pull requestFeel free to contribute code or raise any questions you may have.
Package: piplock
It’s not for human.Write these sections insetup.cfg:[piplock:common]
reqs = sqlalchemy

[piplock:dev]
reqs =
    testfixtures
    factory-boy

[piplock:prod]
reqs = psycopg2Install packages:piplock install (--dev/--prod)Generating requirements.txt to your project root:piplock lock (--dev/--prod)
Package: pip-lock
Check for differences between requirements.txt files and the current environment.InstallationInstall withpython-mpip installpip-lock.Python 3.8 to 3.12 supported.Working on a Django project?Check out my bookBoost Your Django DXwhich covers many ways to improve your development experience.Example usageCallpip_lock.check_requirements()at your application startup to verify that the current virtual environment matches your requirements file.
This gives instant feedback to developers changing branches etc. who would otherwise experience unexpected behaviour or errors due to out of sync requirements.In a Django project, it makes sense to add the check inside themanage.pyfile, which is the project’s main entrypoint.
You can add a call topip_lock.check_requirements()after the first import of Django.
For example:#!/usr/bin/env pythonimportosimportsysfrompathlibimportPathdefmain():os.environ.setdefault("DJANGO_SETTINGS_MODULE","example.settings")try:fromdjango.core.managementimportexecute_from_command_lineexceptImportErrorasexc:raiseImportError("Couldn't import Django. Are you sure it's installed and ""available on your PYTHONPATH environment variable? Did you ""forget to activate a virtual environment?")fromexctry:importpip_lockexceptImportError:raiseImportError("Couldn't import pip-lock. Are you on the right virtualenv and up "+"to date?")requirements_path=str(Path(__file__).parent/"requirements.txt")pip_lock.check_requirements(requirements_path,post_text="\nRun the following:\n\npython -m pip install -r requirements.txt\n",)execute_from_command_line(sys.argv)if__name__=="__main__":main()APIcheck_requirements(requirements_file_path: str, post_text:str='')->NoneExit with exit code 1 and output to stderr if there are mismatches between the environment and requirements file.requirements_file_pathis the path to therequirements.txtfile - we recommend using an absolute file path.post_textis optional text which is displayed after the stderr message. This can be used to display instructions
on how to update the requirements.Example:check_requirements("requirements.txt",post_text="\nRun the following on your host machine:\n\nvagrant provision\n",)Therearerequirementmismatcheswithrequirements.txt:*PackageDjangohasversion1.9.10butyouhaveversion1.9.0installed.*Packagerequestshasversion2.11.1butyouhaveversion2.11.0installed.*Packagerequests-oauthlibisinrequirements.txtbutnotinvirtualenvRunthefollowingonyourhostmachine:vagrantprovisionget_mismatches(requirements_file_path: str)->dict[str, tuple[str, str | None]]Return a dictionary of package names to tuples of(expected_version, actual_version)for mismatched packages.requirements_file_pathis the path to therequirements.txtfile - we recommend using an absolute file path.Example:>>>get_mismatches("requirements.txt"){'django': ('1.10.2', '1.9.0'), 'requests': ('2.11.1', '2.9.2'), 'request-oauthlib': ('0.7.0', None)}
Package: pip-login
pip-loginCommand line interface for logging into a private python repository
by configuring pip.conf and storing credentials with python keyring.This utilizes the new python keyring feature in pip 19.2.1UsageTo install:pip install pip-loginThen just run the following:pip-loginBy default pip login will prompt forurl,usernameandpassword.
The url is what you'd normally pass as an--extra-index-url.
The username and password will be stored using python keyring and the
url will be added to your pip.conf or pip.ini. If run in a virtualenv
it will store the pip.conf in the virtualenv, otherwise it stores it
to the per-user location. See thepip config user guidefor more information.Additionally, although not recommended, you can set all of the parameters
via command line arguments (See --help) or by setting the following
environment variables.PIP_LOGIN_REPOSITORY
PIP_LOGIN_USERNAME
PIP_LOGIN_PASSWORD
Package: piplyr
piplyrpiplyr is a Python package that provides dplyr-like data manipulation capabilities for pandas DataFrames. It simplifies data manipulation tasks in Python by offering a set of intuitive methods for data filtering, selection, transformation, and aggregation.InstallationYou can installpiplyrdirectly from PyPI:pipinstallpiplyrUsageHere are some basic examples of how to usepiplyr:Initializing piplyrimportpandasaspdfrompiplyrimportpiplyr# Sample DataFramedf=pd.DataFrame({'A':[1,2,3],'B':[4,5,6]})# Initialize piplyr with the DataFramepi=piplyr(df)Grouping Data# Group by a columngrouped_pi=pi.group_by('A')Sorting Data# Sort the DataFrame by a columnsorted_pi=pi.sort_by('B').to_dfto_dfUse to_df to convert your generated data to a Pandas' DataFrameSelecting Columns# Select specific columnsselected_pi=pi.select('A','B')Dropping Columns# Drop specific columnsdropped_pi=pi.drop_col('B')Renaming Columns# Rename columns in the DataFramerenamed_pi=pi.rename_col({'A':'new_A'})Filtering Rows# Filter rows based on a conditionfiltered_pi=pi.filter_row('A > 1')Mutating Columns# Add a new column or modify existing onesmutated_pi=pi.mutate(new_col=lambdax:x['A']*2)Summarizing Data# Summarize the DataFramesummarized_pi=pi.summarize(mean_A=lambdax:x['A'].mean())Executing SQL Queries# Execute an SQL query on the DataFrame. You have to use from df regardless of your DataFrame namesql_pi=pi.sql_plyr('SELECT * FROM df WHERE A > 1')Chaining Methods# Chain multiple operationsresult_pi=pi.select('A','B').filter_row('A > 1').summarize(avg_B=lambdax:x['B'].mean())Additional MethodsThe package also includes several other methods likejoin,count_na,distinct,pivot_longer,pivot_wider,clean_names,separate,str_pad,str_sub,str_extract,str_detect,str_len,str_lower,str_upper,str_startswith,str_endswith,str_contains,fct_lump,fct_infreq,fct_relevel,fct_recode,fct_reorderand others.Each of these methods provides specific data manipulation functionalities and can be explored further in the package documentation.More ExamplesPlease consult docstrings of various methods that include explnations and examples.ContributingContributions topiplyrare welcome! Please refer to thecontribution guidelinesfor more information.LicenseThis project is licensed under theMIT License.
Package: pip_magic
simplify pip from with IPython$ipython2In[1]:importpip_magicIn[2]:pipinstallpip_magic--upgrade['pip_magic','--upgrade']Youareusingpipversion7.0.1,howeverversion7.0.3isavailable.Youshouldconsiderupgradingviathe'pip install --upgrade pip'command.Collectingpip-magicDownloadingpip_magic-0.2.1-py2.py3-none-any.whlInstallingcollectedpackages:pip-magicFoundexistinginstallation:pip-magic0.2Uninstallingpip-magic-0.2:Successfullyuninstalledpip-magic-0.2Successfullyinstalledpip-magic-0.2.1In[3]:## so recursive !Why ?Seethis twitter
thread,
the package pre-date this thread but it’s a good example:Andreas MuellerIs there a good succinct guide to how to figure out which Python
environment you’re in and how to install stuff in the right
environment that’s suitable for beginners? cc @jakevdp (also if
there’s not Jake, can you write one ;)Me:pip_magic: pypi.python.org/pypi/pip_magic use pip from within
IPython/Notebook and it install in same env you’re in.AM:That looks great, but also lacks a write-up explaining the problem
;)Me:Can I embed your tweet in the readme ?AM:Lol sure. Though it does expose me as the naysayer that I am ;) (and
my tendency to complain on Twitter but not do anything productive
lol)
Package: pipmaker
A simple tool to create modules and upload it in PyPiBefore using this module, you must create an account on GitHub and an account on Pypi.You can do this using this links:http://github.comhttps://pypi.org/account/register/And create a proyect in GitHub with MIT license and copy the URLDoing this, you only need a python script which must have a principal class with the module methods.For upload your module to pypi.org, you need to create a new python script in the directory of your class script and use the following code:
Package: pipmaker2
A simple tool to create modules and upload it in PyPiBefore using this module, you must create an account on GitHub and an account on Pypi.You can do this using this links:http://github.comhttps://pypi.org/account/register/And create a proyect in GitHub with MIT license and copy the URLDoing this, you only need a python script which must have a principal class with the module methods.For upload your module to pypi.org, you need to create a new python script in the directory of your class script and use the following code:
Package: pipman
Overviewpipman is a wrapper around pip that provides additional/useful features not included in pip itselfGeneral Informationsource repo:https://github.com/Kentoseth/pipmanpypi:https://pypi.python.org/pypi/pipmanemail:kentoseth (at) devcroo dot combug tracker:https://github.com/Kentoseth/pipman/issuesPre-requisitesInstalling and operating pipman requires:Python3.6 or greatersetuptoolsinstalledInternet connection for downloading the dependency Python packages fromPyPIInstallationNOTE: during installation the following package and its dependencies are
automatically installed fromPyPI:Argh(command-line argument parsing)Colorama(adding colours to CLI/terminal programs)Installation using pip or easy_installpipman can be installed from Python Package Index (PyPI) by runningpip install pipmanVerifying the installationThepipmancommand-line tool is installed (to a platform-specific location),
try runningpipman-hfor helpUsagepipman listall- lists all the packages currently installed (seepipman listall-hfor information concerning the output and different colours)pipman freeze- creates a trimmed-down requirements.txt file and is similar topip freeze > requirements.txt(seepipman freeze-hfor more information)CreditsThanks for the contributions!Coming soonLicense (GPL V3)This package is licensed under the open-source “GNU GPL, Version 3”.The full license text is available in the fileLICENSE
Package: pip-migrate
pip-migratepip-migrateis a Python command-line tool that simplifies the process of backing up and migrating Python packages. This tool allows you to create a backup of your installed packages, and later, after installing a new Python environment, restore those packages with ease.FeaturesBackup Packages: Create a backup of your currently installed Python packages.Migrate Packages: Restore your packages on a new Python environment.Clean Up: Remove the backup and list the migrated packages.Progress Bar: Visualize the backup and migration progress with a progress bar.Better Logging: Improved logging with error messages and successes recorded in a log file.Backup Location Customization: Customize the backup file location.Dependency Resolution: Handle package dependencies during migration.Append Migration Packages: Append packages to migrate by providing a comma-separated list.InstallationYou can installpip-migrateusing pip:pipinstallpip-migrateUsageCreate a BackupBefore installing a new version of Python or making major changes, create a backup of your existing packages.pip-migratebeforeMigrate PackagesAfter setting up your new Python environment, use the following command to migrate your packages from the backup:pip-migrateafterYou can also append additional packages to migrate:pip-migrate after package1,package2,package3CleanupIf you want to remove the backup and list the migrated packages, you can use the following command:pip-migratecleanupContributingIf you would like to contribute to this project, please check the CONTRIBUTING.md file for guidelines.LicenseThis project is licensed under the MIT License - see the LICENSE file for details.AuthorRonnyisalreadydead (crushr3sist)SupportIf you encounter any issues or have questions, please open an issue on the GitHub repository.GitHub RepositoryKeywords: pip, migrate, backup, restore, python packages, utility, toolGitHub stars
Package: pip_mirror
This application implements a PyPI mirror application
according to PEP 381.InstallationIt is possible to run this application directly from the source
distribution. Alternatively, ‘python setup.py install’ could be used.The actual mirroring is performed by the pip_mirrorrun script, which
should be invoked through cron like this:*/15 *  *   *   *     /path/pip_mirror/pip_mirror -q /var/pypiThe command line arguments points to root of the data files that
the mirror creates. An initial run (without the -q option) should
be performed manually. It is possible to interrupt the mirroring;
it will automatically know where to continue when restarted.In above example, /var/pypi/web must be served through the webserver.
An Apache configuration could read like this:<VirtualHost IPADDRESS:80>
  ServerName X.pypi.python.org
  CustomLog /var/log/apache2/pypi.log combined
  DocumentRoot /var/pypi/web
  SetEnv PYPITARGET /var/pypi
  ScriptAlias /sync /path/pip_mirrorsync.cgi
</VirtualHost>Notice that supporting the sync URL requires that the web server
user has access to the mirror data, or else that the CGI script
runs as the mirror user.To propagate the download statistics back to the central server,
processlogs must be run regularly, e.g. through:10 7  *   *   *     /path/pip_mirror/processlogs /var/pypi /var/log/apache2/pypi.log{,.1}ContactIf you have questions or comments, please submit a bug report tohttps://github.com/ianmaguire/pip_mirror/issues, or contact me
atmr.scalability@gmail.comChanges1.0 (2018-01-25):Forked from pep381_client
Package: pip_missing_reqs
It happens: you start using a module in your project and it works and you
don’t realise that it’s only being included in yourvirtualenvbecause
it’s a dependency of a package you’re using. This tool finds those modules so
you can include them in therequirements.txtfor the project.Assuming your project follows a layout like the suggestedsample project:setup.py
setup.cfg
requirements.txt
sample/__init__.py
sample/sample.py
sample/tests/test_sample.pyBasic usage, running in your project directory:<activate virtualenv for your project>
pip-missing-reqs --ignore-file=sample/tests/* sampleThis will find all imports in the code in “sample” and check that the
packages those modules belong to are in the requirements.txt file.Sample tox.ini configurationTo make your life easier, copy something like this into your tox.ini:[testenv:pip-missing-reqs]
deps=-rrequirements.txt
commands=pip-missing-reqs --ignore-file=sample/tests/* sampleExcluding test files (or others) from this checkYour test files will sometimes be present in the same directory as your
application source (“sample” in the above examples). The requirements for
those tests generally should not be in the requirements.txt file, and you
don’t want this tool to generate false hits for those.You may exclude those test files from your check using the–ignore-fileoption (shorthand is-f). Multiple instances of the option are allowed.Excluding modules from the checkIf your project has modules which are conditionally imported, or requirements
which are conditionally included, you may exclude certain modules from the
check by name (or glob pattern) using–ignore-module(shorthand is-m):# ignore the module spam
pip-missing-reqs --ignore-module=spam sample
# ignore the whole package spam as well
pip-missing-reqs --ignore-module=spam --ignore-module=spam.* sampleRelease History1.2.1relax requirement to 6.0+1.2.0bumped pip requirement to 6.0.8+updated use of pip internals to match that version1.1.9test fixes and cleanupremove hard-coded simplejson debugging behaviour1.1.8use os.path.realpath to avoid symlink craziness on debian/ubuntu1.1.7tweak to debug output1.1.6add debug (very verbose) run output1.1.5add header to output to make it clearer when in a larger test runfix tests and self-test1.1.4add –versionremove debug print from released code lol1.1.3fix program to generate exit code useful for testing1.1.2corrected version of vendored search_packages_info() from piphandle relative imports1.1.1fixed handling of import from __future__self-tested and added own requirements.txtcleaned up usage to require a file or directory to scan (rather than
defaulting to “.”)vendored code from pip 1.6dev which fixes bug in search_packages_info
until pip 1.6 is released1.1.0implemented –ignore-module
Package: pip_module
kickass_flask_template_module(KFT) version 0.1.0:Welcome and thank you for considering the KFT module. The purpose of this module is to streamline the process of starting a new project in flask.This project is aimed at students of python who are faced with starting new projects constantly in an effort to learn the framework and the in's and out's of python.For your convenience the KFT module works on both windows and *nix based systems. (Tested on Windows 8, OSX and Linux Mint)Usage is as follows:KFT is initialized from the command line, if you don't have Python installed in your path you will have to navigate to wherever python is installed to use it.KFT module will ask you a series of questions pertaining to your project. Simply answer with either a 1 or anything else. Inputs are configured to execute code based on input of either 1 or not 1, so anything besides 1 is considered "other".This module executes as it runs meaning once you've answered a question or two things get moving to create your project. Keep this in mind as you answer the questions because things will be happening in the background.
Package: pip-name
<h1 align="center">pip-name</h1><p align="center">Check whether a package name is available on PyPi</p><p align="center"><img src="https://i.imgur.com/vL6Ip18.gif" height="250"></p>## Install```console$ pip install pip-name```## Usage```sh$ pip-name <name>```#### Examples```sh$ pip-name flake8flake8 is unavailable$ pip-name blake201blake201 is available$ pip-name chromaticchromatic is unavailable```## Why?Let's see, It's a pain in the ass to finally upload that module you've been writing for a while only to realize that a package with that same name already exists up there.## ContributingDo you want to make this better? Open an issue and/or a PR on Github. Thanks!## LicenseMIT LicenseCopyright (c) 2018 [Danish Prakash](https://github.com/prakashdanish)
Package: pip-negotiator
Pip NegotiatorA simple tool with the goal to  keep your pip packages without conflictsFree software: BSD licenseDocumentation:https://pip-negotiator.readthedocs.io.FeaturesPip Negotiator, read your requirements.txt file and create a new set of pinned requirements without conflicts with the
already existing packages.This is useful when you want to install new Python Packages in a system without introducing conflicts.All the packages dependencies will be resolved by including the list of the already installed Python Packages. The result
is a new output (requirements.txt format) that can be used with pipUsage:pip-negotiator -o resolved_requirements.txt requirements.txt
pip install -U resolved_requirements.txtIn case there is an error and the requirements cannot be resolved, use the debug mode to get an extensive analysis:pip-negotiator -L debug requirements.txtHelp:pip-negotiator --helpCreditsPip Negotiator it’s a wrapper aroundpipandpip-toolsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-12-08)First release on PyPI.
Package: pipnest
pipnestpipnestpackages your NEST extension
modules into pip installable packages. This is a benefit when you're
distributing a Python model for the NEST simulator and have a dependency
on an extension module. Instead of having to provide installation
instructions to your end-users you can have pip download and build the
extension module into the target machine's nest installation.UsageProject structurePrepare a folder with 1 subfolder that contains a NEST extension
modules.The source code of the extension module can not be in the root
repository.The name of your module should be the name of your folders plus
"module".Your project structure should look like this:- my_module
  - my_module
    - my_file1.cpp
    - my_file2.cpp
    - ...In this example your NEST module should be called themy_modulemodule.Initialize projectRun thepipnest initcommand from the root folder and fill in the
requested metadata:cd my_module
pipnest init .This should create a setup.py and README.md, be sure to edit the latter.
Check that your module is present under thepackageskeyword argument
insetup.py.PackageCreate the source distribution:python setup.py sdistTest your package locallyRemove any already installed versions from the$NEST_INSTALL_DIR/lib/nestfolderRunpip install dist/*. (If an MPI error occurs, restart your
terminal and try again)Upload to PyPIUse twine to upload your package:twine upload dist/* --skip-existing