Saravanan666/pypi-org huggingface dataset:
Package: pitci
Prediction Intervals for Trees using Conformal IntervalsIntroductionThe basic idea of inductive conformal intervals is to use a calibration set to learn a given quantile of the error distribution on that set. This quantile is used as the basis for prediction intervals on new data.However this is often not especially useful in practice as every new prediction will recieve the same interval. Instead we want to scale this interval according to the input data. Intuitively we want to increase the interval where we have less confidence about the data and associated prediction and decrease it where we have more confidence.In order to produce a scaling factor value captures the confidence or familiarity we have with some data compared to our calibration set,pitciuses the number of training data rows that fell into the specific leaf nodes that were visited in making the prediction, summed across all trees.For a full list of the supported libraries and more detail on the methods implmeneted, see thedocs.InstallThe easiest way to getpitciis directly fromPyPIusing;pip install pitciDocumentationThe documentation forpitcican be foundhere.For information on how to build the documentation locally see the docsREADME.ExamplesThere are various example notebooks demonstrating how to use the package in theexamples folderin the repo.Buildpitciusesflitas the package build tool.To installpitcifor development, use the following commands from the root directory;pip install "flit>=2,<4"
flit installThe defaultdepsflag forflitisallso this will install all of the libraries required for testing and creating the docs.To installpitciin editable mode (i.e. the equivalent ofpip install . -e) use thesymlinkflag;flit install --symlinkSee theflit docsfor all the command line options forflit.
Package: piter
PITER - virtual environments management tool for Python projectsIdeaWhile working on Python project you may need multiple virtual environments. You can divide your development and test environments, have multiple environments to test against different version of libraries or any other use casesMinimal configurationInstallpiterwithpipinstallpiterCreate or updatepyproject.tomlfile with following configuration[tool.piter][tool.piter.env.test]dependencies=["pytest==6.2.4",]scripts.test="pytest"[tool.piter.env.dev]dependencies=["black==21.5b1",]scripts.lint="black ."scripts.check="black --check ."Available commands with this configuration# install, remove and reinstall envpiterenvdev--install
piterenvdev-i

piterenvdev--remove
piterenvdev-r

piterenvdev--reinstall
piterenvdev-ri# run script without specifying envpiterruntest# run scriptpiterrundev:lint
Package: pitest
An object oriented testing framework.InstallationFrom pip3:$ pip3 install --upgrade rstcheckFrom source:$ python3 setup.py --quiet installTestsInstall the pitest package first, then:$ cd unittests
$ python3 -m unittestUsage ExamplesWrite a test case:importpitestclassMyTestCase(pitest.TestCaseBase):# By default, test methods are methods whose names start with 'test_'. You# can change the matching patterns by defining the 'test_patterns' class# variable by uncommenting the following line:#       test_patterns = [ 'mytest_*', 'yourtest_*' ]# The start * means it matches anything, just like the command line glob.# If test methods have inter-dependencies, i.e., certain tests must precede# some other tests, you can define the dependencies using the# 'internal_deps' class variable. Here is an example:#       internal_deps = { 'test_foo1': [ 'test_bar1*', 'test_bar2*' ],#                         'test_hel*lo': [ 'test_no', 'test_yes*' ],#                       }# If this test case depend on other test cases, you can specify their# dependencies via the 'deps' class variable. Here is an example:#       deps = [ 'MyTestCase1', 'MyTestCaseFoo*', ]# When you reference other test cases, you do NOT need to import the files# that define the referenced test cases. But if they cannot be found by the# end of the day, error will occur.def__init__(self[,*args[,**kwargs]]):pass# Run once before running all test methods.defsetup_instance(self[,*args[,**kwargs]]):pass# Run once after running all test methods.defteardown_instance(self[,*args[,**kwargs]]):pass# Run once before running every single test method.defsetup(self[,*args[,**kwargs]]):pass# Run once after running every single test method.defteardown(self[,*args[,**kwargs]]):pass# Actual test methods, names matching 'test_patterns'.deftest_foo_something(self[,*args[,**kwargs]]):passdeftest_foo_something_else(self[,*args[,**kwargs]]):passdeftest_bar_something(self[,*args[,**kwargs]]):passdeftest_bar_something_else(self[,*args[,**kwargs]]):passWrite argument fileimportpitest__pitest_main_default_args_name__='my_args'my_args=pitest.TestCaseArgs()my_args.set_method_args('__init__',args=('Anndee',),kwargs={'kwarg0':'KoolArg'})my_args.set_method_args('test',args=('naathing',),kwargs={'kwarg1':'at owl'})my_args2=pitest.TestCaseArgs()my_args2.set_method_args('__init__',args=('Bashii',),kwargs={'kwarg0':'KoolArg2'})my_args2.set_method_args('test',args=('naathing',),kwargs={'kwarg1':'at owlll'})Run the test casesDiscover tests:$ python3 -m pitest discover (case | method | all)Run tests:$ python3 -m pitest run (case | method) nameScan given directory:$ python3 -m pitest --start-dir some/dir ...Run tests with dynamic arguments:$ python3 -m pitest run case MyTestCase --args-file my_args.pyUse a non-default argument object in the file:$ python3 -m pitest run case MyTestCase --args-file my_args.py \
                                        --args-name my_args2
Package: pitex
πTexA Python-based utility for generating and compiling LaTeX documents
programmatically. Ideal for automating the creation of complex LaTeX documents.RequirementsπTex assumes that the commandpdflatexavailable in your path. Please seethis pagefor instructions on how to
install LaTeX on your system.InstallationpipinstallpitexQuick StartMinimal example:frompyteximportLatexDocument# Create a new LaTeX documentdoc=LatexDocument("my_document")# Add content to the documentdoc.content+=r"""\section{Introduction}This is an automatically generated LaTeX document."""# Compile the LaTeX document to PDFdoc.compile()DocumentationDetailed documentation will be available soon.ContributingContributions are welcome! If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.LicensingThe code in this project is licensed underMIT license. This is a permissive license that is short and to the point. It lets people do almost anything they want with your project, like making and distributing closed source versions.
Package: pith
PYTHONPATH.Home-page: https://github.com/weegreenblobbie/pith-toolAuthor: Nick Hilton et alAuthor-email: weegreenblobbie@yahoo.comLicense: UNKNOWNDescription: pith====A simple command-line tool to execute Python while taking care of the``PYTHONPATH``.Project Homepage================.. _`pith Homepage`: https://github.com/weegreenblobbie/pith-tool- `pith Homepage`_How to Install==============.. code-block:: consolepip install --user pithOr:.. code-block:: consolepip3 install --user pithThen make sure ``pith`` is in your shell's ``PATH``, it's usually installedinto ``~/.local/bin``.Keywords: development,command-line,scriptPlatform: UNKNOWNClassifier: Development Status :: 4 - BetaClassifier: Intended Audience :: DevelopersClassifier: Environment :: ConsoleClassifier: License :: OSI Approved :: MIT LicenseClassifier: Natural Language :: EnglishClassifier: Operating System :: OS IndependentClassifier: Programming Language :: PythonClassifier: Programming Language :: Python :: 2.7Classifier: Programming Language :: Python :: 3Classifier: Topic :: Software DevelopmentClassifier: Topic :: Utilities
Package: pithermalcam
READMEDocumentation of the pithermalcam project and accompanyingPyPI package, which connects an MLX90640 thermal camera up to a Raspberry Pi. (Built on a Pi 4)Setup based primarily off the articlesby Joshua Hrisko at MakerPortaland byВалерий Курышев’s under the name Walker2000 at Habrand flask pieces based on the work ofAdrian Rosebrock at pyimagesearch. Many thanks these people for their great work.Full details for this project are available athttps://tomshaffner.github.io/PiThermalCam/, including comprehensive hardware/software setup, install, usage instructions, and examples of potential results. A cursory overview for development purposes only is included here.Manual Install/SetupThis section discusses software setup only, and assumes you have hardware set up, the MLX90640 correctly wired up, I2C turned on, and the I2C baudrate increased to 400k. Refer to the above full details link for detailed instructions on both the hardware and software installs.The below install is for manual operation of the library. For the Pip install from PyPi skip the below and simply executepip3 install pithermalcam.Install, using apt-get, the following items:
libatlas-base-dev
python-smbus
i2c-toolsInstall remaining requirements using either:
a.
pip3 install the requirements.txt
or
b.
pip3 install the requirements_without_opencv.txtDownload, build, and install OpenCV locally (painstaking process, but results in more optimized code.).Install cmapy using --no-deps pip3 flag to avoid installing OpenCV via pip3.UsagePip Library InstallIf you install the library via Pip you can follow the usage shown in the examples folder to see usage instructions.Clone library locallyIf you wish to clone the library, execute this clone command:git clone -b master --single-branch https://github.com/tomshaffner/PiThermalCam.gitThis clones the code without cloning the pictures for the accompanying article (which take up excessive space).To operate from here:Copy the icons to your desktop and make executable.orRun the files directly in python3:Run pithermalcam/web_server.py to set up a flask server and stream live video over the local network.Run pithermalcam/pi_therm_cam.py to display the video feed onscreen.Check sequential_versions folder for sequential running approaches that are easier to track/follow (i.e. sequential running rather than object-oriented classes). These are less robust, but can be easier to understand/track/edit, particularly for those coming from a scientific background. Again, refer to the link at top for a detailed discussion.
Package: pitop
This is the top-level package of the pi-top Python SDK. It collects all the packages from the SDK,
alongside other modules such aslabs.Supports all pi-top devices:Supports pi-top Maker Architecture (PMA):Supports all pi-top peripherals:DetailsMore information about this and other packages of the SDK can be found in its GitHubrepository.DocumentationComprehensive documentation is availablehere.
Package: pitot
pitotpitot is a Python toolbox providing efficient aeronautic calculations.Implementations are:efficient, based on NumPy or state-of-the-art libraries;provided withtyping stubs;unambiguous withphysical units, with the help of theimpunitylibrary, based on annotations.The following functions are currently available:International Standard Atmosphere (temperature, density, pressure, and speed of sound);conversions between various air speeds: CAS, TAS, EAS and Mach number;geodetic calculations (distance, bearing, great circle, etc.) on a WGS84 ellipsoid.InstallationLatest releasepipinstallpitotDevelopment versionpoetryinstallBasic usageContributionsAny input, feedback, bug report or contribution is welcome.Before opening a PR, please check your commits follow a number of safeguards with hooks to install as follows:poetryrunpre-commitinstallThen you should prefix yougit commitcommands as follows:poetryrungitcommit-m"fantastic commit message"
Package: pi-touch
PiTouchScreenProgrammatically control theRaspberry Pi Touch DisplayFeaturesGPIO ControlWith a button connected to pin 17:Cycle brightness between 50, 100, 150Long-press button for 1 second to turn off the screenpi-touch-screenpi-touch-screen--channel17-bl50-bl100-bl150--power-sec1Thread-safe- `BacklightManager` provides thread-safe attribute access and thread-safe sysfs read/writes
- Reading or setting values requires owning a lock
- Prevents race conditions from threaded callbacksInstall as ServiceSavepi_touch_screen_service.serviceto$HOME/.config/systemd/user/pi_touch_screen_service.serviceRunsystemctl --user edit pi_touch_screen_serviceand modifyExecStartto use your desired parametersRunsystemctl --user enable pi_touch_screen_serviceto run the service at startup
Package: pi-touch-gui
OverviewPi Touch GUI is a touchscreen GUI for the Raspberry PI.  It is inspired and
founded on work from the official Raspberry Pi touchscreen, and by the
Star Trek-inspired LCARS UI by Toby Kurian.It is a work in progress.See also:https://github.com/pimoroni/python-multitouch/blob/master/library/setup.pyhttps://github.com/tobykurien/rpi_lcarsInstallationDevelopmentPyCharm
Package: pi-touch-pi-touch-gui
Pi Touch GUI is a touchscreen GUI for the Raspberry PI.  It is inspired and
founded on work from the offical Raspberry Pi touchscreen, and by the
Star Trek-inspired LCARS UI by Toby Kurian.See also:https://github.com/pimoroni/python-multitouch/blob/master/library/setup.pyhttps://github.com/tobykurien/rpi_lcars
Package: pits
pits – Point-In-Time Storagepitsprovides Pythonic context-managed file object abstraction for point-in-time file storage.  pits supports plain or gzipped files.pitsislisted on PyPI.Writingmy_data=grab_my_data(...)# write to plain filewithopen('my-data.txt','w+')asf:f.write(my_data)# write to gzip fileimportgzipwithgzip.open('my-data.gz','wb')asf:f.write(my_data)# write to point-in-time fileimportpitswithpits.open('my-data','wb',gzip=True)asf:f.write(my_data)# write as if we're at another point in timewithpits.goto('20220101-1200').open('my-data','wb',gzip=True)asf:f.write(my_data)Readingimportpits# read latest filewithpits.open('my-data')asf:f.write(my_data)# read latest file as if we're at another point in timewithpits.goto('2022-12-18 15:00').open('my-data')asf:f.write(my_data)Datetime formatTimestamp format for file name is%Y.%m.%d-%H:%M:%S.All non-numeric characters are omitted in timestamp parsing, e.g.,2022-12-18 15:00is transformed to202212181500before parsing.All timestamps are local.20221218is recognized as2022-12-18 23:59:59, but20221218-1500is recognized as2022-12-18 15:00:00.
Package: pitsu
how to useinstal pitsu:pip3installpitsuorpipinstallpitsusimple example:frompitsuimport*html(head(meta(charset="UTF-8"),title("Example Login")),body(form(inp(# inp = input elementtype="text",name="user",id="user",required=NO_VALUE),br(),inp(type="password",name="pass",id="pass",required=NO_VALUE),br(),inp(type="submit",value="Submit"),action="/",method="get")),lang="en").pack()you can use the method pack to pack your html page:page=html(...)pack(page)output:<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"/><title>Example Login</title></head><body><formaction="/"method="get"><inputtype="text"name="user"id="user"required/><br><inputtype="password"name="pass"id="pass"required/><br><inputtype="submit"value="Submit"/></form></body></html>seeDocumentation
Package: pittgoogle-client
.. image::https://readthedocs.org/projects/pitt-broker/badge/?version=latest:target:https://pitt-broker.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status
:style: flat-squarepittgoogle-clientRead the docs:http://pittgoogle-client.rtfd.io/.This is the client package for thePitt-Google astronomical alert broker.
Package: pitt-schemas
pitt_schemasJSON schemas and validation helpers.RequirementsPython 3.4 or higherjsonschematox(for running tests)pre-commit(for running linters before committing)After installing pre-commit, install the git-hook scripts:$ pre-commit installInstallationThe recommended way to install this package is usingpip:pip install pitt_schemasUsageThis library has one main public method,is_valid(), which takes a dict as the first argument and a schema filename as the second.from pitt_schemas import is_valid

data = {"key": "value" ... }
is_valid(data, "object.json")pitt_schemaswill attempt to add an appropriate extension to schema filenames in cases where it is either missing or incorrect. For example, if eitherschemaandschema.orgas schema filenames,pitt_schemaswill attempt to openschema.json.Invalid data will raise ajsonschema.exceptions.ValidationError, and an invalid schema filename will raise aFileNotFoundError.Available schemasAll schemas are located in theschemas/subdirectory of thepitt_schemas/directory.Testspitt_schemascomes with unit tests as well as linting. The easiest way to make sure all tests pass is to runtoxfrom the root of the repository. This will execute all tests, and will also runautopep8andflake8linters against the codebase.DocumentationAutomatically generated HTML documentation in thedocs/directory based upon.jsonfiles in theschemas/subdirectory of thepitt_schemas/directory.RequirementsPython 3.4 or higherjson-schema-for-humansUsageRunninggenerate_docs.pywill iterate over theschemas/subdirectory and write updated docs files to thedocs/directory.LicenseCode is released under an MIT license. SeeLICENSE.md.
Package: pitu
pitupython 开源命令行P图工具。安装pipinstallpitu命令行使用方式缩放 zoompitu zoom <photo_path>  [width [height]]pituzoomphoto.jpg0.5
pituzoomphoto.jpg0600pituzoomphoto.jpg00300旋转 rotatepitu rotate <photo_path>  [color]piturotatephoto.jpg45piturotatephoto.jpg45green
piturotatephoto.jpg45'#ff0000'翻转(镜像) flippitu flip <photo_path> <x|y>pituflipphoto.jpgx
pituflipphoto.jpgy裁剪 cutpitu cut <photo_path> <x> <y> <width> <height>pitucutphoto.jpg100100200200灰度 graypitu gray <photo_path>pitugrayphoto.jpg文本 textpitu text <photo_path> <text> [x [y [font_size [color [pf|yh]]]]]pitutextphoto.jpg'我的P图工具'pitutextphoto.jpg'我的P图工具'300100pitutextphoto.jpg'我的P图工具'30010050pitutextphoto.jpg'我的P图工具'30010050'#f0f'pitutextphoto.jpg'我的P图工具'30010050bluepf
pitutextphoto.jpg'我的P图工具'30010050cyanyh拼图 pinpitu pin <x|y> <photo1_path photo2_path [photo3_path ... photon_path]> [diff]pitupinxzoom-photo.jpgrotate-photo.jpgflip-photo.jpgcut-photo.jpggray-photo.jpgtext-photo.jpg
pitupinyzoom-photo.jpgrotate-photo.jpgflip-photo.jpgcut-photo.jpggray-photo.jpgtext-photo.jpg

pitupinxzoom-photo.jpgrotate-photo.jpgflip-photo.jpgcut-photo.jpggray-photo.jpgtext-photo.jpgdiff
pitupinyzoom-photo.jpgrotate-photo.jpgflip-photo.jpgcut-photo.jpggray-photo.jpgtext-photo.jpgdiff头像 avatarpitu avatar <photo_path> [mode]pituavatarphoto.jpg
pituavatarphoto.jpgex封面 coverpitu cover <photo_path> [mode [ratio]]pitucoverphoto.jpg
pitucoverphoto.jpgex
pitucoverphoto.jpgce2.35
pitucoverphoto.jpgex'16:9'9宫格和任意网格 gridpitu grid <photo1_path photo2_path [photo3_path ... photon_path]>  \[':rows=行数 :cols=列数 :width=宽 :height=高 :gap=间距 :padding=边距 :color=背景色']pitugrid1.jpg2.jpg3.jpg4.jpg5.jpg6.jpg7.jpg8.jpg9.jpg

pitugrid1.jpg2.jpg3.jpg4.jpg':rows=2 :cols=2 :width=600 :height=300 :gap=10 :padding=20 :color=#555'编程：批量执行多个P图命令pitu -fpitu -f <program_file>省略 program_file 参数，默认执行文件pitu.txt中的P图命令, 如果执行其他文件，必须显式提供该参数。pitu-f
pitu-fother_pitu.txtcontent of filepitu.txt:zoom 1.jpg 0 0 300
rotate 2.jpg 45 #ff0000
flip 3.jpg y
cut 4.jpg 100 120 200 220
gray 5.jpg
text 6.jpg "hello world!" 300 100 50 #f00
pin x 7.jpg 8.jpg 9.jpg 10.jpg
pin y 7.jpg 8.jpg 9.jpg 10.jpg
avatar 11.jpg
avatar 11.jpg ex
cover 12.jpg ce 2.35
cover 12.jpg ex 16:9

text 1.jpeg "你好！ 我是 Python P图工具，我的英文名叫 pitu ！" 10 10 50 #f00
grid 1.jpeg 2.jpeg 3.jpeg 4.jpeg 5.jpeg 6.jpeg 7.jpeg 8.jpeg 9.jpeg ':rows=2 :cols=4 :width=940 :height=400 :gap=5 :padding=0 :color=#eee'
Package: pituo
pituoGo-styled errors in Python.InstallationUsing pip:pip install -U pituoUsageImport the functionpituofrom the package:frompituoimportpituoUsing decorator syntax@pituodefdivide(dividend,divisor):"""Return the result of the division between dividend and divisor.May raise a ZeroDivisionError if divisor is 0."""returndividend/divisorquotient,err=divide(1,0)iferrisnotNone:print(err)# Prints "division by zero"else:print(quotient)Wrapping the functiondefdivide(dividend,divisor):"""Return the result of the division between dividend and divisor.May raise a ZeroDivisionError if divisor is 0."""returndividend/divisordivide=pituo(divide)quotient,err=divide(4,1)iferrisnotNone:print(err)else:print(quotient)# Prints 4For more examples, see thetestsfolder.LicenseThis project is licensed under theMITlicense.
Package: pit-viper
pit-viperPit-Viper is a Python package that offers configuration management capabilities
like the Viper package in Golang.Table of ContentsInstallationUsageDevelopmentInstallationYou can installpit-viperusingpip:pipinstallpit-viperUsageEnvironment VariablesThepit-viperpackage provides theauto_envfunction that loads environment
variables from a.envfile. The function returns adictof all existing
environment variables.frompitimportviperenv=viper.auto_env()Config FilesConfig files are another config source forpit-viper. The package supports
loading, accessing, and setting defaults for a config. Supported file formats
are JSON, TOML, and YAML.frompathlibimportPathfrompitimportviperMY_CONFIG_DIR=Path()/"config"viper.set_config_path(MY_CONFIG_DIR)viper.set_config_name("my_config")viper.set_config_type("toml")viper.set("foo","default-value")viper.load_config()bar=viper.get("foo")nested_parameter=viper.get("my.nested.parameter")DevelopmentWe usePoetryfor packaging and
dependency management.
After installing Poetry, consider running the command below to configure Poetry
to create virtual environments in a folder named.venvwithin the project's
root directory.poetryconfigvirtualenvs.in-projecttrueAfterward, you can run theinstallcommand to install the dependencies
(including development requirements) specified in thepyproject.tomlorpoetry.lockfile.poetryinstallFor a more comprehensive description of the Poetry setup and commands, see
theirdocumentation.
Package: pitwi
PitwiLibrairy for create user interface in terminal/console with XML, CSS and Python.AperçuOnly Python :frompitwiimportRoot,Text(Root(width=45,height=8).add(Text('Puf',bg='white',fg='black')).add(Text('Paf'),row=2,column=2).run())Python + XML/CSS :<rootwidth="45"height="8"><style>#pwik{bg:white;fg:black;}</style><textid="pwik">Puf</text><textrow="2"column="2">Paf</text></root>frompitwiimportparserparser.file('NAME_OF_YOUR_FILE.xml').run()Weatherweather.xmlFile explorerfile_explorer.xmlExpressioncalcul.xmlRamass'herberammassherbe.xmlDocumentationText :The text is between an opening and closing tag.<tag>text</tag>The space in the beginning and the end are ignored.<tag>   pantoufle  </tag>==<tag>pantoufle</tag>The character{and}is used to use Python code online. Is same as f-string.<tag>{f"Pomme {{poire}} fraise"}</tag>==<tag>Pomme {poire} fraise</tag>The characters<,>is depreciated because XML not supported in text. Use escape character to use it.<tag>Puik \<puf\> paf</tag>Selection :PressTabto select next element andCtrl+Tabto select previous element.Colors :<root><style>object{item:color;}</style></root><root><style>.exemple{color:white;fg:blue;bg:red;border-color:yellow;active-border-color:cyan;}</style></root>DarkblackredgreenyellowbluemagentacyansilverLightgraypinklimebananamarlinviolettealwhite