Saravanan666/pypi-org huggingface dataset:
Package: exhaustive-weighted-random-sampler
ExhaustiveWeightedRandomSamplerExhaustiveWeightedRandomSampler can exhaustively sample the indices with a specific weight over epochs.Installationpipinstallexhaustive-weighted-random-samplerUsage & Comparasionimporttorchfromtorch.utils.dataimportWeightedRandomSamplerfromexhaustive_weighted_random_samplerimportExhaustiveWeightedRandomSamplersampler=WeightedRandomSampler([1,1,1,1,1,1,1,1,1,10],num_samples=5)foriinrange(5):print(list(sampler))"""output:[4, 3, 9, 3, 4][0, 5, 0, 9, 8][9, 9, 0, 9, 2][9, 9, 7, 9, 9][9, 9, 9, 9, 9]explain: there are no 1 and 6, but 0 appears three times"""sampler=ExhaustiveWeightedRandomSampler([1,1,1,1,1,1,1,1,1,10],num_samples=5)foriinrange(5):print(list(sampler))"""output:[4, 6, 9, 9, 9][1, 0, 9, 9, 5][9, 7, 3, 8, 9][9, 2, 1, 9, 9][8, 9, 7, 3, 2]explain: all the 0 to 8 appears in the yield results."""Use in DDPIt can be used inDDPifpytorch-ignitehas been installed.fromignite.distributedimportDistributedProxySamplerfromtorch.utils.dataimportDataLoaderdataset=...sampler=DistributedProxySampler(ExhaustiveWeightedRandomSampler(weights,num_samples=10000))loader=DataLoader(dataset,sampler=sampler,...)
Package: exhbma
Exhaustive Search with Bayesian Model Averaging (ExhBMA)Installationpip install exhbmaDocumentationUser documentation is availablehere.
You can try sample notebooks in thetutorialsdirectory.Reference paperIf you use this package in your research, please cite the following paper where the package was originally introduced:"Data integration for multiple alkali metals in predicting coordination energies based on Bayesian inference".BibTeX entry:@article{obinata2022data,
  title={Data integration for multiple alkali metals in predicting coordination energies based on Bayesian inference},
  author={Obinata, Koki and Nakayama, Tomofumi and Ishikawa, Atsushi and Sodeyama, Keitaro and Nagata, Kenji and Igarashi, Yasuhiko and Okada, Masato},
  journal={Science and Technology of Advanced Materials: Methods},
  volume={2},
  number={1},
  pages={355--364},
  year={2022},
  publisher={Taylor \& Francis}
}
Package: exheader
exheaderThis is a simple python library allowing to load, modify and save 3ds exheader files.
Not all settings are supported (those will throw an exception on load) or easily modifyable yet.InstallationRun the following to install:pipinstallexheaderUsagefromexheaderimportExheaderexh=Exheader()# Load exheader from filef_in=open('exheader.bin','rb')exh.unpack_from(f_in.read())f_in.close()# Print the application titeprint(exh.sci.app_title)# Change the application titleexh.sci.app_title='MyApp'# Print allowed SVCsprint(exh.aci.arm11_kernel_caps.svcs)# Add SVC 0x70exh.aci.arm11_kernel_caps.svcs.add(0x70)# Write modified exheader to filef_out=open('exheader_out.bin','wb')f_out.write(exh.pack())f_out.close()
Package: exhibition
Exhibition - A Python Static Site GeneratorSay it right:/ɛgs’hɪb’ɪʃ(ə)n/So something like:eggs hib ish’nWhat?A static site generatorWhere?Download:https://pypi.org/project/exhibition/Source:https://github.com/moggers87/exhibitionDocs:https://exhibition-ssg.readthedocs.io/en/latest/License?GPLv3 or later. See LICENSE for the actual text.Why though?I’d been usingHydefor a number of years, eventually that project stopped
receiving updates. Hyde had very limited test coverage, many features that I
didn’t personally use, and no Python 3 support.  This combination made the
prospect of maintaining Hyde daunting, so forking was out of the question.In the end, I wrote Exhibition as other available static site generators would
either require massively rewriting the sites I already had or weren’t flexible
enough to generate the same URL structure.What’s the status of this project?There are tests, there’s some documentation, and I currently use it for a
number of websites, including my personal blog.Please feel free to add your site tothe wikiif it uses Exhibition, but
please make sure its safe for work and not covered in adverts.ContributionsI’m always looking for contributions, whether they be bug reports, bug fixes,
feature requests, new features, or documentation. Also, feel free to open issues
for support requests too - these are very helpful in showing me where
documentation is required or needs improving.Code Of ConductThe Exhibition project has adopted the Contributor Covenant Code version 1.4. By
contributing to this project, you agree to abide by its terms.The full text of the code of conduct can be foundhereFundingIf you have found Exhibition to be useful and would like to see its continued
development, please considerbuying me a coffee.
Package: exhibitor2dns
Exhibitor2dns will keep a round-robin A record in sync with the state of a
Zookeeper ensemble managed by the excellentExhibitorsupervisorfrom
Netflix.  This is particularly useful if your Zookeeper nodes are in an
autoscaling group, or any other setup where you don’t have fixed IP addresses
for your Zookeeper servers.Usage:exhibitor2dns --zone=yourzone.example.com \
              --exhibitor_url=http://your-exhibitor-endpoint.example.com/ \
              --rr=zookeeperexhibitor2dns uses Boto to interact with Route53, so you have various options
for providing aws credentials.  You can setAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYenvivonment variables, or if exhibitor2dns is running
on an ec2 instance it will try to use the instance’s IAM role if there is one
available.  See theBoto documentationfor more details.
Package: exia
exia - PDB preparation toolexia is a command-line tool for preparing protein structure data in the PDB format for use in structural bioinformatics analyses.FeaturesDownloads PDB files from the RCSB PDB databaseSelects and saves specific chains from the PDB fileCalculates the coordinates for adding an additional oxygen atomAdds an oxygen atom to the PDB file in order to make the Compound I (CpdI)Cleans the PDB file by removing unnecessary ligands or residues and adding missing atomsRemoves extra hydrogen atom on cysteine axial ligand of CpdIInstallationexia requires Python 3.8 or higher and the following dependencies:argparsesysTo install exia, use pip:
pip install exiaUsageTo prepare a PDB file, use theexiacommand followed by the PDB ID and a list of chain IDs:
exia 6DWN AThis will download the PDB file for the protein structure with PDB ID1abc, select the chains with IDsA,B, andC, and perform the necessary preparation steps. The resulting PDB file will be saved in a directory with the same name as the PDB ID.ContributingIf you encounter any bugs or have a feature request, please open an issue on theexia GitHub repository.To contribute code to exia, please follow these guidelines:Fork the repository and create a new branch for your changes.Write tests for any new functionality.Follow the existing code style.Run the tests and ensure that they pass before submitting a pull request.Licenseexia is released under the MIT License. See theLICENSEfile for details.Copyright (c) 2021 John Doe
Package: exif
Read and modify image EXIF metadata using Python without any third-party software
dependencies. For example, batch process image metadata using a Python script.NoteI developed this package in 2018 as a hobby; however, I no longer have the same bandwidth
to work on this project. As always, contributions and bug fixes are welcome and appreciated.
If this package does not suit your needs in its current form, I encourage you to investigate
alternative packages such aspiexif,Pillow, or the like.Quick StartOpen an image with EXIF metadata using the Pythonopen()built-in function. Ensure the
binary mode flag is set. Pass this image file object into theexif.Imageclass:>>> from exif import Image
>>> with open('grand_canyon.jpg', 'rb') as image_file:
...     my_image = Image(image_file)
...
>>> my_image.has_exif
TrueList EXIF attributes using thelist_all()method:>>> my_image.list_all()
['_exif_ifd_pointer', '_gps_ifd_pointer', 'aperture_value', 'brightness_value', 'color_space',
 'components_configuration', 'compression', 'datetime', 'datetime_digitized', 'datetime_original', 'exif_version',
 'exposure_bias_value', 'exposure_mode', 'exposure_program', 'exposure_time', 'f_number', 'flash',
 'flashpix_version', 'focal_length', 'focal_length_in_35mm_film', 'gps_altitude', 'gps_altitude_ref',
 'gps_datestamp', 'gps_dest_bearing', 'gps_dest_bearing_ref', 'gps_horizontal_positioning_error',
 'gps_img_direction', 'gps_img_direction_ref', 'gps_latitude', 'gps_latitude_ref', 'gps_longitude',
 'gps_longitude_ref', 'gps_speed', 'gps_speed_ref', 'gps_timestamp', 'jpeg_interchange_format',
 'jpeg_interchange_format_length', 'lens_make', 'lens_model', 'lens_specification', 'make', 'maker_note',
 'metering_mode', 'model', 'orientation', 'photographic_sensitivity', 'pixel_x_dimension', 'pixel_y_dimension',
 'resolution_unit', 'scene_capture_type', 'scene_type', 'sensing_method', 'shutter_speed_value', 'software',
 'subject_area', 'subsec_time_digitized', 'subsec_time_original', 'white_balance', 'x_resolution',
 'y_and_c_positioning', 'y_resolution']Access EXIF metadata tags using Python attribute notation:>>> # Read tags with Python "get" notation.
>>> my_image.gps_latitude
(36.0, 3.0, 11.08)
>>> my_image.gps_longitude
(112.0, 5.0, 4.18)
>>> my_image.model
'iPhone 7'
>>>
>>> # Modify tags with Python "set" notation.
>>> my_image.make = "Python"
>>>
>>> # Delete tags with Python "del" notation.
>>> del my_image.gps_latitude
>>> del my_image.gps_longitude
>>>
>>> # Add new tags with Python "set" notation.
>>> from exif import LightSource
>>> my_image.light_source = LightSource.DAYLIGHTWrite the image with modified EXIF metadata to an image file usingopen()in binary
write mode:>>> with open('modified_image.jpg', 'wb') as new_image_file:
...     new_image_file.write(my_image.get_file())
...Refer to theusage pagefor information and examples of alternative ways to access EXIF tags (e.g.
with index/item syntax or with methods).
Package: exifdate2fs
ExifDate2FSThis tool will recursively update file timestamps to information from EXIF tag DateTimeOriginal. It accepts one argument - filesystem path.
It will not modify files themselves, only filesystem timestamps. For Linux, it will modify mtime while for Windows it will also modify
“Date Created”.Optionally you can rename file to IMG_YYYYMMDD_HHMMSS.jpg with--renameSupported file formats (file extensions):JPEG (.jpg .jpeg)TIFF (.tif .tiff)WebPHEIC/HEIF (.heic, .heif) - experimentalCR2 (.cr2)Supports Windows, Linux, macOS and probably other OSes.Installationpipinstallexifdate2fsYou can download and use it as single Windows binary, seeReleasesUnfortunately antivirusesdon't like packed Python executables, so expect false positives from them if you go this way. Best way is pip.UsagePiPy packageexifdate2fs/home/username/myphotosWindows executable./ExifDate2FS.exe "c:\Users\username\Pictures\My Vacation"See alsoJheadExifToolExiv2NameEXIFEXIF Date Changer
Package: exif-delete
exif_deleteAll the photos you share online contain metadata. This metadata can include:the location the photo was takenthe time the photo was takendetailed information about your camera / phoneFacebook (and most other online advertisers) make money by tracking and selling your personal information. Butyoushould be in control of what information you share with the world.Enter theexif_deletetool.This is a simple Python script that I use to strip all of the metadata from my photos before I share them online.  It is lightweight and easy-to-use.  If you are like me, you take a lot of photos, and this tool will help protect your privacy.InstallationThis script will work with Python v3.4 to v3.7 and only requires one third-party library:PIL.You can install this tool using PyPI to grab the code and install it online by doing:pip install exif_deleteOr you can install from this repo locally:python setup.py installUsageThis is a simple commandline tool.  Just pass the name of the image file(s) you want to strip to the script, and it will do the rest:python exif_delete.py /path/to/my/image.jpg

python exif_delete.py image1.jpg image2.png image3.gif

python exif_delete.py /path/to/*/my/images/*.jpgBy default, the script will create a new image file with"_safe"appended to the file name.  For instance, this:/full/path/to/image1234.jpgwill become:/full/path/to/image1234_safe.jpgHowever, if you want to just over-write the original image file by stripping all the EXIF data from it, you can add the--replaceflag:python exif_delete.py --replace /path/to/my/image.jpg
Package: exiffind
“Find images bei their exif tags.
- before: date to be digitized before in format YY-MM-DD (other date formats might work)
- after: date to be digitized after in format YY-MM-DD (other date formats might work)
- ext: search only for files with $EXT extensions
- orientation: horizontal, vertical
- author:
- software:
- width: search by image with (supports ranges)
- height: search by image height (supports ranges)
- manufacturer: search by camera manufacturer
- model: search by camera model
- speed: search by speed (ISO value, supports ranges)
- exposure: search by exposure time (supports ranges)
- aperture: search by aperture value (supports ranges)
- fnumber: search by f-number (supports ranges)
- xresolution: search by resolution in x direction (supports ranges)
- yresolution: search by resolution in y direction (supports ranges)
Package: exifgps
Exifgps Package================This package reads EXIF information in  jpg or tiff images.It converts the GPS information into the equivalentGoogle Maps url.SETUP=====- Requires exifread module to be installedUSAGE=====Methods:-------- read(image_filename)    : Returns single imagepgs object- process_exif()          : Converts EXIF GPS information to google url- search(directory)       : Searches recursivley directory and Returns list of processed exifgps objects- set_zoom_level(integer) : Set google maps zoom level (1-21)- get_zoom_level()        : Returns current zoom level- get_filename()          : Return filename- get_url()               : Return google_url if EXIF present. Returns "" if no EXIF informationEXAMPLES========Single Image::import exifgpsimage = exifgps.read(image_filename)image.process_exif()print image.get_url()Search Directory::import exifgpsimage_list = exifgps.search(directory)for image in image_list:print image.get_url()print image.get_filename()
Package: exificator
ExificatorExificator is a Python command line application that allows you to modify EXIF metadata in JPEG images.InstallationTo install Exificator, you can use pip:$pipinstallexificatorUsageExificator can be used to modify the EXIF metadata in JPEG images. Here's an example of how to use it:$exificatorinput.jpg-ooutput.jpg--payload'<script>alert(1337)</script>'This will modify the title and description fields in the EXIF metadata of the input image and save the modified image to the output file.Here are the available options:-h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Output filename. By default, filename-output.ext
  -f, --force           Overwrite output file if exists without confirmation
  -p PAYLOAD, --payload PAYLOAD
                        String to set in EXIF attributes. {} is replaced with the exif tag. Default: "<script>alert('{}')</script>
  --tags TAGS           List of tags to set, comma separated. Default: all tags
  --list-tags           List all available tagsLicenseExificator is licensed under the MIT License. See LICENSE for more information.
Package: exifstrip
exifstripA command-line tool to strip EXIF data from images.RequirementsPython 3pipInstallationInstall the package fromPyPI, available asexif-strip, usingpip.pipinstallexifstripUsageusage:exifstrip[-h][--overwrite][images...]positionalarguments:images

optionalarguments:-h,--helpshowthishelpmessageandexit--overwriteTo create a new file without EXIF data:exifstrippath/to/img1.jpegpath/to/img2.heicThis will create two files,path/to/img1.jpeg.strippedandpath/to/img2.heic.stripped.Tooverwrite the original file, include the--overwriteflag. All files specified will be overwritten.exif-strippath/to/img1.jpegpath/to/img2.heic--overwrite
Package: exifyay
# exifyayYay, [Exif][exif-wp]! This module provides routines for reading andwritingExif data in Python, backed by strong and time-tested C
libraries.The bindings are generated by [Cython][cython] and we use static
linking to produce a self-contained Python C module.## Sources
libexif and libjpeg are based on version 0.6.21. We have removed some
i18n related stuff and added a GPS routine from the same source where
JpegEncoderEXIF comes from.JpegEncoderEXIF uses libexif and provides a higher-level interface to
set Exif data. We have added a function to unset tags and have extended
the GPS support.libexif performs the heavy lifting that lets us read and write Exif
data. libjpeg is part of the exif tool closely related to libexif.libexif and libjpeg use autotools, we use [CMake][cmake] because Simon
could not figure out how to cleanly build static libraries that work
both on OS X and Linux.## Build`shell cmake . make python setup.py install `To build you must have CMake, make, gcc, g++, Python headers, and
Cython installed.## Install using pip
You can install exifyay using [pip][pip] but you must still have the
build requirements installed. To create binary distrbutions, you
may want to have a look at [fpm][fpm].## Check for memory leaks
We use [Valgrind][valgrind] and Python built with–with-valgrindon
test scripts and make sure that no directly nor indirectly lost memory
is reported. Possibly lost memory is reported, however, but our sanity
check is to remove all libexif unref calls and such and verify that the
possibly lost memory value is unchanged.## Correctness
We verify that running the same operations on the same data more than
once do not change it. We also verify that outputs can be parsed with
tools like [ExifTool][exiftool]## Contributors[Simon Pantzare](https://github.com/pilt)[Felipe A. Hernandez](https://github.com/ergoithz)## Licensesexifyay (LGPL v3)[libexif](http://libexif.sourceforge.net/) (LGPL v2.1)[libjpeg (part of exif)](http://libexif.sourceforge.net/) (LGPL v2.1)[JpegEncoderEXIF](https://github.com/tpruvot/android_hardware_ti_omap4/tree/master/omap3/camera-omap3) (LGPL v2.1)[thewtex/cython-cmake-example](https://github.com/thewtex/cython-cmake-example) (Apache License v2.0)[exif-wp]:http://en.wikipedia.org/wiki/Exchangeable_image_file_format[cython]:http://cython.org/[valgrind]:http://valgrind.org/[exiftool]:http://www.sno.phy.queensu.ca/~phil/exiftool/[cmake]:http://www.cmake.org/[pip]:http://www.pip-installer.org/en/latest/[fpm]:https://github.com/jordansissel/fpm
Package: exile
Exilestores your AWS access key on your YubiKey device and uses it to sign your AWS API requests, protecting you
against credential theft.Installationpip install exileOn Linux, installpcsc-lite(apt install pcscd,yum installpcsc-lite).Exile requires Python 3.6+.Synopsisimportboto3,botocore.authfromexileimportYKOATH,botocore_signersdefwrite_active_aws_key_to_yubikey():credentials=boto3.Session().get_credentials()key_name="exile-{}-SigV4".format(credentials.access_key)secret=b"AWS4"+credentials.secret_key.encode()print("Writing YubiKey OATH SigV4 credential",key_name,"for",credentials.access_key)YKOATH().put(key_name,secret,algorithm=YKOATH.Algorithm.SHA256)key_name="exile-{}-HmacV1".format(credentials.access_key)secret=credentials.secret_key.encode()print("Writing YubiKey OATH HmacV1 credential",key_name,"for",credentials.access_key)YKOATH().put(key_name,secret,algorithm=YKOATH.Algorithm.SHA1)write_active_aws_key_to_yubikey()botocore_signers.install()print("Using YubiKey credential to perform AWS call")print(boto3.client("sts").get_caller_identity())print("Using YubiKey credential to presign an S3 URL")print(boto3.client("s3").generate_presigned_url(ClientMethod="get_object",Params={"Bucket":"foo","Key":"bar"}))Storing the secret key on a YubiKey instead of in the home directory (~/.aws/credentials) protects it in case the
host computer or its filesystem is compromised. The YubiKey acts as anHSM, and can optionally be further configured to require user
interaction (pressing a button on the key) to sign the request:YKOATH().put(key_name, secret, algorithm=YKOATH.Algorithm.SHA256, require_touch=True)TOTPBecause exile uses theYubiKey OATHprotocol, you can also use it to storeTOTP2FAtokens, generate and verify codes:from exile import TOTP
TOTP().save("google", "JBSWY3DPEHPK3PXP")  # Or TOTP.save_otpauth_uri("otpauth://...")
TOTP().get("google")  # Returns a standard 6-digit TOTP code as a string
TOTP().verify("260153", label="google", at=datetime.datetime.fromtimestamp(1297553958))AuthorsAndrey KislyukLinksProject home page (GitHub)Documentation (Read the Docs)Package distribution (PyPI)Change logBugsPlease report bugs, issues, feature requests, etc. onGitHub.LicenseLicensed under the terms of theApache License, Version 2.0.
Package: exileui
=====Exileui=====Exileui is a simple Django app to conduct Web-based exileui. For eachquestion, visitors can choose between a fixed number of answers.Detailed documentation is in the "docs" directory.Quick start-----------1. Add "exileui" to your INSTALLED_APPS setting like this::INSTALLED_APPS = ['exileui',...]2. Include the exileui URLconf in your project urls.py like this::url(r'^exileui/', include('exileui.urls')),3. Run `python manage.py migrate` to create the exileui models.4. Start the development server and visit http://127.0.0.1:8000/admin/to create a poll (you'll need the Admin app enabled).5. Visit http://127.0.0.1:8000/exileui/ to participate in the poll.
Package: exin
Explore Imagenet/WordNetTiny package to easily explore the WordNet (and subsequently, ImageNet) structure.Usagefrom exin.exin import find_class

find_class('n02356798')=>('n00015388', 'animal, animate being, beast, brute, creature, fauna'),
 ('n01466257', 'chordate'),
 ('n01471682', 'vertebrate, craniate'),
 ('n01861778', 'mammal, mammalian'),
 ('n01886756', 'placental, placental mammal, eutherian, eutherian mammal'),
 ('n02329401', 'rodent, gnawer'),
 ('n02355227', 'squirrel'),
 ('n02355477', 'tree squirrel'),
 ('n02356798', 'fox squirrel, eastern fox squirrel, Sciurus niger'),
 'fox squirrel, eastern fox squirrel, Sciurus niger']