Saravanan666/pypi-org huggingface dataset:
Package: pibooth
Thepiboothproject provides a photobooth applicationout-of-the-boxin pure Python
for Raspberry Pi. Have a look to thewikito discover some realizations from GitHub users, and don’t hesitate to send us
photos of your version.FeaturesInterface available in Danish, Dutch, English, French, German, Hungarian, Norwegian, Portuguese (Portugal and Brazil) and Spanish (customizable)Capture from 1 to 4 photos and concatenate them in a final pictureSupport all cameras compatible with gPhoto2, OpenCV and Raspberry PiSupport for hardware buttons and lamps on Raspberry Pi GPIOFully driven from hardware buttons / keyboard / mouse / touchscreenAuto-start at the Raspberry Pi startupAnimate captures from the last sequence during idle timeStore final pictures and the individual capturesPrinting final pictures using CUPS server (printing queue indication)Custom texts can be added on the final picture (customizable fonts, colors, alignments)Custom background(s) and overlay(s) can be added on the final pictureAll settings available in a configuration file (most common options in a graphical interface)Highly customizable thanks to its plugin system, you can installplugins developed by the community from PyPIor develop your own plugin.DocumentationPluginsHere is a list of known plugins compatible with PiboothPibooth organisation’s pluginpibooth-picture-templatepibooth-google-photopibooth-sound-effectspibooth_dropboxpibooth-qrcodepibooth-extra-lightsThird-party pluginsThird-party plugins can be found on GitHub or onplugins on PyPI.
Here is a short list:pibooth-lcd-displaypibooth-neopixel_spipibooth-telegram-uploadpibooth-s3-uploadSponsorsAn enormous thanks to our sponsors:@andhey@philipbarwi@laurammiller@neilrenfrey@agrovistaIt means a lot to us!
Package: pibooth-dropbox
pibooth-dropboxis a plugin for thepiboothapplication.Its permits to upload the pictures to aDropboxfolder. It requires an
internet connection.Install$ pip3 install pibooth-dropboxConfigurationHere below the new configuration options available in thepiboothconfiguration.The keys and their default values are automatically added to your configuration after firstpiboothrestart.[DROPBOX]# Dropbox folder where pictures are uploaded. Subfolders can be separated by /album_name=Pibooth# Dropbox Application Keyapp_key=# Dropbox Application Passwordapp_secret=NoteEdit the configuration by running the commandpibooth--config.Picture URLUploaded picture URL is set toapp.previous_picture_urlattribute at the end ofprocessingstate (state_processing_exithook).Warningfor security reason, URL will expire in 4 hours.Grant secured accessAccess to a Dropbox is granted by an APP_KEY and an APP_SECRET that shall be defined
in the configuration. These are not your Dropbox credentials and it can not be used
by an other application than the one defined in Dropbox.com.Go to Dropbox App Consoleand click on theCreate appbutton.UnderChoose an APIsection, select Scoped Access.
UnderChoose the type of accessyou need, select Full Dropbox.
Enter an application name (for instanceMy Awsome Photo Booth).Click theCreate appbutton. You will be redirected to the
console for your app. Note the presence of your App key and App secret
on this page. You will need to enter these intopiboothconfiguration file once you have followed the remaining steps.Add the OAuth Redirect URIhttp://localhost:35880/to your
Dropbox app settings under the OAuth2 Redirect URIs section.Click on thePermissions tabthen select thefiles.content.writeandfiles.content.readpermissions in order to allowpiboothto upload pictures on your Dropbox. Finallyclick the Submit buttonat the bottom of the page for the new permissions to take effect.NoteAt the first connection, allowpiboothto useDropboxin
the opened web browser window.
Package: pibooth-extra-lights
pibooth-extra-lightsis a plugin for thepiboothapplication.It adds 3 extra lights:startup: light on atpiboothstartupsequence: light on during the entire capture sequenceflash: light on when the capture is takenInstall$ pip3 install pibooth-extra-lightsConfigurationHere below the new configuration options available in thepiboothconfiguration.The keys and their default values are automatically added to your configuration after firstpiboothrestart.Thephysical pin numberingis used.[CONTROLS]# Physical GPIO OUT pin to light a LED at pibooth startup (list of pins accepted)startup_led_pin=29# If True, startup LED is lighting by setting pin(s) to HIGH else by setting to LOWstartup_led_active_high=True# Physical GPIO OUT pin to light a LED during the entire capture sequence (list of pins accepted)preview_led_pin=31# If True, preview LED is lighting by setting pin(s) to HIGH else by setting to LOWpreview_led_active_high=True# Physical GPIO OUT pin to light a LED when the capture is taken (list of pins accepted)flash_led_pin=33# If True, flash LED is lighting by setting pin(s) to HIGH else by setting to LOWflash_led_active_high=TrueNoteEdit the configuration by running the commandpibooth--config.States descriptionHere is thepibooth state sequenceupdated with the lights activated by this plugin:Circuit diagramHere is the diagram for hardware connections.
Package: pibooth-fire-remote
pibooth-fire-remoteRemote Control with bluetooth RemoteInstallpip install pibooth-fire-remoteThe default settings are mapped to my fire stick gen 1 remote.
Map your bluetooth remote using the quick start manual from evdev.$ python -m evdev.evtestConfiguration[FIRE-Remote]deviceenterBtnbackBtnsettingsBtnhomeBtnupdownleftrightplaypauseforwardbackwardCurrent button mapping:enterBtn: Take PicturesettingsBtn: Open Menuforward: Print
Package: pibooth-flashled
pibooth-flashledpibooth-flashledis a plugin for thepiboothapplication.It adds a flash with warm white and cold white when the capture is taken.Installpip3 install pibooth-flashled
    
sudo systemctl enable pigpiod
sudo systemctl start pigpiodConfigurationBelow are the new configuration options available in thepiboothconfiguration.The keys and their default values are automatically added to your configuration after firstpiboothrestart.[FLASH]

# Physical GPIO OUT pin to light a warm white LED strip
warmwhite_pin = 12
    
# Physical GPIO OUT pin to light a cool white LED strip
coolwhite_pin = 13
		
# The white balance (warm white, cool white) in percent
white_balance = (50, 50)

# The brightness in percent
brightness = 50
		
# How long is the fade light in milliseconds (0 to skip it)
fade_delay = 1000Edit the configuration by running the commandpibooth --config.Circuit diagramHere is the diagram for hardware connections.
Package: pibooth-google-photo
pibooth-google-photois a plugin for thepiboothapplication.Its permits to upload the pictures to aGoogle Photosalbum. It requires an
internet connection.Install$ pip3 install pibooth-google-photoConfigurationHere below the new configuration options available in thepiboothconfiguration.The keys and their default values are automatically added to your configuration after firstpiboothrestart.[GOOGLE]# Album where pictures are uploadedalbum_name=Pibooth# Credentials file downloaded from Google APIclient_id_file=NoteEdit the configuration by running the commandpibooth--config.Picture URLUploaded picture URL is set toapp.previous_picture_urlattribute at the end ofprocessingstate (state_processing_exithook).Warningfor security reason, URL will expire in 1 hour.Grant secured accessAccess to a Google Photos album is granted by aCredentials filethat shall
be defined in the[GOOGLE][client_id_file]configuration key. This file does
not contain your Google credentials and it can not be used by an other application
thanpibooth.It contains theGoogle PhotosAPI key (Client ID and Client Secret) generated
by following the instructions:Go to Google Photos Library APIand click onEnable the Google Photos Library API.Enter a project name (for instancepibooth) and click onNEXT.Enter a text to be displayed on user consent page when you will
startpiboothwithpibooth-google-photoenabled for the
first time (for instancePibooth) and click onNEXT.Select the application type:Desktop app.and click onCREATE.Download the credential file, save it somewhere accessible bypiboothand click onDONE.The content of theCredentials filelooks like this:{"installed":{"client_id":"8723982792-sdjfhdkjhvfkd76.apps.googleusercontent.com","client_secret":"HJAHZhjhi_HJI789798giEdPIbJ","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://www.googleapis.com/oauth2/v3/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}NoteAt the first connection, allowpiboothto useGoogle Photosin
the opened web browser window.
Package: pibooth-nextcloud
pibooth-nextcloudis a plugin for thepiboothapplication.This plugin adds the photo upload to aNextcloud ServerIt requires an internet connection to workInstall$ pip3 install pibooth-nextcloudConfigurationThis is the extra configuration options that can be added in thepiboothconfiguration):[NEXTCLOUD]# Enable upload on  Nextcloudactivate=True# URL of server to uploadhost_nextcloud=https://<Server nextcloud># Root directory where Nextcloud stores photosrep_photos_nextcloud=Photos# Album where pictures are uploadedalbum_name=suubdir# User login for nextcloud accountuser_nextcloud=user_nextcloud# User password for nextcloud accountpass_nextcloud=pwd_nextcloudNoteEdit the configuration by running the commandpibooth--config.Note
Package: pibooth-qrcode
pibooth-qrcodeis a plugin for thepiboothapplication.It adds the display of a custom qrcode at the print and wait stateInstall$ pip3 install pibooth-qrcodeConfigurationHere below the new configuration options available in thepiboothconfiguration.The keys and their default values are automatically added to your configuration after firstpiboothrestart.[QRCODE]# URL which may be composed of variables: {picture}, {count}prefix_url=https://github.com/pibooth/pibooth# Foreground colorforeground=(255, 255, 255)# Background colorbackground=(0, 0, 0)# Optional text displayed close to the QR codeside_text=# Offset (x, y) from locationoffset=(20, 40)# Location on 'wait' state: topleft, topright, bottomleft, bottomright, midtop-left, midtop-right, midbottom-left, midbottom-rightwait_location=bottomleft# Location on 'print' state: topleft, topright, bottomleft, bottomright, midtop-left, midtop-right, midbottom-left, midbottom-rightprint_location=bottomrightNoteEdit the configuration by running the commandpibooth--config.QR code URLThe URL linked to the QR code can be define dynamically using some state variables or configuration
options. Available variables to forge the URL are:picture: current picture filenamecount: current counters. You can access to values using{count.xxx}(see counters
in configuration menu)url: URL defined in theapp.previous_picture_urlattribute. This attribute can be
defined by another plugin.For instance,https://photos.google.com/share/AxFF4t56kiJiu89m/{picture}will generate:https://photos.google.com/share/AxFF4t56kiJiu89m/2021-06-11-10-14-08_pibooth.jpgQR code locationsHere is the possible QR code location at screen:ExampleHere is an example of the rendering you can get with this plugin on the wait screen:
Package: pibooth-s3-upload
pibooth-s3-uploadpibooth-s3-uploadis a plugin for thepiboothapplication.Permits upload of pictures to anAWS S3bucket. Plugin requires an internet connection.Install$ pip3 install pibooth-s3-uploadConfigurationBelow are the new configuration options available in thepiboothconfiguration.The keys and their default values are automatically added to your configuration after firstpiboothrestart.[S3]

# AWS Access Key
aws_access_key =

# AWS Secret Key
aws_secret_key =

# AWS S3 bucket name for uploading files
s3_bucket_name =

# (Optional) Path prefix within AWS S3 bucket (ex: some-event-name/)
s3_prefix =NoteEdit the configuration by running the commandpibooth --config.
Package: pibooth-sound-effects
pibooth-sound-effectsis a plugin for thepiboothapplication.It adds sound effects to the application:When pressing on the first menu –> clickWhen selecting a layout –> clickDuring the countdown –> countdownWhen entering the “thank you” menu –> applauseSounds can be customized (see below).Install$ pip3 install pibooth-sound-effectsConfigurationHere below the new configuration options available in thepiboothconfiguration.The keys and their default values are automatically added to your configuration
after firstpiboothrestart.[SOUNDS]# Path to the sounds foldersounds_path=~/.config/pibooth/soundsNoteEdit the configuration by running the commandpibooth--config.Customize soundsSound files shall be.wavand have the name of the state in which it shall be played (e.g. {state}.wav).
If you want to play the sound in loop, just add “_loop” in the name (e.g. {state}_loop.wav).For example at theprintlevel:
- if it exists, the sound namedprint.wavwill be played once, when entering the state
- if it exists, the sound namedprint_loop.wavwill be played in loop until the state is left.Custom sounds can be added by adding or replacing existing sound files of the sounds folder
(by default~/.config/pibooth/sounds) with custom ones.Specific featuresIn addition to the standard{state}.wavand{state_loop}.wavstates, other sound files are accepted inpreviewstate:if you have a preview sound (preview.wavfile), then it will play when entering the state,if you want to play the same sound for each time of the countdown, name it aspreview_countdown.wav,if you want to play different sounds for each time of the countdown, simply add corresponding files in the sound folder (e.g.:3.wav,2.wav,1.wav)NoteThese specific sounds are cut to be 1 second long, and if some are missing, it will be replaced either bypreview_countdown.wav(if it exists) or one second of silence.
Package: pibooth-stillimage-camera
pibooth-stillimage-camerapibooth-stillimage-camerais a plugin for thepiboothapplication.It provides a fake camera 'capturing' still images with a dummy text 'Still image for tests' writen in a customizable color, and background color.It has no use in a real booth scenario, but this way anyone can test the app, even whithout having an actual camera attached!This project was mostly a first try at cracking at pibooth using a plugin, so as to see how easy it is to interact with it, and try to provide feedback on the general structure of the project. It also actually enables testing of all the other parts without much work!InstallThis plugin is published on Pypi, so you can use:$ pip3 install pibooth-stillimage-cameraOtherwise, as per other pibooth plugins, you can clone this repository, and add/path/to/pibooth_stillimage_camera.pyto[GENERAL]pluginslist in pibooth.cfg.ConfigurationYou need to setdebug = Truein[GENERAL]for the plugin to kick in.Optional colors customization (and occasional eye bleed):[CAMERA]
  dummy_background = blue
  dummy_foreground = yellow
Package: pibooth-telegram-upload
pibooth-telegram-uploadpibooth-telegram-uploadis a plugin for thepiboothapplication.Install$ pip3 install pibooth-telegram-uploadConfigurationBelow are the new configuration options available in thepiboothconfiguration.The keys and their default values are automatically added to your configuration after firstpiboothrestart.[Telegram]

# Telegram bot token
telegram_token =

# Chat/Channel id
telegram_chat_id =

# Message to show when sending the picture
telegram_message =NoteEdit the configuration by running the commandpibooth --config.
Package: piboso
This module contains a fully-standalone implementation of the PIBOSO
tagger that won the ALTA2012 Shared task [1]. The features and algorithms
used are described in [2].InstallingThe tagger (including a pre-trained model) is packaged as a Python module
and distributed via pypi. Installing it should be as simple aspip install pibosoDependencieshydrat [3] - automatically installed by pip
TreeTagger [4] - must be manually installedConfigurationThe path to the folder in which treetagger is located must be specified
in configuration file. When invoked,piboso_tagwill attempt to locate
a configuration file at ~/.pibosorc and ./.pibosorc. If neither exists,
it will generate a blank configuration file at ./.pibosorc. The path
to treetagger should be set in this configuration file.An alternative location for reading the configuration file can be specified
with the-ccommand-line option.Using the taggerThe tagger can be invoked with the scriptpiboso_tag, that is automatically
installed when the package is installed with pip. The simplest invocation ispiboso_tag -o <OUTPUT_PATH> <FILE TO TAG> <FILE TO TAG> …If no files are specified on the command line,piboso_tagwill read STDIN
and interpret each line as a path to a file to be tagged. More detailed
information about invokingpiboso_tagcan be obtained by invokingpiboso_tag –helpFiles are assumed to be sentence tokenized and presented in a sentence-per-line
format. The output produced bypiboso-tagis in a CSV format, for example:subsample/1454068-1,background
subsample/1454068-2,background
subsample/1454068-3,outcome
subsample/1454088-1,background
subsample/1454088-2,background
subsample/1454088-3,background
subsample/1454088-4,backgroundThe first item in each record is the path of the file and the sentence number
separated by a dash. Sentences are enumerated from 1. The second item is the
label assigned to the sentence.ContactMarco Lui <mhlui@unimelb.edu.au>[1]http://alta.asn.au/events/sharedtask2012/[2]http://aclweb.org/anthology-new/U/U12/U12-1019.pdf[3]http://hydrat.googlecode.com[4]http://www.ims.uni-stuttgart.de/projekte/corplex/TreeTagger/
Package: pibrary
PibraryPibrary framework: A package for reusable code for ML projectsInstallationpipinstallpibraryUsagefrompibrary.fileimportFilefrompibrary.loggerimporttimeitfrompibrary.stringimportString# File Classdataframe=File(file_path).read().csv()File(file_path).write(dataframe).csv()json_data=File(file_path).read().json()File(file_path).write(json_data).csv()pickle_data=File(file_path).read().pickle()File(file_path).write(pickle_data).csv()# Logger@timeitdefsome_function(...):...# String Classnew_text=String(text).lower().remove_digits().remove_punctuation().strip()DocumentationThe full documentation of Pibrary is available athttps://pibrary.readthedocs.io/en/latest/.ContributingContributions are welcome! Please readCONTRIBUTINGfor details on how to contribute to this project.LicenseThis project is licensed under the terms of theMIT license.
Package: pibronic
—-A python package that handles the creation of vibronic models using
ACESII and VIBRON as well as the calculation of thermodynamic properties
using those vibronic models.The package provides an implementation of a PIMC method that calculates
thermodynamic properties of quantum mechanical systems described by
vibronic models (Hamiltonians in the diabatic representation).It includes scripts to generate vibronic models using the computational
packages ACESII and VIBRON.Additional scripts are provided for: - submitting and managing jobs in a
server environment running SLURM. - collating and processing output from
the PIMC calculations - plotting the processed dataCurrently undergoing refactoring, specifically file I/O and
fileStructure Ancillary code will be uploading in the near future The
main PIMC simulation code is provided in minimal.pyIn Progress: - plotting code and analysis code - increasing coverage of
tests - third pass on posprocessing - inject file_name and
file_structure into older modulesTo do list: - refresh jackknife - refresh server code - write basic
tests of server code - Create discrete numerical test case to verify
jackknife output - prune vibronic_model_io - integrate FileStructure
with electronic_structure - clean up server job submission scriptsLong term goals: - clean up jackknife - provide model systems - generate
test date for fixed rng seeds - appveyor?ThanksThis package wouldn’t have been possible without the help ofDmitri
Iouchtchenko
Package: pic2map
Pic2Map is tool to gather GPS metadata from picture files and display it in a map.Free software: MIT licenseDocumentation:https://pic2map.readthedocs.org.FeaturesAdd location information for pictures under directory to databasepic2mapadd<directory>Remove location information for pictures under directory from databasepic2mapremove<directory>Count how many files have been indexedpic2mapcountLaunch web server to display map and a marker for each picturepic2mapserveHistory0.1.0 (2015-04-23)First release on PyPI.
Package: pic2prose
pic2proseA package that can take in images and build a corpus and produce nlp datastructures for direct use in experimentation and model training.Take any image with text, use p2p to generate NLP datastructures ready for use in fine-tuning LLM's, generating embeddings, sentiment classification, etc.Installationpip install pic2proseOpen up your favorite editor, import, and build a robust corpus.from pic2prose.structures import *

# initialize the object
# may take longer if you're not using a GPU
corpus = Corp(image_path="ex1.png")

# generate co-occurrence matrix
corpus.get_co_occurrence_matrix()

# generate tf-idf matrix
corpus.get_tfidf_matrix()

# one-hot encodings
corpus.one_hot_encode()Coming SoonSupport for building corpi from URL
Package: pic2slide
Python Slide Tools - pic2slidePython project to convert pictures collection to slide.Free software: MIT licenseDocumentation:https://pic2slide.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-08-13)First release on PyPI.
Package: pic2square2icon
2 functions that provide convenient and efficient ways to resize images to a square with custom backgrounds and convert images to the ICO formatpip install pic2square2iconTested against Windows 10 / Python 3.10 / AnacondaThe functions resize_with_background and pic2ico can be used by developers or individuals who work with
image processing or need to manipulate images for various purposes. Here are some potential use cases for each function:resize_with_background:Graphic designers who want to resize an image to a specific size (square) while maintaining its aspect ratio and adding a backgroundWeb developers who need to generate thumbnail images with a consistent size and background for their websites.Content creators who want to resize and add a background to their images for social media posts (instagram or facebook timeline) or presentations.pic2ico:Software developers who need to convert image files to the ICO (icon) format for use in applications or software interfaces.Designers who want to create custom icons from their existing image assets.System administrators or IT professionals who need to generate ICO files for use as desktop icons or shortcuts.frompic2square2iconimportresize_with_background,pic2icoimportcv2test=1fg=r"C:\test\fg.png"bg=r"C:\test\bg.png"target_size=512resized_image=resize_with_background(fg,target_size,bg)pic2ico(src=resized_image,dst=rf"C:\test\{test}.ico")resized_image.save(rf"C:\test\{test}.png")test=2fg=r"C:\test\fg.png"bg="orange"target_size=512resized_image=resize_with_background(fg,target_size,bg)pic2ico(src=resized_image,dst=rf"C:\test\{test}.ico")resized_image.save(rf"C:\test\{test}.png")test=3fg=r"C:\test\fg.png"bg=(255,255,0)target_size=512resized_image=resize_with_background(fg,target_size,bg)pic2ico(src=resized_image,dst=rf"C:\test\{test}.ico")resized_image.save(rf"C:\test\{test}.png")test=4fg=r"C:\test\bg.png"bg=cv2.imread(r"C:\test\fg.png")target_size=512resized_image=resize_with_background(fg,target_size,bg,background_ratio=2)pic2ico(src=resized_image,dst=rf"C:\test\{test}.ico")resized_image.save(rf"C:\test\{test}.png")test=5fg=r"C:\test\fg.png"bg=Nonetarget_size=512resized_image=resize_with_background(fg,target_size,bg,background_ratio=2)resized_image.save(rf"C:\test\{test}.png")pic2ico(src=resized_image,dst=rf"C:\test\{test}.ico")bg.pngfg.png1.png2.png3.png4.png5.png