Saravanan666/pypi-org huggingface dataset:
Package: photocard
photocardA Pythonic interface for TfL's Photocard service.TfL couldn't be bothered to add photocard support to their app, so I made an API for their photocard service in half a
day.
Not too difficult after all, huh?BenefitsFull read access to TfL's Photocard service11-15 Photocard supportLimitations:All API endpoints, requirelogging on.All API endpoints are read onlyLimited support for 5-10, 16+, 18+, and 60+ photocards. If you need support for these please provide screenshots of
the
network inspector calling the card endpoint for these, please open an issue in the issues tab.CLIA CLI tool is available.python -m photocardUsageLogonLogon requires email and password.Try not to get the password wrong - TfL has been known to lock you out of your account for 30 minutes if you get your
password wrong just once.Example: Getting People & CardsfromphotocardimportPhotocardServicephotocard=PhotocardService()photocard.logon(input("Enter email: "),input("Enter password: "))# Gets all people associated with the web accountpeople=photocard.get_people()forpersoninpeople:# Get cards for personcards=photocard.cards_for_person(person)# More than one card can be associated with a personforcardincards:print(f"Balance for card{card.oyster_card_number}: £{card.prepaid_balance:.2f}")# Example output (censored PII): Balance for card 0*********5: £3.50DisclaimerThis doesn't appear to break any T&C, but I'm not a lawyer, so get one to read TfL's:https://tfl.gov.uk/corporate/terms-and-conditions/
Package: photocopy
photocopyA script to archive photos off a camera to a directory.UsageWhat photocopy does is read the EXIF data from images and copy the latter to a
specified directory. The use case is that you have an SD card from your camera
and want to copy all the images/videos into specific directories by day or
month.You run it with:./photocopy.py /media/sdcard/ /home/user/Photos/and it will copy the photos to directories called "2014-03-12" by default.
Package: photocrawl
PhotoCrawl: A Photography AnalyzerA simple script to run analysis and get insight on my use of equipment and settings in my practice of photography.InstallPrerequisitesThis script runs on Python3.6.1+, and requires the following libraries:PyExifInfo,matplotlib,seaborn,pandas,pendulum,typerandloguru.
Most importantly, it also requires that you have the amazingExifToolpackage by Phil Harvey.InstallThis code is compatible withPython 3.6+.
If for some reason you have a need for it, you can simply install it in your virtual enrivonment with:pipinstallphotocrawlUsageWith this package installed in the activated enrivonment, it can be called throughpython -m photocrawlor through a newly createdphotocrawlcommand.Detailed usage goes as follows:Usage:photocrawl[OPTIONS][IMAGES]Crawlandensembleofpicturestorunanalysisoftheirmetadataandgetinsightonone's use of equipment and settings in their practice ofphotography.Arguments:[IMAGES]  Location, relative or absolute, of the images directory you wishto crawl.Options:--output-dir TEXT               Location, either relative or absolute, ofthe output directory.  [default: outputs]--show-figures / --no-show-figuresWhether or not to show figures when plottinginsights.  [default: False]--save-figures / --no-save-figuresWhether or not to save figures when plottinginsights.  [default: False]--log-level TEXT                The base console logging level. Can be'debug', 'info', 'warning' and 'error'.[default:info]--install-completionInstallcompletionforthecurrentshell.--show-completionShowcompletionforthecurrentshell,tocopyitorcustomizetheinstallation.--helpShowthismessageandexit.The script will crawl files, extract exif and output visualizations namedinsight_1.pngandinsight_2.pngin a newly createdoutputsfolder (or a folder named as you specified).Output exampleHere is an example of what the script outputs:TODOHandling raw files.Handling subfolders when looking for files.Output all insight in a single/two plot.Implement proper logging.Make into a package.Make callable as a python module (python -m photocrawl ...).Improving the command line experience.Made with ♥︎ by fsoubeletMIT © 2019 Felix Soubelet
Package: photocrypt
PhotocryptThe purpose of this project is to encrypt and decrypt photos using the AES algorithm with a one-time use 128-bit AES session key wrapped with 2048-bit RSA encryption.Project Synopsis:project_synopsis.mdDocumentation:https://photocrypt.readthedocs.io/Github:https://github.com/Kullmann/PhotocryptPypihttps://pypi.org/project/photocrypt/InstallationPackage itselfrun following command:pip3 install photocryptWith GUI Applicationfirst, install photocrypt gui dependency using following command:pip3 install photocrypt[gui]then clone repository:git clone https://github.com/Kullmann/RSAPhotoCryptography.gitRunningRun GUI Applicationfrom the root directory, run following command:python3 binRun CLI Applicationfrom the root directory, run following command:python3 bin [-h] [-i image path] [-k key path] [--encrypt] [--decrypt]arguments:-h,--helpshow this help message and exit-i[image path]image file path to encrypt/decrypt-k[key path]public key path--encryptencrypt given image using provided key--decryptdecrypt given image using provided keyexample usage:python3 bin -i samples/tuatara.jpg -k public.pem --encryptpython3 bin -i samples/tuatara_enc -k private.pem --decryptTestingtest scripts are available in tests/ directory.run following command to run tests.python3 tests/<test name>.pyRequirementsphotocrypt package requires python3.6 or above.Known BugsDouble encryption is not supported because crypto header is overwritten on encryption.ContributorsHosung LeeSean Kullmann
Package: photodedup
A Photo Deduplication ToolEver wanted to clean up duplicate photos in your hard drive and folders?photodedup is a photo deduplication tool written in Python.FeaturesUses EXIF meta data to determine duplicate photosList unique and duplicate photosCross platform – using python libraries onlyBuilds a fileindex to speed up processingInstallpipinstallphotodedupUsageusage: photodedup.py [-h] [-u] [-c] image_path

photo deduplication tool

positional arguments:
  image_path       path to image folder

optional arguments:
  -h, --help       show this help message and exit
  -u, --unique     list unique images
  -c, --cache      find from cache instead of diskExamplesList duplicate photosphotodedup.py  /path/to/photosList unique photosphotodedup.py-u/path/to/photosBy default, each time we will scan the source directory. If you want to
use results from the previous scan, add -c to query from cache instead
of diskphotodedup.py-c/path/to/photosphotodedup.py-uc/path/to/photosChangelogv0.2 - 2017-10-02Reimplement fileindex using setsSupport only python 3 for nowRemove -d flags, defaults lists duplicatesBegin publishing packages to pypiTODOsupport python 2
Package: photo-dl
photo-dlphoto-dl is a command-line downloader which helps to crawl photo albums fromSupported sitesInstallationDependenciespython >= 3.5requests >= 2.12.0lxml >= 3.7.0Install via Pip$ pip install --upgrade photo-dlInstall from source$ git clonehttps://github.com/windrises/photo-dl.git$ cd photo-dl$ python setup.py installUsageAssign a url or .txt file (one url per line)$ photo-dl  url$ photo-dl xxx.txtExamples$ photo-dlhttps://www.meituri.com/t/1820/$ photo-dl urls.txtConfigurationmodify photo_dl/config.pyconfigurationdefaultheadersUser-Agent...timeout15 secmax_retries3log_file./log.txtthreads4Supported sitesTemporarily only supports two sitessitefeatureexamplehttps://www.meituri.com/modelhttps://www.meituri.com/t/1820/albumhttps://www.meituri.com/a/7893/searchhttps://www.meituri.com/search/鏈夋潙鏋剁磾https://www.jav.ink/tag/search/categoryhttps://www.jav.ink/category/graphis-collection-2002-2018/[NSFW]albumhttps://www.jav.ink/graphis-collection-2002-2018/yura-kano-銆巗weet-memories銆弙ol-2/[NSFW]
Package: photofind
photofindAfindworkalike for scanning directories detecting image files, reading and filtering selected EXIF data tags.geolocation filterThe --distance filters image files based on the distance between the given GPS coordinates and the EXIF GPS data in the scanned image files.command lineUsage: photofind [OPTIONS] [DIRECTORY]

  Scan DIRECTORY for image files, printing filenames and selected EXIF data

Options:
  -r, --recurse              descend into subdirectories
  -f, --file_filter TEXT     regex pattern to select filenames
  -t, --include_filter TEXT  regex pattern to select EXIF tags (default is
                             all)
  -T, --exclude_filter TEXT  regex pattern to exclude EXIF tags (default is
                             '.*[tT]humbnail.*|EXIF MakerNote|Filename' use
                             '\.^' to exclude nothing
  -j, --format-json          output as JSON
  -c, --compact              compact output
  -n, --no_exif              output only files with no EXIF data
  -d, --distance TEXT        filter output by distance given
                             LATITUDE,LONGITUDE,METERS in decimal
                             (include_filter must include GPS data
  --data / --no-data         output EXIF data
  --help                     Show this message and exit.
Package: photofs
photofsphotofsis an application that allows you to mount the tags in the photo
database fromShotwellas directories
in a virtual file system.UsageTo add directories for all tags under$PHOTOFS_PATH, run the following
command:photofs $PHOTOFS_PATHAfter this,$PHOTOFS_PATH/Photoswill contain directories for all photo
tags, and$PHOTOFS_PATH/Videoswill contain directories for all video tags.Runphotofs--helpfor a list of all command line arguments.How do I change the names of photos and videos?photofswill use the title of an image as file name. If the image does not
have a title, the exposure time will be used. If more than one image is shot at
the same time, the file names will be made unique by appending(1),(2)etc.
to the file name.Runphotofs--helpto see how to change the time format used.Release Notes1.3 - Flat presentationAdded support for flat presentation of images and videos.Corrected crash when aShotwellimage does not exist in the file system.1.2.1 - BugfixesCorrected data corruption when multiple threads access same handle1.2 - Support for multiple architecturesChanged FUSE library to one with support for multiple architectures1.1.1 - BugfixesReadded missing support for reading link targetsOptimised file listing to avoid checking all files1.1 - Allow File SyncAdded support for syncing database fileAdded support for using temporary database file1.0 - Initial ReleaseBasic support forShotwellFUSE file system
Package: photog
Photog!Photog! turns a directory tree of source images into a beautiful
photography website that maximizes the ease of both viewing and
downloading the pictures.Photog! was created byReturn to the SourceforSuper Formosa Photographyand provided here for everyone to use under the terms of theAGPLlicense as part of ourfree and open source philosophy.FeaturesPhotog! stands on the shoulders of giants.The thumbnails are displayed in a responsive gallery that
recalculates the correct image dimensions in an aesthetically
pleasing way, thanks to the algorithm fromhttps://github.com/ptgamr/google-image-layout.Clicking a thumbnail opens thePhotoSwipegallery by@dimsemenov, with the
following features of its own:Touch gesturesBrowser History APIProgressive loadingFullscreen supportShare buttonAdding/all.zipto the end of the URL will download a ZIP file
containing all the images in two different resolutions:The original images, unmodified, in the subfolder "print"Images scaled to a width of 2000 pixels, in the subfolder "web"The default template shows the logoSuper Formosa Photographyat the top and license terms at the bottom. To override this, see
the section "Customization" below.InstallationPhotog! requires Python 3.8 or higher. You can check if this is
available on your system by running the following command:$ python3 --versionNow you can install Photog! withpip:$ python3 -m pip install photogUsageFirst, navigate to your Pictures directory:$ cd ~/PicturesNow, run thephotogcommand, specifying the current directory (.)
as its argument:$ photog .Photog! will now traverse your pictures folder and generate HTML files
, image thumbnails, and zipfiles. If you want to only update a
specific subdirectory and not regenerate the entire website, runphotogwithout arguments inside that directory:$ cd ~/Pictures/wedding
$ photogThe difference is that without arguments, Photog! will not create astaticdirectory to hold the static files. Otherwise the two
previous commands are identical.After Photog! has completed its run, you can use Python's built-in
webserver to view your website:$ python3 -m http.serverYour website will now be available at the following URL:http://localhost:8000/ConfigurationYou can configure the behavior of Photog! in a file calledphotog.ini. This file holds the configuration variables per
directory. The configuration variables are:Sortingsort = ascendingto sort photos ascending according to EXIF datesort = descendingto sort photos descending according to EXIF datesort = randomto randomize the order of photosZippingzip = truecreates a zipfile calledall.zipzip = falsedisables the creation of zipfilesCustomizationIt is expected that you customizethe default template. Save this
file astemplate.htmlin the root of your Pictures folder and edit
as needed. Then, runphotogto use your customized template instead
of the default one.
Package: photogrammetry-photos-pipeline
photogrammetry-photos-pipelineA pipeline to prepare jpeg photos for photogrammetry reconstruction, with:dehazinghe-2009: Single Image Haze Removal Using Dark Channel Priormeng-2013: Efficient Image Dehazing with Boundary Constraint and Contextual Regularizationcalibrating with external GPX coordinatesInstallpip install photogrammetry-photos-pipelineRunphotogrammetry-photos-pipeline \
    --images /path/to/orig/*.JPG \
    --output /path/to/output \
    --dehaze he-2009|meng-2013 \
    --gpx /path/to/track.gpxDependencieshe-2009 method was copied fromhttps://github.com/He-Zhang/image_dehazemeng-2013 method fromhttps://pypi.org/project/image-dehazer/coordinates-label-photos from coordinates-label-photosLicenseMITAuthorAlexandre Masselot
Package: photo-grid
Software Page (zzlab.net)User ManualGet StartedInstallation (Windows users)The easiest way to install Rasterio in Windows is to build it from binaries. (see theofficial instructionfor further details)Please download correct versions of.whlfromRasterioandGDAL, and usepipto install them.
For example, if you want to run GRID in64-bitWindows 10 using Python3.9,
the.whlnames and the commands should be:python-mpipinstallGDAL-3.4.3-cp39-cp39-win_amd64.whlpython-mpipinstallrasterio-1.2.10-cp39-cp39-win_amd64.whlInstallation (Other users)Highly recommended install GRID inCondaenvironmentpython -m pip install photo_gridLaunch GRIDJust typeGRIDin your terminal.GRIDorpython -m grid
Package: photoidmagick
Photo ID MagickPython library to automatically align and crop your photos to the correct biometric passport photo size.This library is based on the librariesface_detectionandPillow.Installation$pipinstallphotoidmagickUsage$photoidmagick-fsample_039.jpg-s1750x2250
Traceback(mostrecentcalllast):
__main__.ObliqueFacePoseException:themidsagittalfaciallinedoesn'tintersectthemidhorizontalirislineinthemiddle


$photoidmagick-fsample_039.jpg-s350x450--allow-oblique-faceOriginalPassport Photo FormatSquare Photo Format$photoidmagick-fsample_054.jpg-s400x400--allow-oblique-face
Traceback(mostrecentcalllast):
__main__.UnevenlyOpenEyelidException:therighteyeismoreopenedthanthelefteye

$photoidmagick-fsample_054.jpg-s1000x1000--allow-oblique-face--allow-unevenly-open-eyeOriginalPassport Photo FormatSquare Photo Format
Package: photo-import
A tool for importing photos from one directory into a hierarchical
folder structure in another directory based on the EXIF data of the
photos.The idea is that you’re able to sort a folder full of photos (such as
those straight off a memory card) into a navigable hierarchy like the
following:$treePhotosPhotos└──2019├──03│├──11││├──photo1.jpg││├──photo2.jpg││└──photo3.jpg│├──12││└──photo4.jpg│└──13└──04└──01├──photo5.jpg└──photo6.jpgUsageInstallationThephoto-importcommand can be installed viapipas follows:$pipinstallphoto-import$photo-import--version0.3.0UsageBasic usage is as follows:$photo-import/path/to/source/image.jpg/path/to/sorted/photos/This will moveimage.jpginto an appropriate folder within the/path/to/sorted/photos/directory, resulting in, for example,/path/to/sorted/photos/2019/03/11/image.jpg.$photo-import/path/to/photo-source/path/to/sorted/photos/This will move  all photos found within the/path/to/photo-sourcedirectory into an appropriate folder within the/path/to/sorted/photos/directory, resulting in, for example,/path/to/sorted/photos/2019/03/11/image.jpg.Further usage instructions are provided by using the--helpoption:$photo-import--helpDevelopmentRunning from sourceThere’s also a “runner” python script provided in the root of this
repository for convenience when the source code is checked out locally:$pipinstall-rrequirements.txt$pythonrunner.py--version0.3.0$./runner.py--version0.3.0Commit message formatCommit messages should conform to theconventional commitsstandard, and to
help with this you should install thecommitizentool:$pipinstall-rdev-requirements.txt$gitadd.$czcommitTestsTo run the test suite locally, usenose2for unit tests, andbehavefor
behavioural tests (Note that running behave will runpython setup.py install, installingphoto-importinto your current
environment):$pipinstall-rrequirements.txt$nose2$behave
Package: photo-importer
Photo ImporterCommand line tools for photo importing/renaming/rotatingFeatures:Media files scanTime when picture was taken detection (by EXIF, by file name, by file attributes)Media files moving/copying to configurable hierarchyLossless rotations (via exiftran or jpegtran)Photo Importer ServerStandalone web server for fast media import for headless computerFeatures:Mounted storages detection (by path mask)Storages mount/unmount (via pmount)The same as photo-importer but without consoleInstallationRequirements:Python 3.3+Supported OS:Debian based Linux (other Linux versions not officially supported, but might work)Windows 7 and aboveMacOS X and above (with brew installed, only console version)Dependencies:PyExifToolprogressbarpsutilexiftranorjpegtranpmount(only for server)pypiwin32(only for windows)Installation Options:Installing via PyPisudoaptinstallexiftranexiftoolpmountpip
sudopipinstallphoto-importerInstalling as debian packagedebuild-b
sudodpkg-i../photo-importer_1.2.0_all.debInstalling via setup.pysudoaptinstallexiftranexiftoolpmountpip
sudopipinstallPyExifToolprogressbarpsutil
sudopython3./setup.pyinstallInstalling for WindowsDownload and install python3 for you Windows distributivehttps://www.python.org/downloads/windows/Download and install exiftoolhttps://exiftool.org/Download and extract jpegtran to photo_importer folderhttp://sylvana.net/jpegcrop/jpegtran/Install with python dependenciespython-mpipinstallpypiwin32photo-importerUsageCommand-Line Interfacephoto-importer/path/to/media/filesWill process files (reanaming/rotating) in-place.photo-importer/path/to/media/files/output/pathWill import (by default move, but it can be changed in config) files from /path/to/media/files to /output/path with date hierarchy creation and reanaming/rotatingWeb Interfaceattach usb-drive / usert memory cardopenhttp://servername:8080click "Mount"click "Import"click "Unmount"Windows command linecdphoto_importer
run.py-c..\photo-importer-win.cfgpath\to\media\files\output\pathWindows webphoto-importer-server.batConfigurationThe server config file located in /etc/photo-importer.cfgCommand line tool config file located in ~/.photo-importer.cfgAlso config file can be specified by mean of -c command line option.For options details see comments in the config file.AcknowledgementsThanks to everyone who tested and gave advice.Bug reports, suggestions and pull request are welcome!
Package: photokml
photokmlGenerates a .kml geoindex of photographs based on GPS information in EXIF tags.Run it on a bunch of photos, load up the .kml in Google Earth, and click the icons
to view your pictures. Screenshot:usage: photokml.py [-h] [-x MAXWIDTH] [-y MAXHEIGHT] [-b BUNCHUP]
                   FILE [FILE ...]

Generates a .kml geoindex (on stdout) of photographs based on GPS information
in EXIF tags.

positional arguments:
  FILE

optional arguments:
  -h, --help            show this help message and exit
  -x MAXWIDTH, --maxwidth MAXWIDTH
                        Limit picture display width to N pixels (1200 by
                        default)
  -y MAXHEIGHT, --maxheight MAXHEIGHT
                        Limit picture display height to N pixels (700 by
                        default)
  -b BUNCHUP, --bunchup BUNCHUP
                        Form clusters of pictures within N meters of eachother
                        (10 by default)
Package: photoLA
This is a library and a set of executable scripts to perform estimates of leaf area from photographs of leaves with a reference object with known area.To install and run this package, OpenCV version 3.1 or higher is required. Unfortunately due the complexity to package it automatically, OpenCV has to be installed
separatedly.OpenCV instalationThe easiest way to install OpenCV is installing the Anaconda distribution fromhttps://www.continuum.io/downloads(Select Python 2.7 version) and then opening
the command prompt/terminal and running the following command:For Windowsconda install -c menpo opencvFor UNIXconda install opencvAlternativelly, you can go tohttp://opencv.orgto find out different options to install it.As of now, this package is fairly minimal and restrict to a single approach. Howerver, it does not mean that it won’t be further updated.Small bugs are expected, so if you find any, please report to the author.This is still a work in progress, requiring some polishing to improve user-friendliness, but the core idea is sound and effective.Next steps include the addition of tutorials and extensive documentation to assist on the usage.Any questions or suggestions, feel free to contact the author one of the e-mail addressmatheus.boni.vicari@gmail.com
Package: photo-layout
根据图像进行排版。比如排成二行三列的布局。安装pip install photo-layout对象相关描述Canvas(width=None, height=None, color="white", is_del_extra=False)width: 画布的宽度。height: 画布的高度。color: 画布的颜色。默认为白色white。is_del_extra：是否删除画布中额外多出的部分。LayoutModel(canvas=Canvas, imagePath=None, row, column, space=10)canvas:Canvas对象。imagePath：本地的图片路径。row：行数。column：列数。space：间距。默认为10。示例一fromphoto_layout.layoutimportCanvas,LayoutModelfromphoto_layout.imageimportLayoutImagedefmain():canvas=Canvas(color="pink")layout_model=LayoutModel(canvas=canvas,imagePath="test.jpg",row=3,column=3,space=10)layout_image=LayoutImage(layout=layout_model)image=layout_image.create()image.show()if__name__=='__main__':main()效果图如下：当然你也可以调用image.save("imgs/example1.jpg")来保存到本地。示例二根据图片来填充整个画布.fromphoto_layout.layoutimportCanvas,LayoutModelfromphoto_layout.imageimportLayoutImagedefmain():canvas=Canvas(width=2000,height=800,color="pink")layout_model=LayoutModel(canvas=canvas,imagePath="test.jpg",space=10)layout_image=LayoutImage(layout=layout_model)image=layout_image.create()image.show()if__name__=='__main__':main()效果图如下：示例三根据图片来填充整个画布.
通过设置is_del_extra=True来删除画布额外多出的部分。fromphoto_layout.layoutimportCanvas,LayoutModelfromphoto_layout.imageimportLayoutImagedefmain():canvas=Canvas(width=2000,height=800,color="pink",is_del_extra=True)layout_model=LayoutModel(canvas=canvas,imagePath="test.jpg",space=10)layout_image=LayoutImage(layout=layout_model)image=layout_image.create()image.show()if__name__=='__main__':main()效果图如下：