Saravanan666/pypi-org huggingface dataset:
Package: pkgsetcomp
pkgsetcompGitHub|PyPi|Warehouse|ReadTheDocs|Travis-CIpkgsetcomp: compare and generate manifest / installed package reportsFeaturesCompare packages listed in a debian/ubuntu APTmanifest filewith
currently installed packagesoptparseargument parsing (-h,--help)cookiecutter-pypackageproject templatingInstallingInstall fromPyPi:pip install pkgsetcompInstall fromGitHubas editable (add apkgsetcomp.pthinsite-packages):pip install -e git+https://github.com/westurner/pkgsetcomp#egg=pkgsetcompUsagePrint help:pkgsetcomp --helpGenerate reports in the current directory:pkgsetcompGenerate a report comparing.manifestpackages with installed packages:MANIFEST="http://releases.ubuntu.com/14.04/ubuntu-14.04-desktop-amd64.manifest"
pkgsetcomp --manifest="$MANIFEST"LicenseBSD Software License.History0.1.4 (Unreleased)0.1.3 (2014-05-21)BLD,TST,ENH,DOC: add py.test passthrough options to ‘setup.py test’DOC: add pykg setcomp api docs to indexDOC: docs/license.rst include LICENSEDOC: README.rst :: directive0.1.2 (2014-05-21)BUG: VERSION.txt os.path.basenameDOC: API docs: docs/modules.rst docs/pkgsetcomp.rstDOC: Release summaries in HISTORY.txt0.1.1 (2014-05-21)ENH: Read version number from VERSION.txt0.1.0 (2014-05-21)First release on PyPI.Re-packaged fromhttps://github.com/westurner/dotfiles/blob/2813e4ad/scripts/compare_installed.pyCreditsWes Turner –https://github.com/westurner
Package: pkgsettings
pkgsettingsGoalThe goal of this package is to offer an easy, generic and extendable way
of configuring a package.Installation$pipinstallpkgsettingsUsagefrompkgsettingsimportSettings# Create the settings object for your package to usesettings=Settings()# Now let's define the default settingssettings.configure(hello='World',debug=False)By calling the configure you actually inject alayerof settings. When
requesting a setting it will go through all layers until it finds the
requested key.Now if someone starts using your package it can easily modify the active
settings of your package by calling the configure again.frommy_awesome_package.confimportsettings# Lets change the configuration heresettings.configure(debug=True)Now from within your package you can work with the settings like so:fromconfimportsettingsprint(settings.debug)# This will print: Trueprint(settings.hello)# This will print: WorldIt is also possible to pass an object instead of kwargs. The settings
object will callgetattr(ur_object, key)An example below:classMySettings(object):def__init__(self):self.debug=Truesettings=Settings()settings.configure(MySettings())print(settings.debug)# This will print: TrueMore advanced usageThe settings object can also be used as context manager:withsettings(debug=True):print(settings.debug)# This will print: Trueprint(settings.debug)# This will print: FalseAdditionally you can also use this as a decorator:@settings(debug=True)defgo()print(settings.debug)# This will print: Truego()print(settings.debug)# This will print: FalsePrefixed SettingsIf a group of settings share a common prefix, you can make use of thePrefixedSettingsclass and pass the desired prefix as an argument,
together with the main settings instance. All attributes will be
automatically prefixed when accessed.frompkgsettingsimportPrefixedSettings,Settings# First create the settings object for your package to usesettings=Settings()# Suppose some of your settings are all prefixed with 'FOO'settings.configure(FOO_a='a',FOO_b='b',c='c',debug=False)# Create a PrefixedSettings instance with the desired prefixfoo_settings=PrefixedSettings(settings,'FOO_')foo_settings.a# This will print: afoo_settings.b# This will print: bfoo_settings.c# This will raise an AttributeError
Package: pkg-stack-skscodes
stack_ops packageAuthor: Suyog K SethiaI have created documented package 'pkg_stack' which provides feature 'stack' general functionality, with exception handling. I also threw in unittest, which is runnable after installing package, and it checks sanity of package 'pkg_stack'.Install Package 'pkg_stack' via pip:pip install pkg-stack-skscodesTo Import Package 'pkg_stack':import pkg_stackFind Attributes:>>>from pkg_stack.mystack import Stack
>>>dir(Stack)
>>>dir(Stack())Find Help:>>>help(Stack.from_values)        
Help on method from_values in module pkg_stack.mystack:    

 from_values(*args) method of builtins.type instance    
     Construct a Stack from given values.    

    Params:    
    *args: Integer values to be pushed onto the stack being created.    

    Returns: The newly created Stack object>>>help(Stack.pop)
Help on function pop in module pkg_stack.mystack:

pop(self)
    Pop a value from the stack.

    Returns: The integer value popped from the stack.

    Raises:
    StackEmptyError: When trying to pop from empty stack.Example:>>>from pkg_stack.mystack import Stack                   
>>>s = Stack.from_values(1,2,3,4)           
>>>print(s)     
[1, 2, 3, 4]Exception Handling:sample case-1:>>>from pkg_stack.mystack import Stack                    
>>>s = Stack()               
>>>s.pop()      
stack is empty.sample case-2:>>>s =Stack.from_values(1,2,3,4,5)            
>>>s.push(5)      
stack is full.To see full demo of Package 'pkg_stack' operations in video-like manner:>>>import pkg_stack.mystack     
>>>pkg_stack.mystack.main()         
demo begins..
..  
..Enjoy!
Package: pkgs-test
pkgs_testtest pkgsInstallation$pipinstallpkgs_testUsagepkgs_testcan be used to count words in a text file and plot results
as follows:frompkgs_test.pkgs_testimportcount_wordsfrompkgs_test.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepkgs_testwas created by Matthias Heng. It is licensed under the terms of the MIT license.Creditspkgs_testwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pkgsym
pkgsym — A poor man's package manager (likebrew linkbut without the brew)Usage and Motivationpkgsymis a utility to symlink and un-symlink a package under from a self-contained directory to a prefix.Say you're installing a package from source without your package manager. You perform the Unix magic invocation (or some on Windows):./configure--prefix=/usr/local
make
sudomakeinstallNow you have a bunch of stuff under/usr/local. How do you determine what files came from what package? How do you uninstall the package? (Not all build systems provide amake uninstall.)Enterpkgsym. Now you can install the package to a self-contained directory, something like this:./configure--prefix=/usr/local/opt/foopkg
make
sudomakeinstallSo nowfoo's command is something like/usr/local/opt/foo/bin/foocmd, which definitely isn't going to be in your PATH by default, and you probably don't want to add every odd directory of/usr/local/opt/*/binto your PATH either.Homebrewtakes the approach of symlinking packages into a prefix. That's exactly what pkgsym does. Now you can finish off your package installation:sudopkgsymlink--systemfooThat will take any directories under/usr/local/opt/foo/and symlink theircontentsto/usr/local/{dir}/{file}, creating any directories as necessary. So/usr/local/opt/foo/bin/cmdis symlinked to/usr/local/bin/foocmd,/usr/local/opt/foo/lib/libfoo.sois symlinked to/usr/local/lib/libfoo.so, etc. Subdirectories are handled recursively.Now to uninstall the package, simply run:sudopkgsymunlink--systemfoo
sudorm-rf/usr/local/opt/fooHey, what's that --system?pkgsym supports any arbitrary package prefix. You could install foo toC:\Packages\opt\fooif you want, and then havefoocmdasC:\Packages\bin\foocmdwith something like:cmake-Bbuild-DCMAKE_INSTALL_PREFIX=C:/Packages/opt/foo
cmake--buildbuild
cmake--installbuild
pkgsym--prefixC:/Packageslinkfoo(Forward slashes and backslashes are both supported for Windows).--systemis a shortcut for--prefix /usr/local, and--useris a shortcut for--prefix ~/.local.--useris the default, but is still available as an explicit argument for clarity.What made this necessary? Are you okay?Listen installing packages from source on Windows sucks okay? This script is basically a glorifiedfor i in $prefix/opt/**/*; do ln -s "${i:bash/string/manipulation}", but with it as my hammer I've been able to manage dependency hell on Windows with ad-hoc packages.If you have a real package manager available to you for the thing you want,definitelyuse that instead. pkgsym is for the unfortunate cases where you do not.
Package: pkgsync
Overviewpkgsync is a tool used to move python packages from one repository to another.
Say, for example you use a pypi-clone application such aschishopand you want to synchronise some packages
from pypi to it, or you have multiple pypi clone applications, etc.This makes sure that all the versions of some package on repository A are
copied to repository B if they don’t already exist on B.Benefitspkgsync is particularly useful because it usespkginfoto introspect packages so you
don’t have to:$ tar zxf something-1.2.3.tar.gz
$ cd something-1.2.3/
$ python setup.py sdist register upload -r privaterepowhich is flawed for being slow and often showing up issues where people have
packaged their software incorrectly, with missing MANIFEST.in files, etc., plus
dates change, md5sums change… in short it’s messy. Using pkgsync is less-so.Password-Protected RepositoriesSupports upload and download authentication just in case you have a password-
protected private repository to copy from/to.Old-Style PackagesVery naively support for old-style packages - packages without any setuptools
metadata in them. For these packages, we attempt to use the filename to
determine the package name and release, then register the package using
the value ‘UNKNOWN’ for all the other setuptools metadata (as per the spec).UsageDefault--source-urlishttp://pypi.python.orgsince that’s probably your use
-case.If--destination-usernameis provided and--destination-passwordis not,
you’ll be prompted for a password.Full command-line options documentation available by doingpkgsync--helpExample usage:pkgsync --destination-url=https://eggsample.com --destination-username=youruser tzinfo Django celeryFull repository sync:pkgsync --source-url=https://eggsample.com --destination-url=https://newrepo.com --destination-username=youruser --allDevelopment InstructionsIt’s a pretty typical zc.buildout setup:$ python bootstrap.py
$ bin/buildout

$ bin/pkginfo --helpChangelog0.1.0 (2013-03-02)Initial release.
Package: pkg-temp
Project TitleGetting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.PrerequisitesWhat things you need to install the software and how to install themGive examplesInstallingA step by step series of examples that tell you how to get a development env runningSay what the step will beGive the exampleAnd repeatuntil finishedEnd with an example of getting some data out of the system or using it for a little demoRunning the testsExplain how to run the automated tests for this systemBreak down into end to end testsExplain what these tests test and whyGive an exampleAnd coding style testsExplain what these tests test and whyGive an exampleDeploymentAdd additional notes about how to deploy this on a live systemBuilt WithDropwizard- The web framework usedMaven- Dependency ManagementROME- Used to generate RSS FeedsContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.AuthorsBillie Thompson-Initial work-PurpleBoothSee also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for detailsAcknowledgmentsHat tip to anyone whose code was usedInspirationetc
Package: pkgTests
Test PackageStill on process, not ready for use yet! Currently studying and planning !1. Version0.0.1 inital version0.0.2 update readme.md0.0.3 adding init function for gui(pyautogui) and web (selenium)2. Example and DescriptionThis is a test package, which include these item:Calculate TestHello world Test[x ] Adding PyautoGUI moduleAdding seleniumHello World PackageMethod name: helloworldfrompkgTestimporthelloworldashelloprint(hello.hellotest())# outputcalculate PackageMethod name: calculateCalculate  sum of range X value, start to endfrompkgTestimportcalculateascalresult=cal.sumvalue(1,300)print(result)# outputThesumof1,~300is:44850Calculator operator with  two value X and YfrompkgTestimportcalculateascalcal.add(5,5)cal.minus(5,5)cal.multiply(5,5)cal.divide(5,5)# output10#adding0#subtract25#multiply1#divideGUI for pyautogui fucntionfrompkgTestimportguigui.getvalue()# outputPoint(x=429,y=393)web using selenium module to open browserfrompkgTestimportwebweb.webaccess("https://google.com")# output3. Package and Distribution buildingMethod 1 using setup.py- **File name:**
    - setup.py and setup.cfg
- **How to build:**create build: #python setup.py sdist bdist_wheelMethod 2 using setup.py and setup.cfg(using metadata)If you want wants to convert setup.py to setup.cfg, pleaseHow to build:create build: #python setup.py sdist bdist_wheelCode:setup.pychange setup_nocode.py to setup.pyconvert setup.py to setup.cfg  used:#setup-py-upgrade .setup.py will overwrite as belowsetuptools.setup()
   import setuptoolsCode:setup.cfg[metadata]
name = pkgTest
version = 0.0.1
author = ChenChih.Lee
author_email=jacklee26@gmail.com
description = My first Python Hello world library
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/chenchih/PackageTest
license = MIT
classifiers = 
Development Status :: 1 - Planning
Intended Audience :: Developers
Programming Language :: Python :: 3
Operating System :: Unix
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
[options]
include_package_data = True
packages = find:
install_requires = selenium
[options.package_data]
* =
    *.xml
    *.txtMethod 3 using myproject.toml and setup.cfg(using metadata)How to build:Install build package #py -m pip install --upgrade buildCreate build:#python -m buildinstall it#pip install .OR
#pip install package nameCode:myproject.toml[build-system]
requires = [
    "setuptools>=42",
    "wheel"
]
build-backend = "setuptools.build_meta"
Package: pkgtmpl
Bootstrap python packages with sane defaultsFeatures include:Generates .gitignore, AUTHORS, CHANGELOG,
LICENSE (BSD simplified by default), MANIFEST.in, README.md,
requirements.txt, setup.py, tests.py and tox.ini.Sets your name, github username, package name in the templates by
reading a config that should be located @ ~/.config/pkgtmpl.ini.Optional: Add Travis CI status and twitter account to the readmeSets your name and year in the copyright notice of the license file
Package: pkgtools
pkgtools is a Python library that offers some tools to work with Python Packages. It includes two packages:pkgtools.pypi: a simple yet powerful interface toPyPI(Python Package Index)pkgtools.pkg: some package utilities, like metadata readingHello World!>>> from pkgtools.pypi import PyPI
>>> pypi = PyPI()
>>> pypi.package_releases('pypol_')
['0.5']
>>> pypi.package_releases('pypol_', True)
['0.5', '0.4', '0.3', '0.2']
>>> pypol_egg = pypi.release_urls('pypol_', '0.5')[2]
>>> pypol_egg
Object({'has_sig': False, 'upload_time': <DateTime '20110213T09:33:07' at 97d666c>, 'comment_text': '',
'python_version': '2.6', 'url': 'http://pypi.python.org/packages/2.6/p/pypol_/pypol_-0.5-py2.6.egg',
'md5_digest': '20e660cef8513f35fdb0afd5390146bc', 'downloads': 46, 'filename': 'pypol_-0.5-py2.6.egg',
'packagetype': 'bdist_egg', 'size': 116826})
>>> pypol_egg['python_version']
'2.6'
>>> pypol_egg.python_version
'2.6'
>>> pypol_egg.filename
'pypol_-0.5-py2.6.egg'
>>> pypol_egg.url
'http://pypi.python.org/packages/2.6/p/pypol_/pypol_-0.5-py2.6.egg'>>> from pkgtools.pkg import Installed
>>> i = Installed('sphinx')
>>> i
<pkgtools.pkg.Installed object at 0x96f68ec>
>>> i.file('entry_points.txt')
{'console_scripts': {'sphinx-autogen': 'sphinx.ext.autosummary.generate:main',
                     'sphinx-build': 'sphinx:main',
                     'sphinx-quickstart': 'sphinx.quickstart:main'},
 'distutils.commands': {'build_sphinx': 'sphinx.setup_command:BuildDoc'}}
>>> i.file('requires.txt')
['Pygments>=0.8', 'Jinja2>=2.2', 'docutils>=0.5']
>>> i.file('depencency_links.txt')
Traceback (most recent call last):
  File "<pyshell#8>", line 1, in <module>
    i.file('depencency_links.txt')
  File "pkg.py", line 80, in file
    raise KeyError('This package does not have {0} file'.format(name))
KeyError: This package does not have depencency_links.txt file
>>> i.file('PKG-INFO')['Metadata-Version']
'1.0'
>>> i.file('PKG-INFO')['Name']
'Sphinx'
Package: pkgu
pkguFind the out-dated packages installed by the Pip tool and update them. Inspired by 👉depu(Go).
However,pkgusupports full and partial updates, which is more convenient and flexible. It also supports cross-platform(Windows, linux, macos).👉 However, only python3.10 and above are available now.UsageRun code from source codeFirst, you need to install dependencies.if you don't havepoetrytool, please install it first. 🔗:poetry installation, otherwise, install packages directly.poetryinstalland then, runpkgu.pyscript.python3pkgu.pyUse it through pip -Highly Recommendedpip3installpkguafter the installation is complete,pkguexecutable file will be written to the python bin directory and you can enterpkgu -hcommand on your terminal to learn how to use it.ScreenShootNo packages need to be upgraded.Upgrade some expired packages.Update the pkg synchronouslyUpdate the pkg asynchronouslyWe can see that the async method is faster than sync method about 9 seconds(Only in this test situation).
So now it can support to update the python libraries asynchronously. 🥳Support for selectable update packagesList all availbable packagesSelect ths part of package to be updated!!!New - Support to use cache result from sqlite db file.This improve the expirence that how we list the out-dated packages when they are huge to collect, and then there also is a cli flag--no-cacheto control whether should to use cache.
Package: pkg-updater
pkg-updaterA python script to update packages$ pkg-updater my-pkg
Next update in 899s, press enter to continue...
Checking for updates...
Gracefully shutting down running processes...
Installing updates...
...
...
...
Restarting closed processes...
Complete.InstallationYou can install the package via pip:pipinstallpkg-updaterUsageusage: pkg-updater [-h] [--extra-index-url EXTRA_INDEX_URL] [--interval INTERVAL] [--delay-first DELAY_FIRST] [--restart RESTART] package_name

positional arguments:
  package_name

options:
  -h, --help            show this help message and exit
  --extra-index-url EXTRA_INDEX_URL
  --interval INTERVAL
  --delay-first DELAY_FIRST
  --restart RESTARTLicenseThis project is licensed under the terms of the MIT license.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.ContactIf you want to contact me you can reach me atpradishbijukchhe@gmail.com.
Package: pkg-upload
Package_UploadTo Upload a package:
Create a folder and name it
Then add an__init__.pyAdd a LICENSE and a README
Make a Setup.pyFor users using local computer.pip install twinepython folder/setup.py sdist bdist_wheeltwine upload dist/*pkg_upload.package(pkg_name="Url91",author="PkgDev",email="example@example.com",version="0.0.1",short_description="A simplified url package made with request and urllib",long_description="""#Url91'''pyimport Url91print(Url91.content("https://pypi.org"))'''""",github_url="https://github.com",python_requirment=">=3.6")For repl.it users.pkg_upload.package(pkg_name="Url91",author="PkgDev",email="example@example.com",version="0.0.1",short_description="A simplified url package made with request and urllib",long_description="""#Url91'''pyimport Url91print(Url91.content("https://pypi.org"))'''""",github_url="https://github.com",python_requirment=">=3.6")Thenpkg_upload.upload(folder_name,type_="in_folder")
Package: pkg-utils
pkg_utilsUtilities for linking setuptools with package version metadata, GitHub
README.md files, requirements.txt files, and restoring overridden entry
points during for editable installations. Includes support for optional
dependencies.InstallationInstall Python and pip:apt-get install python python-pipInstall this package:pip install pkg_utilsOptionally, install support for pandoc to link setuptools with GitHub
markdown formatted README.md files:apt-get install pandoc
pip install pkg_utils[pandoc]DocumentationPlease see theAPI
documentation.LicenseThe build utilities are released under theMIT license.Development teamThis package was developed by theKarr Labat the Icahn School of Medicine at Mount Sinai in New York, USA.Questions and commentsPlease contact theKarr Labwith any
questions or comments.
Package: pkgversions
IntroductionThis is a simple CLI that allows you to update package versions during development.  It creates a versions file that you can incorporate in your About Dialog.This command has to be run solely during development and in the virtual environment of the
target py2app application.Install pkgversions in your virtual environmentThis utility is distributed viapypipackages.Install like this:pip3 install pkgversions##How to usepkgversions --help
Usage: pkgversions [OPTIONS]

  For best results install this command in the virtual environment that
  contains the packages that you intend to query

Options:
  -p, --package-file PATH   location of packages list file
  -o, --versions-file PATH  location of generated versions file
  --version                 Show the version and exit.
  --help                    Show this message and exit.Format of Package FileThis file is the name of the python packages one per lineFor example:todoist-python
PyGithubFormat of Versions FileThe utility creates a versions file one line per package name with the version number.For example:todoist-python=8.1.3PyGithub=1.54.1
Package: pkgwat.api
Python API forpkgwat.Documentation:http://pkgwat.rtfd.orgSetting up development environmentMake sure you havevirtualenvinstalled and create a new venv:$ virtualenv env
$ source env/bin/activate
$ pip install -e .Running the test suiteMake sure you havetoxinstalled and run it (outside of any virtualenv):$ toxCutting a new releaseIn order to generate a list of changes to be placed intoCHANGELOG.rst, use
the following command (this example generates the log between0.12andHEADrefs):git log --reverse --format=format:'- %s `%h <https://github.com/fedora-infra/pkgwat.api/commit/%H>`_' 0.12..HEAD
Package: pkg-wordslookup
pkg_wordslookupThis package will look the instances of a specific word provided as an input inside a file also provided as an input. The package will give the amount of times the word is in the file and it will print the line in which the word is placedInstallation$pipinstallpkg_wordslookupUsageTODOContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepkg_wordslookupwas created by Gabriel Coronel. It is licensed under the terms of the MIT license.Creditspkg_wordslookupwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.