Saravanan666/pypi-org huggingface dataset:
Package: thumbor-vips-engine
## ⚙️ Installation`bash pip installthumbor-vips-engine`## 🎯 Featureslibvips based engineConforms with thumbor 7 engine specsPython 3 compliant## Usage### Configuring thumborConfigure yourthumbor.conffile to point tothumbor_vips_engine:` ENGINE = "thumbor_vips_engine.engine" `### Troubles?If you experience any troubles, try running:`bashthumbor-doctor`If you still need help, please
[raise an issue](https://github.com/thumbor/thumbor-vips-engine/issues).## 👀 Thumbor[thumbor-vips-engine](https://github.com/thumbor/thumbor-vips-engine) stands on
the shoulders of [thumbor](https://github.com/thumbor/thumbor)! If you are not
familiar with [thumbor](https://github.com/thumbor/thumbor),
please check the [docs](https://thumbor.readthedocs.io/en/latest/)
or you can see a demo athttp://thumborize.me/## 👍 Contributethumbor-vips-engine is an open-source project with many contributors. Join them
[contributing code](https://github.com/thumbor/thumbor-vips-engine/blob/master/CONTRIBUTING.md) or
[contributing documentation](https://github.com/thumbor/thumbor-vips-engine/blob/master/CONTRIBUTING.md).Join the chat athttps://gitter.im/thumbor/thumbor## LicenseApache License
Version 2.0, January 2004http://www.apache.org/licenses/
Package: thumbor-wand-engine
thumbor-wand-enginethumbor-wand-engine is anImageMagickimaging engine forthumbor.InstallationYou can install the package fromPyPIwithpip:$ pip install thumbor-wand-engineRequirementsPython 3.7 or higherMagickWand librarylibmagickwand-devfor APT on Debian/UbuntuImageMagick-develfor Yum on CentOSimagemagickfor MacPorts/Homebrew on MacWhy another engineThumbor ships with a builtin engine, however with thumbor-wand-engine you get:Smaller images ⏳ 💲Better image quality 🤩Support to animated WEBP ⏳ 💲Support to AVIF and HEIC 🖼IPTC/XMP data preservation 📜Smoother blur ✨Sharper resizing 📐Better watermarking 🏷UsageTo use this engine with thumbor, definethumbor_wand_engineas the imaging
engine inthumbor.conf:# imaging engine to use to process imagesENGINE="thumbor_wand_engine"DevelopmentRequirementsPython 3.6 or higherAn activated virtual environmentpre-commitCreate a development environmentStart by creating a new Python virtual environment with the tool of your
choice (we recommendpyenv)Install pre-commit (we recommendinstallingit not as
part of the virtual environment — use your system's package manager)Install thumbor-wand-engine in editable mode with all required dependencies:$ make setupRun testsOnce you have a working development environment:Code!🤓 🤔 💡 ⚡️ 🖼Run tests$ make testCheck code coverage$ make coverage-html
$ open htmlcov/index.htmlLint the code:$ make lintRepeat!Have fun!LicenseCode in this repository is distributed under the terms of the MIT License.SeeLICENSEfor details.
Package: thumbot
# Thumbot![thumb](http://i.giphy.com/I83tvEbSgRy8M.gif)**Thumbot** is a :thumbsup: :thumbsdown: counter keyboard for Telegram bots and channels.![photo31331718161082944](https://cloud.githubusercontent.com/assets/431892/21070814/1a44c100-be75-11e6-9995-06a82bce7e41.jpg)## Requirements- Python;- Your bot/channel must be created with [pyTelegramBotAPI](https://github.com/eternnoir/pyTelegramBotAPI);- MongoDB;## Running- Your're going to need to run an instance of [MongoDB](https://mongodb.com). For tests porpuse (or even production, but with some concerns) you can use [Docker](https://docker.com/)  and get a container running in some minutes:`$ docker run -d -p 27017:27017 mongo`- To install Thumbot is pretty easy:`$ pip install thumbot`- Now, you're ready to include the Thumbot keyboard in your bot or channel!## Usage```pyfrom thumbot import Thumbot# Create a new instance of Thumbot passing chat and message ids:thumbot = Thumbot(chat_id, message_id)# Now you can vote up and down with the methods .up() and .down(),# always passing the id of the user that is voting:thumbot.up(user_id)thumbot.down(user_id)```Check out the [example.py](https://github.com/rougeth/thumbot/blob/master/example.py) to see a full working bot using Thumbot.### Bots and Channels using Thumbot:- [@on_sale](https://telegram.me/on_sale)
Package: thumbS3
thumbS3=======Python module and command-line tool for creating thumbs on Amazon S3### InstallationInstall required packages:```sudo apt-get install python-dev libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-devln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/libln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/libln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib```Install module:```sudo pip install thumbS3```### Module Usage:```from thumbs3 import ThumbS3th = ThumbS3("my_aws_key", "my_aws_secret", "http://s3-eu-west-1.amazonaws.com/my_bucket_name", 150, 150)th.setDestinationFolder("/thumbs")th.setSuffix("_thumb")th.setVerbose()photos = ["photo1.jpg", "photo2.jpg", "photo3.jpg"]for name in photos:th.create(name)# Resulting thumbs (150x150px)# http://s3-eu-west-1.amazonaws.com/my_bucket_name/thumbs/photo1_thumb.jpg# http://s3-eu-west-1.amazonaws.com/my_bucket_name/thumbs/photo2_thumb.jpg# http://s3-eu-west-1.amazonaws.com/my_bucket_name/thumbs/photo3_thumb.jpg```### Command-line Usage:```usage: thumbs3.py [-h] [-k KEY] [-s SECRET] [-f FILENAME] [--url URL][--folder FOLDER] [--suffix SUFFIX] [--width WIDTH][--height HEIGHT] [-v]thumbS3 command-line tool for creating thumbs on Amazon S3Arguments:-h, --help            show this help message and exit-k KEY, --key KEY     Amazon AWS access key-s SECRET, --secret SECRETAmazon AWS access key secret-f FILENAME, --filename FILENAMEImage filename--url URL             Amazon S3 bucket url--folder FOLDER       Thumbs destination folder--suffix SUFFIX       Thumbs filename suffix--width WIDTH         Thumb width--height HEIGHT       Thumb height-v, --verbose         increase output verbosity```
Package: thumbtack
thumbtackThumbtack is a web front-end providing a REST-ful API to mount and unmount
forensic disk images, built on top of theimagemounterlibrary.Documentation is available in thedocs/directory or online athttps://thumbtack.readthedocs.io/en/latest.Quick Start$pipinstallthumbtack$cdpath/to/disk/image/files$thumbtack*ServingFlaskapp"thumbtack"(lazyloading)*Environment:productionWARNING:Thisisadevelopmentserver.Donotuseitinaproductiondeployment.UseaproductionWSGIserverinstead.*Debugmode:off*Runningonhttp://127.0.0.1:8208/(PressCTRL+Ctoquit)Then go tohttp://127.0.0.1:8208and start mounting and unmounting images!Find a full tutorial indocs/tutorial.rst.Quick Reference$thumbtack--helpUsage:thumbtack[OPTIONS]Options:-d,--debugRuntheThumbtackserverindebugmode-h,--hostTEXTHosttorunThumbtackserveron[default:127.0.0.1]-p,--portTEXTPorttorunThumbtackserveron[default:8208]-m,--mount-dirTEXTDirectorytomountdiskimages[Default:/mnt/thumbtack]-i,--image-dirTEXTDirectoryofdiskimagesforThumbtackservertomonitor[default:$CWD]--dbTEXTSQLitedatabasetostoremountstate[default:database.db]-b,--base-urlTEXTBaseURLwhereThumbtackishostedontheserver--path-containsTEXTOnlyselectfilescontainingspecifiedstringinthepath-s,--skip-subdirectoryTEXTSubdirectorytoignorewhenmonitoringfiles--helpShowthismessageandexit.LICENSEThumbtack is licensed under theApache License, Version 2.0. See theLICENSEfile for
more information.RELEASE STATEMENTApproved for Public Release; Distribution Unlimited. Public Release Case Number 19-0358.
Package: thumbtack-client
thumbtack-clientA client for communicating with a Thumbtack server (https://github.com/mitre/thumbtack).Documentation is available in thedocs/directory or online athttps://thumbtack.readthedocs.io/en/latest.Quickstartpip installthumbtack-clientLICENSEThumbtack is licensed under theApache License, Version 2.0. See theLICENSEfile for
more information.RELEASE STATEMENTApproved for Public Release; Distribution Unlimited. Public Release Case Number 19-0358.
Package: thumbup
thumbupis a command-line video thumbnails generator written in Python.Getting thumbupYou’ll needffmpegbefore you can usethumbup, which can be installed by# on macOS
brew install ffmpeg

# on ubuntu (>= 14.04)
sudo apt-get install -y \
  libavformat-dev libavcodec-dev libavdevice-dev \
  libavutil-dev libswscale-dev libavresample-dev libavfilter-devffmpegis also widely available for many other distros. Please refer to the official websitehttps://www.ffmpeg.org.thumbupcan be installed frompipbypip install thumbupUsageTo generate thumbnails for video filesfile1andfile2, simply usethumbup file1 file2The above will createfile1.jpgandfile2.jpgin the same directory as the video files.To generate thumbnails for all video files in directorydir, use-roption.thumbupwill recursively go through every video in directorydirand generate thumbnails next to them.thumbup -r dirFull help message for more control:usage: thumbup.py [-h] [-v] [-r] [-f] [-o OFFSET] [-s X] FILE [FILE ...]

thumbup video thumbnail generator vv1.5.1

positional arguments:
  FILE                  one or more video files or directories (with -r)

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         logging more stuff
  -r, --rec             recursively go into all dirs
  -f, --force           force overwrite existing thumbnails
  -o OFFSET, --offset OFFSET
                        skip OFFSET (hh:mm:ss.ms or second) from the beginning
  -s X, --suffix X      add suffix to the output filename, input.mp4 ->
                        inputX.jpg
Package: thumos-configr
Thumos ConfigrA simple Python3 class to facilitate easy loading and access to configuration settings using dot-style syntax, with support for Yaml, JSON, TOML and XML. To clarify, dot-style syntax refers to something such as the following:Example YAML file:configuration:mysql:host:localhostport:3600Using Configr, the values could be accessed in this way:fromconfigrimportConfigrcr=Configr("config.yaml")cr["configuration.mysql.host"]>>localhostcr["configuration.mysql.port"]>>3600You may ask why one would want to use this instead of simply using a dictionary. The answer is; why not? Perhaps it's more convenient, more appealing to the eyes, or perhaps you're even coming from something like Spring Boot where this is the way it's usually done.However, other characters than the dot can be used as a separator.cr=Configr("config.yaml",separator="/")cr["configuration/mysql/host"]>>localhostIt is also possible to set an initial root key, to minimize verbosity when using deep configuration files that may contain settings not pertinent to the script or application you are working on. Take the following example YAML file:this:is:nothingInteresting:Jimmy With A Law Degree Is Like A Chimp With A Machine Gun.really:fantastically:deep:Is it not?absolutely:annoying:Indeedcr=Configr("config.yaml",root_key="this.is.really")cr["fantastically.deep"]>>Isitnot?cr["absolutely.annoying"]>>IndeedInstallationpipinstallthumos-configrImport like this:fromconfigrimportConfigr
Package: thumper
Simplifies interactions with RabbitMQ by focusing on design patterns based on Topic
Exchanges. More information can be found here:http://www.rabbitmq.com/tutorials/tutorial-five-python.htmlGoalsEmbrace Kenneth Reitz’sthoughts on the 90% rule, i.e. requests module.Messages are serialized as needed, starting from no serialization for strings to json and falling back to yaml if the more
simple open serialization methods are not capable of serializing the object/message. i.e. datetime/date/decimal/etc.#!/usr/bin/env pythonfromrabbitimportProducerwithProducer(uri)asproducer:formessagein<iterable/generator>:producer.publish(message,routing_key)fromrabbitimportConsumerwithConsumer(uri,exchange,queue,routing_key)asconsumer:consumer.attach_action(...)consumer.handle_messages(...)or for even more control of exchanges and queues:fromrabbitimportConsumerwithConsumer(uri)asconsumer:consumer.declare_exchange(...)consumer.declare_queue(...)consumer.attach_action(...)consumer.handle_messages(...)uri is a messge queue uri in the form, mq://user:pass@host/vhost  where mq://user:pass@localhost == mq://user:pass@localhost/Within the uri you can pass user, password, host, port and vhost information.  see thumper/test/test_mquri.py for more details
Package: thumpy
Meet ThumpyThumpy is a Python web service that crops and scales images.  It doesn’t store
anything.  It’s meant to be used as an origin server sitting behind a CDN such
as Amazon CloudFront.ConfigurationSettings are stored in the settings.yaml file. They should include:
- the name and access keys to your S3 bucket
- compression quality (e.g. 80)
- list of CORS allowed hostsInterfaceThumpy serves images using the same paths as their storage location on S3.
Conversion parameters are specified in the query string, using an interface
inspired byTimThumb.examples:ScalingScale the width to 200px, and the height proportionally:http://mythumpyserver.somewhere/castle.jpg?w=200Scale the height to 150px, and the width propotionally:http://mythumpyserver.somewhere/castle.jpg?w=200Specify both height and width:http://mythumpyserver.somewhere/castle.jpg?w=200&h=150Scaling (Post processing)Same as Scaling (above) but applied to the output image after all transformationshttp://mythumpyserver.somewhere/castle.jpg?pw=200&ph=150CroppingCrop the width to 200 and the height to 100:http://mythumpyserver.somewhere/castle.jpg?cw=200&ch=100Crop the width and height to 50:http://mythumpyserver.somewhere/castle.jpg?cw=50&ch=50Thumpy will always scale first before any cropping.Thumpy always crops from the center of the image.Reveal Mask / Zoom CroppingMinimum 3 parameters required:
- Top offset (e.g. zct=100px)
- Left offset (e.g. zcl=100px)
- Width or Height of the output crop from the offsets. If only one is provided the other will automatically be assigned the other’s value.The mask should be applied to the original image which means there is no scaling but only masking.See: Scaling (Post processing) to get the scaled mask/crop.Get 100px x 50px scaled crop off a larger image with a reveal mask of 350px x 175px applied at 20px x 10px top-left offset.http://mythumpyserver.somewhere/castle.jpg?zcw=350&zch=175&zct=20&zcl=10&pw=100&ph=50GreyscaleExample of a greyscale image with no resizing::http://mythumpyserver.somewhere/castle.jpg?gray=1
Package: thunagen
Google Cloud function to generate thumbnail for images in Google Storage.ConventionThe thumbnails are placed in a folder “thumbnails” at the same place as original file.The thumbnail size is appended to filename, right before the extention part. For example:bucket/
└── folder/
    ├── photo.jpg
    └── thumbnails/
        ├── photo_128x128.jpg
        └── photo_512x512.jpg
    ├── photo-missing-extension
    └── thumbnails/
        ├── photo-missing-extension_128x128
        └── photo-missing-extension_512x512The function expects these environment variables to be set:THUMB_SIZES: Size of thumbnails to be generated. Example:512x512,128x128.MONITORED_PATHS: Folders (and theirs children) where the function will process the uploaded images. Muliple paths are separated by “:”, likeuser-docs:user-profiles. If you want to monitor all over the bucket, set it as/.NOTIFY_THUMBNAIL_GENERATED(optional): Tell Thunagen to notify after thumbnails are created.The variables can be passed via.envfile in the working directory.Get notified when thumbnails are generatedOther applications may want to be informed when the thumbnails are created. We support this by leveraging Google Cloud Pub/Sub service.After finishing generating thumbnail, if theNOTIFY_THUMBNAIL_GENERATEDenvironment variable is set (with non-empty value), the function will publish a message to Pub/Sub. The message is sent to topicthumbnail-generated/{bucket_name}/{image_path}, with the content being JSON string of thumbnail info (size and path). Example:Topic:thumbnail-generated%2Fbucket%2Ffolder%2Fphoto.jpg(URL-encoded of “thumbnail-generated/bucket/folder/photo.jpg”)Message:{"128x128":"folder/thumbnails/photo_128x128.jpg","512x512":"folder/thumbnails/photo_512x512.jpg"}Other applications can subscribe to that topic to get notified. Google doesnot allow slash (“/”) in topic name, so subscribed applications have to take care of URL-encode, decode the topic.Why ThunagenI’m aware that there is already aFirebase extensionfor the same purpose.
But that extension, when doing its job, need to create a temporary file and in many cases, falling into race condition when the temporary file is deleted by another execution of the same cloud function. Thunagen, on the other hand, generates the file and uploads (back to Storage) on-the-fly (in memory), so it doesn’t get into that issue.InstallationThunagen is distributed via PyPI. You can install it withpip:pip install thunagenInclude to your projectThunagen is provided without amain.pyfile, for you to incorporate more easily to your project, where you may have your own way to configure deployment environment (different bucket for “staging” and “production”, for example).To include Thunagen, from yourmain.py, do:fromthunagen.functionsimportgenerate_gs_thumbnailCreditThunagen is brought to you byNguyễn Hồng Quân, from SunshineTech (Việt Nam).
Package: thunar-plugins
🖱️ 🛠️ Thunar PluginsThis Python package extends theThunar file managerand provides a way for other Python packages to do the same without worrying about Thunar finding them.✨ Features Added to Thunar✅ a settings menu to en-/disable plugins added by this or other Python packages🔗 creating links to a file or folder☑️  Calculating various checksums of files🗓️planned: all features fromthunar-custom-actions🔄Git Annexsupport:git annex sync|add|get|drop|lock|unlockbranch switchingmetadata-driven viewsediting metadata in the file properties dialog📦 InstallationIf you are on an Arch-based Linux, you can installthepython-thunar-plugins-gitpackage from the AUR:# using yay, you may of course use your favourite AUR installerpacman-Syuyay
yay-Syupython-thunar-plugins-gitIn this case you might only have to restart Thunar to see the new plugins:thunar-qOther Platforms: Installation from PyPI☝️ PrerequisitesFor these Thunar plugins to work, you will need to have installed:Thunar(obviously)thunarx-python# Install this package from PyPI:pipinstallthunar-plugins# Install the latest development version:pipinstallgit+https://gitlab.com/nobodyinperson/thunar-plugins# Install from the repository rootgitclonehttps://gitlab.com/nobodyinperson/thunar-pluginscdthunar-plugins
pipinstall.If that fails, trypython3 -m pip install --user ...instead of justpip install ...⚡ Troubleshootingtrythunar -qor log out and back in if the plugins aren't shown in Thunarrunthunar -qand thenTHUNARX_PYTHON_DEBUG=all THUNAR_PLUGINS_LOGLEVEL=debug thunarto debugrunthunar-plugins activate(orpython3 -m thunar_plugins activate) to place the activator script (should be done upon installation)runthunar-plugins deactivateto deactivate plugins➕ Adding More PluginsThisthunar_pluginspackage can act as a stepping stone for other packages
that add plugins to Thunar: The activator script loads allthunar_pluginentry points provided by any installed Python package. So if another package
provides a Thunar plugin (e.g. a new context menu entry) with classmypackage.mymodule.mysubmodule.MyThunarPlugin, that package may adjust itssetup.cfglike this and stop caring about how to tell Thunar where the plugin
can be found:[options]install_requires=thunar_plugins[options.entry_points]thunar_plugin=my-thunar-plugin=mypackage.mymodule.mysubmodule:MyThunarPluginFor proper display in thethunar-pluginssettings dialog, every Python Thunar
plugin class registered like this should also have a shortnameand a
one-sentencedescriptionstring attribute.
Package: thundera-bsa
ThunderaBSA-CliThunderaBSA it's a Binary Static Analysis tool that infers what Open Source packages are present on binary apps by searching for "symbols."A "symbol" for ThunderaBSA it's the representation of a file property (file name, file path, folders names) or content (symtree, class names, function names, variable names).ThunderaBSA doesn't perform reverse engineering over the software. Instead, it extracts the symbols offered by the file's metadata, the same way as the operative system scan for file mime-types or file sizes.The CLI (ThunderaBSA CLI) it's one of the three main components of the project. The CLI tool scan files to extract symbols and export the "symbols" to a report file. The reports can be used later by other components to perform the symbol matching offline.InstallationThunderaBSA-CLI requires a few tools to be available on your system:$ sudo apt install python3-pip$ sudo apt install universal-ctags elfutils binutils libimage-exiftool-perl g++ pycodestyle$ pip3 install thundera-bsaIf you are not able to find universal-ctags, please install the package from source. This tool will not work with the Ubuntu package exuberant-ctags, you need to install universal-ctagsDevelopmentLibrariespip3 install twine setuptools wheel pycodestyle pyinstaller virtualenv
Package: thunderargs
=========Thunderargs=========Abstract--------Bla-bla-bla bla-bla-blaInstallation------------.. code-block:: bashsudo pip install thunderargsUsage-----You can use it like this:.. code-block:: pythonfrom thunderargs import Argfrom thunderargs.endpoint import Endpoint@Endpointdef max_int(x: Arg(int), y: Arg(int)):return max(x,y)Or you can use it with flask, like this:.. code-block:: python@app.route('/calc_with_expander/')def calc_with_expander(x:Arg(int), y:Arg(int),op:Arg(str, default='+', expander=OPERATION)):return str(op(x,y))(Since version 0.3 this feature was moved to `other repo <https://bitbucket.org/dsupiev/flask-thunderargs>`_.)Or you can write your own proxy to any other framework!Read the example.py
Package: thunderbolt
ThunderboltThunderbolt is data manager for gokart.Auto loading gokart task logsCheck task params using pandasDownload data from pythonUsageinstallpipinstallthunderboltExampleIf you specifyTASK_WORKSPACE_DIRECTORY, thunderbolt reads the log.
So making tasks pandas.DataFrame, and load dumped data.
This is also possible from S3 or GCS. (s3://, gs://)Example:fromthunderboltimportThunderbolttb=Thunderbolt()print(tb.get_task_df())print(tb.get_data('TASK_NAME'))Please look here too:https://github.com/m3dev/thunderbolt/blob/master/examples/example.ipynbThanksgokart:https://github.com/m3dev/gokart