Saravanan666/pypi-org huggingface dataset:
Package: picchick
picchickpicchickis a command-line utility used for programming and debugging
microcontrollers.The function is the same asavrdude, i.e. to provide a way to flash a compiled
.hex file onto a microcontroller.The latest documentation is available in thedocs/folder, or hosted online
atrex.mckinnon.ninja/picchickInstallationRequirementspython >= 3.10pyserialCompatible serial programmerCheckout the docs for a list of compatible programmers.From PyPipicchickcan be installed using pip:$pipinstallpicchick
$picchick-hFrom SourceBuilding the latest git version is as simple as pip installing the repo
directory. The -e, --editable flag can be added so agit pullwill update thepicchickcommand automatically.$gitclonehttps://github.com/Rex--/picchick.git
$cdpicchick/
$pipinstall[-e].
$picchick-hInstead of installing the package,picchickcan also be run as a python module:$python-mpicchick-hA wrapper script is provided that does this, providing a bit cleaner interface:$chmod+xpicchick.sh
$./picchick.sh-hNOTE: You may have to install pyserial for the above methods.Usage$picchick-h
usage:picchick[-d<mcu>][-c<programmer>][-r<addr>[len]|-w<addr><word>|-f][-e[addr]][-v][hexfile]picchick[-d<mcu>][--map|--list-ports][hexfile]Autilityforprogramminganddebuggingmicrocontrollers.

positionalarguments:hexfilepathtoahexfile

options:-cprogrammertypeofprogrammer-dmcu,--devicemcudevicetobeprogrammed-h,--helpprintthismessageandexitactions:-r,--readaddr[len]readbytesfromspecifiedaddress-w,--writeaddrwordwritewordtospecifiedaddress-f,--flashflashhexfileontothedevice-e,--erase[addr]erasedeviceorspecifiedaddress-v,--verifyverifydevicememory--mapdisplaythehexfile--list-portslistavailableserialportsResourcesDocumentation:https://rex.mckinnon.ninja/picchickGithub:https://github.com/rex--/picchickPyPi:https://pypi.org/project/picchick/CopyingCopyright (C) 2022 Rex McKinnonThis software is released under the University of Illinois/NCSA
Open Source License. Check the LICENSE file for more details.
Package: pic-chrono
PicChronoDescriptionA python package helping you to archive your photos. It renames the photos based on the date and time they were taken.PrerequisitesBefore you begin, ensure that you have the following prerequisites installed:Python (version 3.10 or higher), refer topython's websiteto install it.pip, refer topip's official documentationto install it.InstallationInstall the package using pip:pipinstallpic-chronoorpipinstallgit+https://github.com/kondakoffer/PicChronoIt is recommended to use a virtual environment to install the package (seehere).UsageOnce the package is installed, you can use it as a command line tool or as a python package.As command line toolThe intended usage is as command line tool. You can use it as follows:PicChrono[OPTIONS]SOURCE_PATH[DESTINATION_DIR][ERROR_DIR]SOURCE_PATH: The path to the directory containing the photos you want to rename. You can also specify a single file by using its path.DESTINATION_DIR: The path to the directory where you want to save the renamed photos. If not specified, the photos will be stored in the current directory.ERROR_DIR: The path to the directory where you want to save the photos that could not be renamed. If not specified, the photos will be stored in the current directory.Options--help: Show the help message and exit.-vor--version: Show the version number and exit.As python packageIt is also possible to integrate the package into your own python code by using the typical python import statement:importpic_chronoIf you only want to use the functionalities with renaming the photos, you can import theRenameclass:frompic_chrono.renamerimportRenameTroubleshootingIf you encounter any issues or errors, here are a few troubleshooting tips:Double-check that package is installed correctly.Consult the project's documentation or issuetrackerfor common troubleshooting steps.If the issue persists, feel free to open a new issuehere.ContributingAny contributions are welcome!
Please follow thecontributing guidelinesand thecode of conduct.LicenseThis project is licensed under theMIT-LICENSE.
Please review the license terms before using the project.
Since this project uses other packages, you must also agree and follow their license agreements. You can find the license agreements of the packages used in theNOTICES.mdfile.AcknowledgementsSince this project uses other software and packages, we would like to thank the authors of these for their work.
This includesPoetry,Python,Pillow,Typer,rich,pytest,pytest-cov,black,coverage-badge.
Package: piccol
piccol - PICk COLorsColor picker and translator.HomepageGit repositoryGithub repositoryDescriptionPiccol is a graphical tool to pick a pixel color from anywhere on the screen and then show the color details asRGB decimal notationRGB hex notationHLS decimal notationand as written text (e.g. "very saturated light blue")The RGB and HLS values can also be altered via sliders to create a correspondingly colored pixel.Image importImages can be imported to piccol to analyze the image pixels.License / CopyrightCopyright (C) Michael Büschm@bues.chThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Package: piccolo
Piccolo is a fast, user friendly ORM and query builder which supports asyncio.Read the docs.FeaturesSome of it’s stand out features are:Support for sync and async.A builtin playground, which makes learning a breeze.Tab completion support - works great with iPython and VSCode.Batteries included - a User model, authentication, migrations, anadmin GUI, and more.Modern Python - fully type annotated.Make your codebase modular and scalable with Piccolo apps (similar to Django apps).SyntaxThe syntax is clean and expressive.You can use it as a query builder:# Select:awaitBand.select(Band.name).where(Band.popularity>100)# Join:awaitBand.select(Band.name,Band.manager.name)# Delete:awaitBand.delete().where(Band.popularity<1000)# Update:awaitBand.update({Band.popularity:10000}).where(Band.name=='Pythonistas')Or like a typical ORM:# To create a new object:b=Band(name='C-Sharps',popularity=100)awaitb.save()# To fetch an object from the database, and update it:b=awaitBand.objects().get(Band.name=='Pythonistas')b.popularity=10000awaitb.save()# To delete:awaitb.remove()InstallationInstalling with PostgreSQL driver:pipinstall'piccolo[postgres]'Installing with SQLite driver:pipinstall'piccolo[sqlite]'Installing with all optional dependencies (easiest):pipinstall'piccolo[all]'Building a web app?Let Piccolo scaffold you an ASGI web app, using Piccolo as the ORM:piccoloasginewStarlette,FastAPI,BlackSheepandLitestarare currently supported.Are you a Django user?We have a handy page which shows the equivalent ofcommon Django queries in Piccolo.DocumentationOur documentation is onRead the docs.We also have some greattutorial videos on YouTube.
Package: piccolo-admin
Piccolo AdminPiccolo Admin is a powerful admin interface / content management system for Python, built on top of Piccolo.It was created at a design agency to serve the needs of customers who demand a high quality, beautiful admin interface for their websites. It's a modern alternative to tools like Wordpress and Django Admin.It's built using the latest technologies, with Vue.js on the front end, and a powerful REST backend.Some of it's standout features:Powerful data filteringBuiltin securityMedia support, both locally and in S3 compatible servicesDark mode supportCSV exportsEasily create custom formsWorks on mobile and desktopUse standalone, or integrate it easily with ASGI apps like FastAPI, and StarletteMultilingual out of boxBulk actions, like updating and deleting dataFlexible UI - only show the columns you want your users to seeTry itTry it online(username: piccolo, password: piccolo123).Local DemoTo run a demo locally, using Python 3.8 or above:pipinstallpiccolo_admin
admin_demoAnd then just launchlocalhost:8000in your browser.To see what happens behind the scenes, seepiccolo_admin/example.py.In a few lines of code we are able to:Define our modelsSetup a databaseCreate a REST APISetup a web server and admin interfaceASGISince the admin is an ASGI app, you can either run it standalone like in the demo, or integrate it with a larger ASGI app such as FastAPI and Starlette.For example, using Starlette routes:frompiccolo_admin.endpointsimportcreate_adminfromstarlette.routingimportRouter,Routeimportuvicornfrommy_project.tablesimportDirector,Movie# The `allowed_hosts` argument is required when running under HTTPS. It's used# for additional CSRF defence.admin=create_admin([Director,Movie],allowed_hosts=['my_site.com'])router=Router([Route(path="/",endpoint=Hello),Mount(path="/admin/",app=admin),])if__name__=='__main__':uvicorn.run(router)Full docsFull documentation is available onRead the docs.
Package: piccolo-api
Piccolo APIUtilities for easily exposingPiccolotables as REST endpoints in ASGI apps, such asStarletteandFastAPI.Includes a bunch of useful ASGI middleware:Session AuthToken AuthRate LimitingCSRFContent Security Policy (CSP)And moreIt also contains excellent Pydantic support, allowing you to easily create Pydantic models based on your Piccolo tables.You can read the docshere.
Package: piccolo-docker
piccolo_dockerEasily spin up databases for your Piccolo project using DockerRequirementsInstall poetryInstall dockerSetupClone this repoOpen.envAdd database nameAdd password. If you don't a random password will be generated that can be seen withdocker inspect --format="{{index .Config.Env 0}}" your_container_nameChange the unique container name if you don't want to use the defaultTo add use this app to your Piccolo project, add it to yourAppRegistryinpiccolo_conf.pywith:APP_REGISTRY = AppRegistry(apps=["piccolo_docker.user.piccolo_app"])Usagepiccolo dockerdb createcreates new postgres container with your piccolo database.piccolo dockerdb stopstops the docker container.piccolo dockerdb startstarts the docker container.piccolo dockerdb destroydestroys the docker container. This is irreversible.TestsSimply run:pytest -vv tests/For thenoxtests you'll probably need pyenv and all versions of python that are declared insidenoxfile.pyImprovementsTest against multiple versions of postgresTest against more versions of python.To ContributeFork the repoHave a look aroundMake sure you installpre-commitDo a small PR for early feedbackEnjoy!
Package: piccolo-theme
Piccolo ThemeA clean and modern Sphinx theme.DocsSeeRead the docs.TypographyRoboto is used for the body copy, and Roboto Mono for code snippets. As these
fonts belong to the same family, they look nice together. Both of them are
also highly legible on small screens.We use bold, easy to read headers.Note- this isn't a Material Design theme. The aim is to create a nice
theme, with our own aesthetic preferences, rather than implementing Google's
Material Design spec.Code docsWe make your autodoc code snippets nice and legible:This even works for C and C++ files viabreathe.Dark mode, and darkest mode!We have a gorgeous dark mode 🥷:And for users with OLED displays, we have the 'darkest' mode - where the
backgrounds are pure black 🧛‍♂️:Other design featuresOptimised for mobile and web.A header bar gives the design a splash of colour.Simple but elegant design.ContributingBuilding stylesIn the root of the project:npm install -g sassThen:./scripts/build-styles.sh
Package: piccup
piccup[EXPERIMENTAL]Render HTML from Python using plain data structures, inspired by Clojure's Hiccup.Installationpip install piccupUsagepiccup allows you to write HTML using plain Python data structures.>>>p.html(['p','hello'])'<p>hello</p>'Each HTML node is defined using[element, attributes, contents]triple.elementstring is required,attributesdict andcontentsobject are optional.>>>p.html(['a',{'href':'http://example.com'},'Click Me'])'<a href="http://example.com">Click Me</a>'Nested HTML nodes are passed tocontents.>>>p.html(['ul',[['li','first'],['li','second'],['li','third']]])'<ul><li>first</li><li>second</li><li>third</li></ul>'piccup uses simple data structures, so you can write normal Python code instead of a foreign templating language.>>>p.html(['ul',[['li',{'class':'link-item'},['a',{'href':'http://example.com/{}'.format(e)},e]]forein['item1','item2','item3']]])'<ul><li class="link-item"><a href="http://example.com/item1">item1</a></li><li class="link-item"><a href="http://example.com/item2">item2</a></li><li class="link-item"><a href="http://example.com/item3">item3</a></li></ul>'
Package: pic-diff-recognizer
Pic-Diff-RecognizerPic-Diff-Recognizer 中文文档Selenium plugin library based on image difference recognition and page intelligent exploration.installationpip install -r requirements.txt

pip install pic-diff-recognizerbest practicefrom pic_diff_recognizer.searchHandler import SearchHandler
from violent_webdriver import Chrome
from selenium.webdriver.chrome.options import Options


# add some useful options :)
chrome_options = Options()
chrome_options.add_argument("--headless")
chrome_options.add_argument("disable-infobars")
chrome_options.add_experimental_option("excludeSwitches", ['enable-automation'])

# init driver , executable_path should be your own path!
dr = Chrome.violent_chromedriver(chrome_options=chrome_options,
                                 executable_path='/usr/local/bin/chromedriver')

# init searchHandler
search_handler = SearchHandler(browser=dr)

# search and saving baseline images in current directory named baseline
search_handler.traverse_href(origin_url='https://gitbook.cn/gitchat/author/5cea0bfbb78cc870612d8bba')

# -------------------- assuming after some iterations of current project -----------------------------

search_handler.url_histories = []

# load baseline images
search_handler.picture_handler.load_base_line()

# search and comparing screen shots and baseline images
search_handler.traverse_href(origin_url='https://gitbook.cn/gitchat/author/5cea0bfbb78cc870612d8bba',
                             compare_baseline_and_screen_shots=True)

# generate_diff_between_base_line_and_screen_shot and output diffResults to current directory
search_handler.picture_handler.generate_diff_between_base_line_and_screen_shot()

# output testReport.txt to current directory
search_handler.picture_handler.export_picture_comparison_result()contact meemail address：523314409@qq.com
Package: picea
piceaLightweight python library for working with trees and sequence collectionspip install piceaThe above figure can be generated with the following codefrompiceaimportTree,treeplotimportmatplotlib.pyplotaspltnewick='(((a,b),(c,d)),e)'tree=Tree.from_newick(newick)fig,(ax1,ax2)=plt.subplots(ncols=2,figsize=(10,4))#left-to-right layout with direct linkstreeplot(tree,style='rectangular',ltr=True,ax=ax1)#right-to-left layout with square linkstreeplot(tree,style='square',ltr=False,ax=ax2)
Package: picframe
PictureFrame powered by pi3dPictureFrame powered by pi3dWhat Is PictureFrame?History of PictureFrameHighlights of PictureFrameDocumentationAcknowledgementWhat Is PictureFrame?This is a viewer for a raspberry powered picture frame. For remote control it provides an automatic integration intoHome Assistantvia MQTT discovery.https://github.com/helgeerbe/picframePaddy Gaunt, Jeff Godfrey, Helge ErbeLicence: MITTested on rasberry 3B+/4, Ubuntu 20.10 and Python 3.7History of PictureFrameWhen I started 2019 my DIY project building a raspberry powered digital picture frame I came across Wolfgang's websitewww.thedigitalpictureframe.com. I ran my frame with thepi3d PictureFrame2020.pyviewer, but always missed a more deeply integration to my smart home server runningHome Assistant.As my personel corona project I decided to rewrite the viewer to my needs. Hoping  someone can make use of it.Highlights of PictureFrameViewerblend effectsauto mat generationphoto metadata overlays (title, location, date, ...)live clockautomatic pairing of portrait imageskeyboard, mouse and touch screen supportFilter byIPTC tagslocationdirectoriesdateRemote Controlcontrol interface for mqtt, http(s)tun on/off displaynext/prev/pause imageshuffle playtoggle metadata overlaystoggle clock visibilityretrieve image meta info (exif, IPTC)DocumentationFull documentation can be found at the project's wiki.Please note that PictureFrame may change significantly during its development.
Bug reports, comments, feature requests and fixes are most welcome!To find out what's new or improved have a look at thechangelog.AcknowledgementglenvorelThanks for the new keyboard, mouse and touch screen support.Many Thanks to Wolfgangwww.thedigitalpictureframe.comfor your inspiring work.A special Thank to Paddy Gaunt one of the authors of thepi3dproject. You are doing a great job!Last but no least a big Thank You to Jeff Godfrey. Your auto mat feature and database driven cache is an outstanding piece of code.
Package: picharsso
PicharssoA utility for converting images to text art.Installation|Documentation|Examples|ContributingInstallationRun the following command:pipinstallpicharssoThis will:download and install thepicharssoPython package(along with its dependencies).create an executable,picharsso, for the CLI (command line interface).VerificationTo verify that Picharsso is installed, run:python-c"import picharsso"CommandsPicharsso ships with a CLI that provides some basic functionality from the terminal.UsageRun the following command to display a helpful message:picharsso-hUsage: picharsso [options] <command> [args]

  A utility for converting images to text art.

Options:
  -h, --help  Show this message and exit.

Commands:
  draw  Generate text art from an image.
  info  Displays package information.Consider the following image:Apple Computer [Rob Janoff, 1977]To convert an image to text art, run:picharssodraw-c-H32<path/to/image>gradientHere's what it should look like:BreakdownArgumentEffect-cApplyimage colorsto the output text.-H 32Sets thenumber of linesof the output text to32.gradientUse thegradient style.Don't forget to replace<path/to/image>.Refer to theCLI documentationto learn about the variouscommandsandarguments.LibraryThe example from the previous section can be implemented in just a few lines of Python:fromPILimportImagefrompicharssoimportnew_drawerif__name__=="__main__":# Open imageimage=Image.open("<path/to/image>")# Define drawerdrawer=new_drawer("braille",height=32,colorize=True)# Print drawer outputprint(drawer(image))Here's what it should look like:StylesRefer to theStyles documentationfor an in-depth guide to theimage processing behind Picharsso.Now consider this animated GIF:Nyan CatWith some more lines of code, you can animate GIFs in text!importtimefromPILimportImagefrompicharssoimportnew_drawerfrompicharsso.utilsimportclear_screen,terminal_sizeif__name__=="__main__":# Open imageimage=Image.open("<path/to/image>")# Get terminal heightheight,_=terminal_size()# Define drawerdrawer=new_drawer("braille",height=height,colorize=True,threshold=0)# Iterate over framestexts=[]forframe_idinrange(image.n_frames):# Select frameimage.seek(frame_id)# Save output for frametexts.append(drawer(image))# Iterate over saved outputs in a circular mannernum_frames=len(texts)counter=0whileTrue:# Refreshclear_screen()# Print outputprint(texts[counter])# Set a delay between framestime.sleep(1/num_frames)# Circular incrementcounter=(counter+1)%num_framesHere's what it should look like:Refer to theAPI documentationto learn about the variousclassesandfunctions.ExamplesCheck out some moreexamples.You can use an imagedirectly from the webtoo!ContributingDo you have a feature request, bug report, or patch? Great!
Check out thecontributing guidelines!LicenseCopyright (c) 2019 Kelvin DeCosta.
Released under the MIT License.
SeeLICENSEfor details.
Package: pichromecast
PiChromecastLibrary for MicroPython to communicate with the Google Chromecast.InstallTools>Manage packages...or copy and paste codehttps://github.com/GitHub30/pichromecast/blob/main/pichromecast.pyUsagefrompichromecastimportplay_urlplay_url('https://nyanpass.com/nyanpass.mp3','192.168.10.101')Text to Speechfrompichromecastimportplay_url,create_urlplay_url(create_url('hello world','en'),'192.168.10.101')# https://gist.github.com/SpotlightKid/eca9b00239104e8c599b86635f62ab73#file-urlencode-pyfromurlencodeimporturlencodefrompichromecastimportplay_urlurl='https://translate.google.com/translate_tts?client=tw-ob&'+urlencode({'q':'Hello, 世界','tl':'ja'})play_url(url,'192.168.10.101')Connect wifi and playimportnetworkimporttimewlan=network.WLAN(network.STA_IF)wlan.active(True)wlan.connect("aterm-SSID-g","YOUR_PASSWORD")whilenotwlan.isconnected()andwlan.status()>=0:print("Waiting to connect:")time.sleep(1)frompichromecastimportplay_urlplay_url('https://nyanpass.com/nyanpass.mp3','192.168.10.101')Lookup host IP#pip install pychromecastimportpychromecastservices,browser=pychromecast.discovery.discover_chromecasts()pychromecast.discovery.stop_discovery(browser)print(services)[CastInfo(services={ServiceInfo(type='mdns',data='Google-Home-Mini-3b0a32dc5803130351919f8a286e406f._googlecast._tcp.local.')},uuid=UUID('3b0a32dc-5803-1303-5191-9f8a286e406f'),model_name='Google Home Mini',friendly_name='書斎',host='192.168.10.101',port=8009,cast_type='audio',manufacturer='Google Inc.')]or useMicroPython MDNSDemo
Package: pick
pickpickis a small python library to help you create curses based
interactive selection list in the terminal.BasicMultiselectInstallation$ pip install pickUsagepickcomes with a simple api:>>> from pick import pick

>>> title = 'Please choose your favorite programming language: '
>>> options = ['Java', 'JavaScript', 'Python', 'PHP', 'C++', 'Erlang', 'Haskell']
>>> option, index = pick(options, title)
>>> print(option)
>>> print(index)outputs:>>> C++
>>> 4pickmultiselect example:>>> from pick import pick

>>> title = 'Please choose your favorite programming language (press SPACE to mark, ENTER to continue): '
>>> options = ['Java', 'JavaScript', 'Python', 'PHP', 'C++', 'Erlang', 'Haskell']
>>> selected = pick(options, title, multiselect=True, min_selection_count=1)
>>> print(selected)outputs:>>> [('Java', 0), ('C++', 4)]Optionsoptions: a list of options to choose fromtitle: (optional) a title above options listindicator: (optional) custom the selection indicator, defaults to*default_index: (optional) set this if the default selected option
is not the first onemultiselect: (optional), if set to True its possible to select
multiple items by hitting SPACEmin_selection_count: (optional) for multi select feature to
dictate a minimum of selected items before continuingscreen: (optional), if you are usingpickwithin an existing curses application set this to your existingscreenobject.  It is assumed this has initialised in the standard way (e.g. viacurses.wrapper(), orcurses.noecho(); curses.cbreak(); screen.kepad(True))Community Projectspickpack: A fork ofpickto select tree data.