Saravanan666/pypi-org huggingface dataset:
Package: pexels-api-py
Welcome to Pexels.com API Python Library!An easy library to use pexels api.Official Documenation:https://www.pexels.com/api/documentation/API Key: API Key can be generated from official website of Pexels.com (https://www.pexels.com/api/)Installationpip install pexels-api-pyUsagePhotosPhotos & Videos Parametersquery(string - required)The search query.Ocean,Tigers,Pears, etc.orientation(string - optional)Desired photo orientation. The current supported orientations are:landscape,portraitorsquare.size(string - optional)Minimum photo size. The current supported sizes are:large(24MP),medium(12MP) orsmall(4MP).color(string - optional)Desired photo color. Supported colors:red,orange,yellow,green,turquoise,blue,violet,pink,brown,black,gray,whiteor any hexidecimal color code
(eg.#ffffff).locale(string - optional)The locale of the search you are performing. The current supported locales are:'en-US''pt-BR''es-ES''ca-ES''de-DE''it-IT''fr-FR''sv-SE''id-ID''pl-PL''ja-JP''zh-TW''zh-CN''ko-KR''th-TH''nl-NL''hu-HU''vi-VN''cs-CZ''da-DK''fi-FI''uk-UA''el-GR''ro-RO''nb-NO''sk-SK''tr-TR''ru-RU'.page(integer - optional)The page number you are requesting.Default: 1per_page(integer - optional)The number of results you are requesting per page.Default: 15Max: 80Search Photosfrompexelsapi.pexelsimportPexelspexel=Pexels('API_KEY')search_photos=pexel.search_photos(query='ocean',orientation='',size='',color='',locale='',page=1,per_page=15)print(search_photos)Curated Photosfrompexelsapi.pexelsimportPexelspexel=Pexels('API_KEY')curated_photos=pexel.curated_photos(page=1,per_page=15)print(curated_photos)Get Photofrompexelsapi.pexelsimportPexelspexel=Pexels('API_KEY')get_photo=pexel.get_photo(photo_id=10)print(get_photo)VideosSearch Videosfrompexelsapi.pexelsimportPexelspexel=Pexels('API_KEY')search_videos=pexel.search_videos(query='ocean',orientation='',size='',color='',locale='',page=1,per_page=15)print(search_videos)Popular VideosParametersmin_width(integer | optional)The minimum width in pixels of the returned videos.min_height(integer | optional)The minimum height in pixels of the returned videos.min_duration(integer | optional)The minimum duration in seconds of the returned videos.max_duration(integer | optional)The maximum duration in seconds of the returned videos.page(integer | optional)The page number you are requesting.Default: 1per_page(integer | optional)The number of results you are requesting per page.Default: 15Max: 80frompexelsapi.pexelsimportPexelspexel=Pexels('API_KEY')popular_videos=pexel.popular_videos(min_width='',min_height='',min_duration='',max_duration='',page=1,per_page=15)print(popular_videos)Get Videofrompexelsapi.pexelsimportPexelspexel=Pexels('API_KEY')get_video=pexel.get_video(video_id=10)print(get_video)
Package: pexels-cli
Pexels Crawler CLIThis is Simple CLI To Get Image With Specific TagPexelsInstallationPrerequisitesFirst you need to installPython v3.xor upper after that you need to setup thechrome driverfor Selenium Library.python3-mpipinstallgit+https://github.com/rango-tools/pexels-crawler-cliCLI OptionsThis is the list of this CLI options--folder-name                       Destination Folder name, Default: downloads
--page-count=<count>                Page Counter, Default: 0 (All Pages)
--show-browser                      Showing Browser if You Need.
--load-time=<seconds>               Infinite Scroll Time Out, Default: 5
-h --help                           Show this screen.
-v --version                        Show version.ExampleSimple example for this CLI when you want to run.# Search By Keywordpexelssearch[--options]"YOUR-KEYWORD"
Package: pexelsPy
PexelsPyA Python package form API for pexels website. All the variables in the documentation are included.Sample ProgramThis is a sample program to run in your terminal irrespective of your Operating system.frompexelsPyimportAPIPEXELS_API="YOUR-PEXELS-API"api=API(PEXELS_API)#For photosapi.search_photos('your search',page=noofpages,results_per_page=number)photos=api.get_photos()#for videosapi.search_videos('your search',page=noofpages,results_per_page=number)videos=api.get_videos()#To access the details in the variables photos and videos LOOP through the variable#for photosfordatainphotos:print(data.[Your-required-data_structure])#for videosfordatainvideos:print(data.[data_structure])
Package: pexicdb
Pexicdbpexicdb is a simple model based file database, pexicdb is a lightweight and stores
data in the folders and files, basically a folder is called container.There are 2 types of files inside containercontainer file(models stored in this)data file(contains all data about the container)pexicdb interact with the containers using model which is usually a list of fields.Install$ pip install pexicdbSimple programfrompexicdb.fieldsimportStringField,UUIDFieldfrompexicdbimportconnectuser_model={"id":UUIDField("id"),"name":StringField("name")}users=connect("users",list(user_model.values()))users.insert({"name":"Harkishan Khuva"})NOTE :The first field of any Model must be eitherUUIDFieldor anIntegerField.
Package: pexpect
Pexpect is a pure Python module for spawning child applications; controlling
them; and responding to expected patterns in their output. Pexpect works like
Don Libes’ Expect. Pexpect allows your script to spawn a child application and
control it as if a human were typing commands.Pexpect can be used for automating interactive applications such as ssh, ftp,
passwd, telnet, etc. It can be used to automate setup scripts for duplicating
software package installations on different servers. It can be used for
automated software testing. Pexpect is in the spirit of Don Libes’ Expect, but
Pexpect is pure Python.The main features of Pexpect require the pty module in the Python standard
library, which is only available on Unix-like systems. Some features—waiting
for patterns from file descriptors or subprocesses—are also available on
Windows.
Package: pexpect-executor
pexpect-executorAutomate interactive CLI tools actions to create previews or tests in Python.PreviewCLI examplespexpect-executor--help
pexpect-executor--down--down--down--down--down--space--enter--gitlabci-local-H-B
pexpect-executor--pressa--pressa--enter--gitlabci-local
pexpect-executor--ctrlc--gitlabci-localPython examples#!/usr/bin/env python3# Modules librariesfrompexpect_executorimportExecutor# ConfigureExecutor.configure(host='previews',tool='pexpect-executor')# ListExecutor('ls -la',workdir='/').\finish()# MoreExecutor('ls -la | more -5',delay_press=0.5,workdir='/').\read().\press('s').\read().\press('s').\read().\press('b').\read().\press('b').\read().\press(' ').\read().\wait(1).\press(Executor.KEY_ENTER).\read().\wait(1).\press('q').\finish()# PromptExecutor('').\finish()UsageCommandpexpect-executorAutomate interactive CLI tools actionsInternal arguments-h, --helpShow this help message--versionShow the current versionConfiguration arguments--delay-init SECSDelay the initial action execution (in s, default: 1.0)--delay-press SECSDelay the press actions execution (in s, default: 0.5)--delay-prompt SECSDelay the prompt actions execution (in s, default: 1.0)--hold-promptHold the prompt execution without a new line--host HOSTConfigure the host name (default: preview, env: EXECUTOR_HOST)--tool TOOLConfigure the tool name (default: executor, env: EXECUTOR_TOOL)--workdir WORKDIRUse a specific working directory pathActions arguments--upPress the <UP> key--downPress the <DOWN> key--leftPress the <LEFT> key--rightPress the <RIGHT> key--enterPress the <ENTER> key--spacePress the <SPACE> key--press KEYPress the specified <KEY>--ctrl KEYPress the specified Ctrl+<KEY>--readRead the buffered data output (forced)--wait SECSWait the specified time (in s, example: 1.0)--finishFinish the execution (forced)Positional argumentscommandCommand arguments to execute (use -- to separate)Supported systemsSystemsSupportedLinux (shell)✓macOS (shell)?Windows (shell)~Android (Termux)✓Dependenciescolored: Terminal colors and stylespexpect: Interactive console applications controllersetuptools: Build and manage Python packageswexpect: Windows alternative of pexpectReferencesgit-chglog: CHANGELOG generatorgitlab-release: Utility for publishing on GitLabgitlabci-local: Launch .gitlab-ci.yml jobs locallyPyPI: The Python Package Indextermtosvg: Record terminal sessions as SVG animationstwine: Utility for publishing on PyPI
Package: pexpect-nm
Pexpect is a Pure Python Expect-like modulePexpect makes Python a better tool for controlling other applications.Pexpect is a pure Python module for spawning child applications; controlling
them; and responding to expected patterns in their output. Pexpect works like
Don Libes’ Expect. Pexpect allows your script to spawn a child application and
control it as if a human were typing commands.Pexpect can be used for automating interactive applications such as ssh, ftp,
passwd, telnet, etc. It can be used to a automate setup scripts for duplicating
software package installations on different servers. It can be used for
automated software testing. Pexpect is in the spirit of Don Libes’ Expect, but
Pexpect is pure Python. Unlike other Expect-like modules for Python, Pexpect
does not require TCL or Expect nor does it require C extensions to be compiled.
It should work on any platform that supports the standard Python pty module.
The Pexpect interface was designed to be easy to use.If you want to work with the development version of the source code then please
read the DEVELOPERS document in the root of the source code tree.Free, open source, and all that good stuff.http://pexpect.sourceforge.net/PEXPECT LICENSEThis license is approved by the OSI and FSF as GPL-compatible.http://opensource.org/licenses/isc-license.txtCopyright (c) 2012, Noah Spurrier <noah@noah.org>
PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY
PURPOSE WITH OR WITHOUT FEE IS HEREBY GRANTED, PROVIDED THAT THE ABOVE
COPYRIGHT NOTICE AND THIS PERMISSION NOTICE APPEAR IN ALL COPIES.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Package: pexpectparser
Pexpect ParserA parser using the parsegrammar library to
create automated bots for command line programs.ExamplesAn example of this code can be found in the following projects:VPN BotGithubInstallationPip installation is reccommendedpip install -u pexpectparserOr if you are using PipEnvpipenv shell
pipenv install pexpectparserUsageImportimport pexpectParser as ppCreating Classparser = pp.Parser(<Grammar>)where<Grammar>is a Grammar Object from the Parse Grammar Library.API Usageprocess = parser.run()wheretype(process)is<class 'pexpect.pty_spawn.spawn'>,meaning thatprocessis an object returned frompexpect.spawn(<cmd>)where<cmd>is the start symbol of<Grammar>for more information about<Grammar>objects, seeparsegrammarErrors that can be thrown:Timeout ErrorClasspexpect.exceptions.TIMEOUTEOF ErrorClasspexpect.exceptions.EOFDependenciesThis project has the following dependencies:Parse Grammar LibraryGithubPypi
Package: pexpect-py3-fork
Pexpect is a pure Python module for spawning child applications; controlling
them; and responding to expected patterns in their output. Pexpect works like
Don Libes’ Expect. Pexpect allows your script to spawn a child application and
control it as if a human were typing commands.Pexpect can be used for automating interactive applications such as ssh, ftp,
passwd, telnet, etc. It can be used to a automate setup scripts for duplicating
software package installations on different servers. It can be used for
automated software testing. Pexpect is in the spirit of Don Libes’ Expect, but
Pexpect is pure Python.The main features of Pexpect require the pty module in the Python standard
library, which is only available on Unix-like systems. Some features—waiting
for patterns from file descriptors or subprocesses—are also available on
Windows.
Package: pexpect-py3-patch
Pexpect is a pure Python module for spawning child applications; controlling
them; and responding to expected patterns in their output. Pexpect works like
Don Libes’ Expect. Pexpect allows your script to spawn a child application and
control it as if a human were typing commands.Pexpect can be used for automating interactive applications such as ssh, ftp,
passwd, telnet, etc. It can be used to a automate setup scripts for duplicating
software package installations on different servers. It can be used for
automated software testing. Pexpect is in the spirit of Don Libes’ Expect, but
Pexpect is pure Python.The main features of Pexpect require the pty module in the Python standard
library, which is only available on Unix-like systems. Some features—waiting
for patterns from file descriptors or subprocesses—are also available on
Windows.
Package: pexpect-serial
IntroductionThis is like pexpect, but it will work with serial port that you
pass it. You are reponsible for opening and close the serial port.
This allows you to use Pexpect with Serial port which pyserial supports.Usageimportserialfrompexpect_serialimportSerialSpawnwithserial.Serial('COM1',115200,timeout=0)asser:ss=SerialSpawn(ser)ss.sendline('start')ss.expect('done')LicenseMIT
Package: pexpect-serialspawn
Serial spawn for pexpectInteract with serial devices using pexpect.Usageimportserialfrompexpect_serialspawnimportSerialSpawn# Initialize your serial deviceser=serial.Serial('COM1',115200)# Spawn a pexpect objectss=SerialSpawn(ser,encoding='utf-8')# Use as any other pexpect spawns...ss.sendline('Hello')ss.expect('World')
Package: pexpect-serial-terminal
IssuePySerial does not have POSIX fileno attribute on Windows platform. If you want to use pexpect and serial device on Windows platform, you must use something like this:importosimportpexpect.fdpexpectdevice=pexpect.fdpexpect.fdspawn(os.open("COM3",os.O_RDWR))But using this method cannot change the baud rate or data bits or etc. And you have to deal with the serial device's input/output buffered stuff. It's very annoying.Main IdeaCreate a simple terminalpexpect-serial-terminalfor serial device. And we can use it with pexpect package. Thepexpect-serial-terminalwill send input to the device and get output from the device continuously.InstallationInstall from PyPI:pip install pexpect-serial-terminalInstall directly. Clone this repository, and then:pip install .Verify Serial Device With ModuleUse the help command to find out the parameters.> python -m pexpect_serial_terminal -h

The option and option's parameter list below:
Ex:
        __main__.py -p COM3 -b 115200

-l | --line-ending
        [ default value: LF ]
        < LF | CR | CRLF >
        Device line ending.
-p | --port
        [ default value: None ]
        Serial port name.
-b | --baud-rate
        [ default value: 115200 ]
        Baud rate.
-w | --data-bits
        [ default value: 8 ]
        < 8 | 7 >
        Data bits.
-r | --parity
        [ default value: None ]
        < None | Even | Odd | Space | Mark >
        Parity.
-s | --stop-bits
        [ default value: 1 ]
        < 1 | 2 | 1.5 >
        Stop bits.
-x | --soft-flow-ctl
        [ default value: off ]
        < on | off >
        Software flow control switch.
-f | --hard-flow-ctl
        [ default value: off ]
        < on | off >
        Hardware flow control switch.Use this terminal to verify the serial device. This terminal is too simple to do the terminal well. It doesn't have input buffer to manipulate the content, so it doesn't support dos key function. I strongly suggest you should only use this terminal for testing or automatic script, don't use it as pure terminal.python -m pexpect_serial_terminal -p COM3Exit the terminalCtl+CHow To Use It With Pexpect?You can also see the tests folder for thepytest examplewith this module.start the child process on Windows:import sys
from pexpect.popen_spawn import PopenSpawn

process = PopenSpawn('cmd.exe', timeout=3)
command = f'{sys.executable} -m pexpect_serial_terminal -p COM3'
process.sendline(command)start the child process on Linux:import sys
from pexpect.popen_spawn import PopenSpawn

process = PopenSpawn('/bin/bash', timeout=3)
command = f'{sys.executable} -m pexpect_serial_terminal -p /dev/ttyUSB0'
process.sendline(command)do your own pexpect stuff:prompt = r'\w+@.+:.+[#\$]'
process.sendline('date')
process.expect(prompt, 3)
process.before
process.afterexit the terminal:process.write('\x03')
Package: pexpect-u
NoteDevelopment of Pexpect-U has stopped. The changes which motivated it - Python
3 support and unicode awareness, are now inPexpect, although the API is a bit
different. Please use Pexpect instead of this fork.Pexpect-U is a fork of Pexpect,
a pure-Python module to control interactive programs running in a virtual terminal.Pexpect-U is unicode-aware, and compatible with Python 3 (using distribute to
run 2to3 during setup). It requires Python 2.6 or above.
Package: peyecoder
peyecoderAn open-source program for coding eye movements.RunningIf peyecoder has been installed from PyPI usingpip install peyecoderthen peyecoder can be run using the installed
scriptpeyecoder-gui.If the code repository has been downloaded from GitHub, run peyecoder from the project directory:python run-peyecoder.pyAlternatively, a single-file executable of peycoder can be downloaded from a GitHub release.DependenciesPySide2: Qt for Pythonopencv-python-headless: Computer vision library used to read videostimecode: library for SMTPE timecode computationsPyAudio: library used to playback audiosortedcontainers: data structures which maintain sort orderpython-dateutil: date utilitiesadditionally,ffmpegshould be installed and in the path.Citing PeyecoderOlson, R. H., Pomper, R., Potter, C. E., Hay, J. F., Saffran, J. R., Ellis Weismer, S., & Lew-Williams, C. (2020). Peyecoder: An open-source program for coding eye movements. Zenodo.http://doi.org/10.5281/zenodo.4313832
Package: peyotl
peyotl is a python package written to make it easier to
interact with the software produced by theOpen Tree of Life project.
Specifically, to:interact with a local version of thephylesystemrepository ofcurated phylogenetic studies ;call web services associated with the studies (served by web apprunning thephylesystem apicode);call web services associated with taxonomic resolution services(runningtaxomachine);call web services associated with Open Tree of Life’s “synthetic” estimateof the tree of life (runningtreemachine);call web services associated with an annotation database (thatwe have not built yet)Currently peyotl is used to implement most of the functionality in thephylesystem apibackend of the study curation tool.Instructionsvirtualenv pey
. pey/bin/activate
pip install -r requirements.txt
python setup.py develop
python setup.py testperforms the basic installation and test. For full(er) documentation, check out thewiki.ThanksThanks toNSFandHITSfor funding support.peyotl is primarily written by Mark Holder, Emily Jane McTavish, and Jim Allman,
but see theCONTRIBUTORSfile for a more complete list
of people who have contributed code.The fabulousKarl Gudecreated the logo.Several parts of the setup.py, logging, documentation, and test suite were
based on Jeet Sukumraran’s work in theDendroPypackage.The sortattr.xslt stylesheet (which is only used in round-trip testing) is fromhttp://stackoverflow.com/questions/1429991/using-xsl-to-sort-attributesThe peyotl.phylesystem.git_actions (and the tests) were a part of the api.opentreeoflife.orgrepo which was primarily the work of Duke Leto (at that time).Jim Allman, Karen Cranston, Cody Hinchliff, Mark Holder, Peter Midford, and Jonathon Rees
all participated in the discussions that led to the NexSON mapping.The peyotl/test/data/nexson/phenoscape/nexml test file is fromhttps://raw.github.com/phenoscape/phenoscape-data/master/Curation%20Files/completed-phenex-files/Characiformes/Buckup_1998.xmlPhenoscape file (download),NESCent[Feb 16, 2014] The citation for the data is in the nexml doc itself.Etymology: According to Wikipedia, peyotl is the Nahuatl word forLophophora williamsii.
Package: peyutil
<code>peyutil</code> is a package of basic utility functions that is used by
the deconstructed packages that used to make up [peyotl](https://github.com/OpenTreeOfLife/peyotl).
This package probably not of great use to external developers by itself, it
is a prerequisite for the peyotl package.Instructionspython3 -mvenv env
source env/bin/activate
pip install -r requirements.txt
python setup.py develop
python setup.py testperforms the basic installation and test.ThanksThanks toNSFandHITSfor funding support.peyutil is primarily written by Mark Holder, Emily Jane McTavish, and Jim Allman,
but see theCONTRIBUTORSfile for a more complete list
of people who have contributed code.
Package: pez
# PEZ - Python P(r)e-(Seriali)z(ation)A python library for serializing python objects from their internalrepresentation to something that can be displayed externally. e.g. This willtransform a python object into a dictionary.This can include mapping field names, transforming, and selectively displayingdata.[![Build Status](https://secure.travis-ci.org/balanced/pez.png?branch=master)](http://travis-ci.org/balanced/pez)## Installationpip install pez## Exampleimport pezimport json# Your internal object e.g. a modelclass Internal(object):field1 = 123field2 = 1field3 = 2# How you want to expose the model to the worldclass InternalView(pez.FieldMapping):# pez.Field echos the object as it is.field1 = pez.Field()# A static method such as this can allow you to customize the data# returned.@staticmethoddef calculated_field(ctx, o):return o.field2 + o.field3# create an instance of the serialize and map views to models via the# register methodpre_serialize = pez.Serializer()pre_serialize.register(Internal, InternalView())# calling our serializer with an instance of a class will return a# serializable object (e.g. a dictionary)pre_serialize(Internal())See `./examples/` for more examples including how to use with an ORM, how touse with Flask, and other more advanced use cases.## WhyPEZ allows you to separate the internal representation of data from yourexternal view. This is handy for all sorts of scenarios:* Renaming internal fields without breaking external interfaces* Hiding or transforming internal data when exposing it* Adding information to views that doesn't belong in your data models, e.g. URL information## Contributing1. Fork it2. Create your feature branch (`git checkout -b my-new-feature`)3. Write your code **and unit tests**4. Ensure all tests still pass (`nosetests`)5. [PEP8](http://pypi.python.org/pypi/pep8) your code6. Commit your changes (`git commit -am 'Add some feature'`)7. Push to the branch (`git push origin my-new-feature`)8. Create new pull request
Package: pezzo
Pezzo ClientPezzo is the open-source LLMOps platform built for developers and teams. In just two lines of code, you can seamlessly troubleshoot your AI operations, collaborate and manage your prompts in one place, and instantly deploy changes to any environment.InstallationTo use the Pezzo client with OpenAI:pipinstallpezzoopenaiUsageThe Pezzo Documentation contains useful information on how to use the Pezzo client. It covers various use cases such as prompt management, observability, variables, properties, and more.Check out the Pezzo DocumentationLearn more💡What is Pezzo?🕹️Tutorial: Prompt Management📈Tutorial: Observability📚Pezzo SDK DocumentationLicenseThepezzolibrary is provided under the Apache 2.0 licesnse.