Saravanan666/pypi-org huggingface dataset:
Package: py-proc-watch
py-proc-watchLibrary and command line tool for watching process output. This is more or less a simpler version ofwatchfromprocps.The main differences come from defaults:py-proc-watchalways trims long lines so they fit on the screenpy-proc-watchrespects color ANSI escape sequences (but strips the rest)Python or C for the implementationDesign goalspy-proc-watchlibrary and tool should be:simplefast for very long output of executed commandeasily tested for correct behaviorpure Python to maximize the amount of supported systemseasy to use in other toolsUsagepywatchcommand line tool supports only a few command line options to keep it simple:usage: pywatch.py [-h] [-n INTERVAL] [-p] [-v] command [command ...]

positional arguments:
  command               command to watch, can be specified as a quoted string or as a list (use -- to separate pywatch and command options)

options:
  -h, --help            show this help message and exit
  -n INTERVAL, --interval INTERVAL
                        seconds to wait between command runs, positive floats and zero are accepted
  -p, --precise         try to run the command precisely at intervals
  -v, --debug           show debug informationpy_proc_watchcan be used also as a Python module to provide "watch-like" functionality easily. The library is quite simple, so just read the source and tests.Developmentpy-proc-watchusesPython Poetryto manage dependencies, version 1.3.0 or later is required due to lock file format.Used tools:isortfor keeping imports saneblackfor enforcing a consistent code stylerufffor lintingmypyfor type checkingpytestfor running testpoethepoetfor easily running all of the aboveThemagicincantation:poetryrunpoecheckwill run all of the lint and test tools for you. During development running:poetryrunpoeformatWill runisortandblackto format the source code,ruffandmypywill be executed after code formatting to check for violations.Contributing and reporting issuesPlease use GitHub Issues and Pull requests. If you're contributing code please seeDevelopmentsection.LicenseMIT, seeLICENSE.mdfor full text. This is very permissive license, see following pages for more information:Open Source Initiative page about MIT licensetl;drLegal page about MIT license
Package: pyProdigy
A simple package to work with Prodigy ALMA dataInstallationuvplotworks onPython>=2.7 and >=3.6 and can be installed with:pipinstallpyProdigyTo makepyProdigyavailable in CASA, run from the shell:casa-pipinstallpyProdigywherecasa-pipis a tool that can be downloaded athttps://github.com/radio-astro-tools/casa-python.To upgradepyProdigyto a newer version on your system, just run:pipinstall--upgradepyProdigyTo upgradepyProdigyinside CASA use the–no-depsoption to preventcasa-pipfrom automatically upgradingnumpyandmatplotlib(which is not allowed inside CASA and will lead to errors):casa-pipinstall--upgrade--no-depspyProdigypyProdigyhas been tested on CASA versions >= 5.6.0.License and AttributionIf you usepyProdigyfor your publication, please acknowledge the Prodigy projectpyProdigyis free software licensed under the LGPLv3 License. For more details see the LICENSE.Remember thatpyProdigyis released without guarantees of accuracy, always check that what you do makes sense for the purpose you are doing it. Never blindly trust numbers out of a computer.© Copyright 2020 Leonardo Testi and contributors.
Package: pyprodir
pyprodir需求约定 pyproject.toml 位于项目根目录。
需要深层目录下的脚本被直接运行或者被 pytest 时，能够 import 项目级别下的模块。安装pipinstall-Upyprodir
pipinstall-ihttps://mirrors.aliyun.com/pypi/simple/-Upyprodir
pipinstall-ihttps://pypi.tuna.tsinghua.edu.cn/simple-Upyprodir使用方法importpyprodir内部细节使用 python some/file.py 方式运行，some.file.py 无法使用 relative import，也无法使用 absolute import 引用项目目录下的 foo.bar 模块。使用 python -m some.module 方式运行，虽然 some.module 既可以 relative import ..foo.bar 也可以 absolute import foo.bar，但没办法在 vscode 上配置 F5 启动任意文件。不能依赖 sys.modules["main"] 因为它不一定是我们的脚本，可能是 pytest，也可能是交互式解释器。这个模块是给应用程序使用的，不是给库使用的，禁止库代码 import 这个模块，必须是应用程序项目下的文件才能 import 这个模块。导入该模块时，该模块会查谁 import 的它，然从那里向上搜索 pyproject.toml 文件，若找到，则把所在目录添加到 sys.path 前面。The pyproject.toml file
Package: pyprof2html
AboutThis script is converted to HTML file from Python’s profile,
Profile and hotshot profiling data.
inspired byDevel::NYTProf(Perl Module)sample data (pystone hotshot linetimingspystone cProfile)Installationused to easy_install:$ easy_install pyprof2htmlRequirementsRequireJinja2module.Ubuntupython-profiler (Ubuntu Package)installed to:$ easy_install jinja2or:$ sudo apt-get intall python-jinja2
$ sudo apt-get intall python-profilerUsagebasic usage:$ python -m cProfile -o PROFILE_DATA USER_SCRIPT.py
$ pyprof2html PROFILE_DATA
$ ls
htmlLinksPyPIBitbucket
Package: pyprofibus
pyprofibus - PROFIBUS-DP stackhttps://bues.ch/a/profibuspyprofibus is an Open SourcePROFIBUS-DPstack written in Python.Hardwarepyprofibus is able to run on any machine that supports Python. It also runs on embedded machines such as theRaspberry Pior even tiny microcontrollers such as theESP32(Micropython).Please read the hardware documentation for more information:pyprofibus hardware documentationSpeed / Baud rateThe achievable Profibus-DP speed depends on the hardware that it runs on and what kind of serial transceiver is used. There is no software side artificial limit.Please see thepyprofibus hardware documentationExamplespyprofibus comes with a couple of examples that can teach you how to use pyprofibus in your project.Example that runs pyprofibus without any hardware. This example can be used to play around with pyprofibus.examples/example_dummy_oneslave.pyexamples/example_dummy_oneslave.confexamples/example_dummy_twoslaves.pyexamples/example_dummy_twoslaves.confexamples/example_dummy_inputonly.pyexamples/example_dummy_inputonly.confExample that runs pyprofibus as master connected to an ET200S as slave.examples/example_et200s.pyexamples/example_et200s.confExample that runs pyprofibus as master connected to an S7-315-2DP asslave.examples/example_s7-315-2dp.pyexamples/example_s7-315-2dp.confDependenciesPython3.5 or later.Or alternativelyMicropython. Please see thepyprofibus Micropython helpfor more information.LicenseCopyright (c) 2013-2023 Michael Buesch <m@bues.ch>Licensed under the terms of the GNU General Public License version 2, or (at your option) any later version.
Package: py-profiler
PY ProfilerA library to measure method, function or your restful api execution time.InstallRunpip install py-profilerorpip3 install py-profilerto install this libraryUsageIt comes with a really easy api to use, you can addprofiler(name = None)decorator to any method or function you want
to measure its execution time.E.g:frompy_profilerimportprofiler,profiling_service@profiler('hello')defhello():print('hello')classFoo:@profiler('Food.some_thing')defsome_thing(self):print('some_thing')# By default, profiler name is f'{class_name}.{method_name}'@profiler()defmethod_2(self):print('method_2')Access ProfilerThere are 3 ways to access the profiler:- View as a raw table in the console.

- View as a HTML page using a provided Flask blueprint.

- Integrate with your own RESTFul framework.Exec time is in millisecondsView as a tablefrompy_profilerimportprofiling_serviceprint(profiling_service.as_table())NoNameTotal ReqPending ReqTotal Exec TimeLast Exec TimeHighest Exec TimeRequest Rate (req/sec)Avg Time/Request (millis/req)1Foo.method_2100.0140.0140.01471428.5710.0142Food.some_thing100.0110.0110.01190909.0910.0113hello100.0310.0310.03132258.0650.031Integrate with FlaskIf you are using Flask to implement your Restful API. You can addprofiler_blueprintto your Flash app.E.g:fromflaskimportFlaskfromwaitressimportservefrompy_profiler.profiler_controllerimportprofiler_blueprintapp=Flask(__name__)app.register_blueprint(profiler_blueprint)serve(app,host="0.0.0.0",port=8080)Then you can access the profiler page at:http://127.0.0.1:8080/profilerIntegrate with 3rd restful library.You can build your custom profiler viewer by usingas_html()frompy_profilerimportprofiling_servicehtml_page=profiling_service.as_html()Then, you can implement a html page and return thishtml_pageto your client to see profiler viewer.
Package: pyprofit
pyprofitis a python wrapper forlibprofit.Installingpyprofitis available inPyPIand thus can be easily installed via:pip install pyprofitSince version 1.8.1 pre-compiled binary versions of the package
are available for Linux distributions.
These are offered for convenience
and come with OpenMP and FFTW support,
but lack features that some users may want to use,
like OpenCL, threaded-FFTW
and some CPU-specific optimizations.CompilingIf you need tocompilethis package
(either because a binary is not available in your platform,
or because you want to get the last drop of performance)
you will need to compileand installlibprofitfirst.
For instruction on how to compile and installlibprofitplease readlibprofit’s documentation.If you need to point to a specific libprofit installation
set theLIBPROFIT_HOMEenvironment variable to point to it,
e.g.:LIBPROFIT_HOME=/opt/software/libprofit/1.8.0/ pip install pyprofitNote that most users will need to specify
a user-writable installation directory
using the-DCMAKE_INSTALL_PREFIX=/my/installation/directoryoption
when invokingcmakeas part of libprofit’s compilation.
This is the same directory that then needs to be specified to pyprofit
via itsLIBPROFIT_HOMEenvironment variable.All in all, the process of compiling both libprofit and pyprofit
should work similar to this:$> git clone https://github.com/ICRAR/libprofit
$> mkdir libprofit/build
$> cd libprofit/build
$> cmake .. -DCMAKE_INSTALL_PREFIX=/my/libprofit/installation/directory
$> make
$> make install
$> LIBPROFIT_HOME=/my/libprofit/installation/directory pip install pyprofitTroubleshootingIf you are experiencing problems with your installation
(specially if you are compiling this package)
try the following:DISTUTILS_DEBUG=1 PYPROFIT_NO_MUTE=1 python setup.py -v build
Package: pyprofyler
PyProfylera simple memory profiler for python programs.Installation:sudopip3installgit+https://github.com/AlyShmahell/PyProfylerorsudopip3installpyprofylerExample:frompyprofylerimportPyProfylerdefwrapped_function():array=[]foriinrange(1,1000000):array.append(i)returnarray@PyProfylerdefdecorated_function():a_list=[]foriinrange(1,1000000):a_list.append(i)returna_listif__name__=='__main__':###############################################    Profiling a function by wrapping it     ###############################################wrapped_profile=PyProfyler(wrapped_function)# "Not Profiled Yet" Messageprint(wrapped_profile)result=wrapped_profile()# Profile Message, through __str__print(wrapped_profile)# Function Execution Resultprint(f"execution result:{result[10]}")# Profile Message, through __getitem__print(wrapped_profile['profile'])###############################################      Profiling a decorated function        ################################################ "Not Profiled Yet" Messageprint(decorated_function)result=decorated_function()# Profile Message, through __str__print(decorated_function)# Function Execution Resultprint(f"execution result:{result[10]}")# Profile Message, through __getitem__print(decorated_function['profile'])
Package: pyprogramsimp
pyprogramsimppyprogramsimp is a simple python package (still updating) that (until 0.1.1) provides basic calculations and opening documents.InstallationYou can install pyprogramsimp using pip:'''bash
pip install pyprogramsimpLicenseThis project is lecensed under the MIT LicenseCopyright (c) 2023 Ziyan ZhouPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, 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 THESOFTWARE.
Package: pyprogressbars
PyProgressBarsA minimalistic progress indicators for usage in CLI based python projectsIf you have CLI scripts which shows some kind of progress and if you want to show them in a animated way, then you are at the right placeWhat makes this library unique from others is the ability to control the color to use while displaying the progress indicators.Currently SupportsCounterCountdownLoading SpinnerFilling progress barFilling progress bar with percentageGrowing progress barProcess IndicatorProcess Indicator with percentageInstallationpip3 install pyprogressbarsUsageimportsys,timefrompyprogressbarsimportcounter,loading_spinner,filling_progress_bar,growing_progress_bar,x_slash_ycounter(limit=50,prefix="Counter: ",delay=0.1)sys.stdout.write("\n")counter(limit=50,prefix="Countdown: ",delay=0.1,reverse=True)sys.stdout.write("\n")loading_spinner("Loading Spinner: ",color="red")sys.stdout.write("\n")foriinrange(1,26):filling_progress_bar(25,i,0.3,"Filling Progress Bar: ",color="yellow")sys.stdout.write("\n")foriinrange(1,26):filling_progress_bar(25,i,0.3,"Filling Progress Bar (With percentage): ",color="yellow",show_percentage=True)sys.stdout.write("\n")growing_progress_bar(50,0.2,"Growing Progress Bar: ","green")sys.stdout.write("\n")foriinrange(1,51):x_slash_y("Process Indicator: ",i,50,color="yellow")time.sleep(0.2)sys.stdout.write("\n")foriinrange(1,51):x_slash_y("Process Indicator (With percentage): ",i,50,show_percentage=True)time.sleep(0.2)sys.stdout.write("\n")
Package: pyproj
pyprojPython interface toPROJ(cartographic projections and coordinate transformations library).DocumentationStable:http://pyproj4.github.io/pyproj/stable/Latest:https://pyproj4.github.io/pyproj/latest/Bugs/QuestionsReport bugs/feature requests:https://github.com/pyproj4/pyproj/issuesAsk questions:https://github.com/pyproj4/pyproj/discussionsAsk developer questions:https://gitter.im/pyproj4-pyproj/communityAsk the GIS community:https://gis.stackexchange.com/questions/tagged/pyprojContributors ✨Thanks goes to these wonderful people (emoji key):Jeff Whitaker📖⚠️💻💡🤔👀💬🚧🚇🐛Alan D. Snow📖⚠️💻💡🚧🚇🤔👀💬🐛Micah Cochran📖⚠️💻🚧🚇👀💬🐛Joris Van den Bossche📖💻🤔👀💬🐛⚠️Chris Mayo⚠️Charles Karney💻⚠️Justin Dearing🚇Jos de Kloe💻⚠️🐛George Ouzounoudis💻🤔David Hoese👀🤔📦📖⚠️💻Mikhail Itkin💻Ryan May💻artttt🤔Filipe🚇💻📦📖Heitor📖Bas Couwenberg💻📦⚠️Nick Eubank💻Michael Dunphy📖Matthew Brett🚇📦Jakob de Maeyer💻The Gitter Badger📖Bernhard M. Wiedemann💻Marco Aurélio da Costa💻Christopher H. Barker💻Kristian Evers💬🤔📖Even Rouault💬Christoph Gohlke📦💬🐛⚠️Chris Willoughby💻Guillaume Lostis📖Eduard Popov📖Joe Ranalli🐛💻⚠️Greg Berardinelli🐛💻🤔⚠️Martin Raspaud🐛💻⚠️🤔Mike Taves⚠️David Haberthür📖mmodenesi🐛💻⚠️jacob-indigo🐛💻Poruri Sai Rahul⚠️Yann-Sebastien Tremblay-Johnston📖odidev📦Idan Miara💻📖💡⚠️Brendan Jurd📖🎨Bill Little📖Gerrit Holl📖Kirill Kouzoubov💻Dan Hemberger🐛💻Martin Fleischmann🐛💻⚠️Matthias Meulien💻🐛Isaac Boates💻🐛⚠️Kyle Penner💻🐛📖paulcochrane💻📖⚠️🐛Antonio Ettorre📦DWesl💻Víctor Molina García📦Samuel Kogler🐛💻Alexander Shadchin🐛💻Greg Lucas💻🤔Dan Mahr💻📖⚠️Romain Hugonnet💻📖⚠️Javier Jimenez Shaw💻📖⚠️Daniel McDonald📖Cora Schneck📖zanejgr📖This project follows theall-contributorsspecification. Contributions of any kind welcome!
Package: pyProj1
A sample Python projectA sample project that exists as an aid to the Python Packaging User Guide’s Tutorial on Packaging and Distributing Projects.This projects does not aim to cover best practices for Python project development as a whole. For example, it does not provide guidance or tool recommendations for version control, documentation, or testing.This is the README file for the project.The file should use UTF-8 encoding and be written using ReStructured Text. It will be used to generate the project webpage on PyPI and will be displayed as the project homepage on common code-hosting services, and should be written for that purpose.Typical contents for this file would include an overview of the project, basic usage examples, etc. Generally, including the project changelog in here is not a good idea, although a simple “What’s New” section for the most recent version may be appropriate.
Package: pyproject-appimage
pyproject-appimagepyproject-appimage allows you to create a AppImage in a few seconds. To get started, just add this to your pyproject.toml:[tool.pyproject-appimage]script="my-app"output="MyApp.AppImage"scriptis here the script that should be run when executing the AppImage. You can use theproject.scriptssection of your pyproject.toml or theentry_pointsargument of your setup.py to create scripts.To create a AppImage, just run this command in your project directory:pyproject-appimagePyproject optionsThe following options can be used in your pyproject.toml:OptionTypeDescriptionscriptstringThe script that should be runoutputstringThe filename of your AppImage. Can be overwritten with the cli.iconstringThe path to your Iconrename-iconstringGive your Icon another name inside the AppImagedesktop-entrystringThe path to your .desktop filerename-desktop-entrystringGive your .desktop file another name inside the AppImagegettext-desktop-entryboolIf your .desktop file should be translated using gettestappstreamstringThe path to your AppStream filerename-appstreamstringGive your AppStream file another name inside the AppImagegettext-appstreamboolIf your AppStream file should be translated using gettestgettext-directorystringThe path to your gettext directorypython-versionstringThe Python version that is used. Default is your current version. Can be overwritten with the cli.updateinformationstringTheupdate informationcompressionstringThe Squashfs compressionNote: All paths are relativ to your project directoryCli optionspyproject-appimage provides the following cli options:usage: pyproject-appimage [-h] [--output OUTPUT] [--project-dir PROJECT_DIR] [--python-version PYTHON_VERSION] [--appimagekit-url APPIMAGEKIT_URL] [--work-dir WORK_DIR]
                          [--list-available-versions] [--no-fuse] [-v]

options:
  -h, --help            show this help message and exit
  --output OUTPUT       Sets the putput filename
  --project-dir PROJECT_DIR
                        Sets the project dir
  --python-version PYTHON_VERSION
                        Set a custom Python version
  --appimagekit-url APPIMAGEKIT_URL
                        Set a custom download URL for AppImageKit
  --work-dir WORK_DIR   Set a custom directory to work in. Existing Directories will be removed.
  --list-available-versions
                        Print available Python versions and exit
  --no-fuse             Use this, if FUSE is not available e.g. inside a Docker container
  -v, --version         Prints the version and exitProjects using pyproject-appimagejdNBTExplorerpyproject-appimage is of course also available as AppImagepyproject-appimage is basedon the work of niess
Package: pyproject-autoflake
pyproject-autoflakepyproject-autoflake(pautoflake), a monkey patching wrapper to connectautoflakewith pyproject.toml configuration.MotivationThe original autoflake does not support configuration files such as pyproject.toml.
This is slightly inconvenient for modern Python development.pautoflake is a thin wrapper library that calls autoflake with a configuration read from pyproject.toml.pyproject-autoflake is inspired bypyproject-flake8. Many thanks! 😉Installationpippipinstallpyproject-autoflakepoetrypoetryadd-Dpyproject-autoflakeUsageAt first, you add[tool.autoflake]in your pyproject.toml.# pyproject.toml...[tool.autoflake]# return error code if changes are neededcheck=false# make changes to files instead of printing diffsin-place=true# drill down directories recursivelyrecursive=true# exclude file/directory names that match these comma-separated globsexclude="<GLOBS>"# by default, only unused standard library imports are removed; specify a comma-separated list of additional# modules/packagesimports="<IMPORTS>"# expand wildcard star imports with undefined names; this only triggers if there is only one star import in# the file; this is skipped if there are any uses of `__all__` or `del` in the fileexpand-star-imports=true# remove all unused imports (not just those from the standard library)remove-all-unused-imports=true# exclude __init__.py when removing unused importsignore-init-module-imports=true# remove all duplicate keys in objectsremove-duplicate-keys=true# remove unused variablesremove-unused-variables=true# print more verbose logs (larger numbers are more verbose)verbose=0...Second, you callpautoflake.pautoflakesample.pyLicenseMIT License
Package: pyproject-dependencies
pyproject-dependenciesusage: pyproject-dependencies [-h] [--no-isolation] [--no-exclude-self] [--ignore-build-errors] [--name-filter REGEX] [PROJECT ...]

Print direct dependencies of a set of python projects.

positional arguments:
PROJECT               project directory or pyproject.toml or setup.py

options:
-h, --help            show this help message and exit
--no-isolation        whether or not to invoke the build backend in the current environment or to create an isolated one and invoke it there
--no-exclude-self     whether or not to exclude the projects themselves from the output, when they depend on each other
--ignore-build-errors
--name-filter REGEX   filter out dependencies whose canonical name matches a regex
Package: pyproject-examples
Example pyproject.toml configs for testing.These are designed to be used in the testsuite forpyproject-parserandwhey,
but may be useful for other tools based on those.TestsPyPIActivityQAOtherInstallationpyproject-examplescan be installed from PyPI.To install withpip:$python-mpipinstallpyproject-examplesUsagepyproject-examplesprovides the following API:pyproject_examplesmodulevalid_pep621_configA list ofpytest paramsfor validpyproject.tomlfiles perPEP 621.
The params contain thepyproject.tomlcontent as a string.
Each param has its own unique ID, which can be seen in the sourcehere.bad_pep621_configA list ofpytest paramsfor invalidpyproject.tomlfiles perPEP 621.
Each param contains thepyproject.tomlcontent (as a string),
the expected Python exception (for catching withpytest.raises), and the expected exception text (for passing as thematchargument topytest.raises.
Each param also has its own unique ID, which can be seen in the sourcehere.valid_buildsystem_configA list ofpytest paramsfor valid[build-system]tables frompyproject.tomlfiles perPEP 517andPEP 517.
The params contain thepyproject.tomlcontent as a string.
Each param has its own unique ID, which can be seen in the sourcehere.bad_buildsystem_configA list ofpytest paramsfor invalid[build-system]tables frompyproject.tomlfiles perPEP 517andPEP 517.
Each param contains thepyproject.tomlcontent (as a string),
the expected Python exception (for catching withpytest.raises), and the expected exception text (for passing as thematchargument topytest.raises.
Each param also has its own unique ID, which can be seen in the sourcehere.pyproject_examples.example_configssubmoduleThis module contains the example configuration files themselves.
Each file is stored as a string.The configuration files are:MINIMAL_CONFIGKEYWORDSAUTHORSUNICODEMAINTAINERSCLASSIFIERSDEPENDENCIESOPTIONAL_DEPENDENCIESOPTIONAL_DEPENDENCIES_EMPTY_GROUPURLSENTRY_POINTSCOMPLETE_PROJECT_ACOMPLETE_ACOMPLETE_BCOMPLETE_A_WITH_FILESDYNAMIC_REQUIREMENTSLONG_REQUIREMENTSpyproject_examples.utilssubmoduleThis module contains utility functions.file_not_found_regex(filename: str)->strThis function create a regular expression for testingFileNotFoundErrors.This is useful for testing error messages between Windows and POSIX, as well as between CPython and PyPy.filenameThe filename which can’t be found.