Saravanan666/pypi-org huggingface dataset:
Package: gidgetlab-kit
gidgetlab-kitgidgetlab-kitis a Python package that provides several high level functions that can be used when
working withgidgetlab, as well as agidgetlabcli tool to interact
with GitLab.It inlcudes some useful commands:$gidgetlab--help
Usage:gidgetlab[OPTIONS]COMMAND[ARGS]...

Options:--versionShowthecurrentversionandexit.--urlTEXTGitLabURL[envvar:GL_URL;default:https://gitlab.com]--access-tokenTEXTGitLabaccesstoken[envvar:GL_ACCESS_TOKEN;default:]--verify/--no-verifyVerifySSLcerificateordisableverification[default:True]--install-completion[bash|zsh|fish|powershell|pwsh]Installcompletionforthespecifiedshell.--show-completion[bash|zsh|fish|powershell|pwsh]Showcompletionforthespecifiedshell,tocopyitorcustomizetheinstallation.--helpShowthismessageandexit.

Commands:cloneCloneorpullallprojectsfromgroup(including...commit-fileAddorupdateafiletoalistofprojectsExample:The...getGetoneorseveralitemsfromthegivenendpointlist-projectsListallprojectsfromgroup(includingsubgroups)trigger-pipelinesTriggerthepipelineforallorasubsetofprojects...InstallationOnly Python 3.8 and above is tested. Create a virtualenv and run:pip3installgidgetlab-kitTo use the cli tool,pipxis recommended.LicenseMIT
Package: gi-docgen
GI-DocGen: Documentation tool for GObject-based librariesGI-DocGen is a document generator for GObject-based libraries. GObject is
the base type system of the GNOME project. GI-Docgen reuses the
introspection data generated by GObject-based libraries to generate the API
reference of these libraries, as well as other ancillary documentation.InstallationRunning GI-DocGen uninstalledYou can run GI-DocGen from its repository, by calling:./gi-docgen.pyGI-DocGen will automatically detect this case.Installing GI-DocGen via pipTo install GI-DocGen, you will need to have the following pieces of software
available on your computer:Python 3.6, or laterpipRun the following command:pip3 install --user gi-docgenAfter running the command above, make sure to have the~/.local/bindirectory listed in your$PATHenvironment variable.To update GI-DocGen, run the following command:pip3 install --user --upgrade gi-docgenUsageFirst, readthe GI-DocGen tutorial.The documentation for GI-DocGen isavailable online.Theexamplesdirectory in the repository contains simple project files for
various GNOME libraries.DisclaimerGI-DocGen isnota general purpose documentation tool for C libraries.While GI-DocGen can be used to generate API references for most GObject/C
libraries that expose introspection data, its main goal is to generate the
reference for GTK and its immediate dependencies. Any and all attempts at
making this tool more generic, or to cover more use cases, will be weighted
heavily against its primary goal.GI-DocGen is still in development. The recommended use of GI-DocGen is to
add it as a sub-project to yourMeson build system,
and vendor it when releasing dist archives.You shouldnotdepend on a system-wide installation until GI-DocGen is
declared stable.If you need a general purpose documentation tool, I strongly recommend:HotDocDoxygenGTK-DocCopyright and Licensing termsCopyright 2021  GNOME FoundationGI-DocGen is released under the terms of the Apache License, version 2.0, or
under the terms of the GNU General Public License, either version 3.0 or,
at your option, any later version.
Package: gids
Google Images Download using Selenium본 파이썬 모듈은https://pypi.org/project/google_images_download/위 모듈이 구글 크롬의 업데이트로 사용 불가능해진 것에 대한 대안으로 Selenium을 이용한 크롤링 과정을 간편화한 모듈입니다.InstallpipinstallgidsUsagefromgidsimportbuilderconfig={'driver_path':'./chromedriver','headless':True,'window-size':'720x480','disable_gpu':False}first_item={'keyword':'Lion','limit':10,# The number of images'download_context':'./data','path':'animal'# save in ./data/animal/img_01...10}second_item={'keyword':'Bamboo','limit':10,# The number of images'download_context':'./data','path':'plant'# save in ./data/plant/img_01...10}items=[first_item,second_item]downloader=builder.build(config)downloader.download(items)
Package: gielladetect
Makes thelanguage classification scriptfrom the GiellaLT's corpus tools available as a python module (GiellaLT's website,original repo).The source code as well as the language model files are released under the GPL-3.0 license.Installationpip install gielladetectUsageimport gielladetect

text = "Lurer du på hva som rører seg innenfor veggene til Nasjonalbiblioteket på Solli plass i Oslo?"

gielladetect.detect(text)
# Result: 'nob'

# To restrict detection to a subset of languages:
gielladetect.detect(text, ['nob', 'nno', 'eng'])
# Result: 'nob'Supported languagesUsingISO 639-3codes.CodeNamearaArabicbxrRussia BuriatckbCentral KurdishdanDanishdeuGermanengEnglishestEstonianfaoFaroesefasPersianfinFinnishfitTornedalen FinnishfkvKven FinnishfraFrenchhbsSerbo-CroatianislIcelandicitaItaliankalKalaallisutkmrNorthern KurdishkoiKomi-PermyakkpvKomi-ZyriankrlKarelianmdfMokshamhrEastern MarimnsMansimrjWestern MarimyvErzyannoNorwegian NynorsknobNorwegian BokmåloloLivvipolPolishrmfKalo Finnish RomanirmnBalkan RomanirmuTavringer RomanirmyVlax RomanironRomanianrusRussiansmaSouthern SamismeNorthern SamismjLule SamismnInari SamismsSkolt SamisomSomalispaSpanishsweSwedishturTurkishudmUdmurturdUrduvepVepsvieVietnameseyidYiddishyrkNenets
Package: gie-py
gie-pyPython client for the API endpoints of gie.eu. Both ASGI for gas storage and ALSI for LNG terminals and lso's are supportedUsing it requires an api key which you can get by registering an accountat the alsi website.
API keys are valid for both ASGI and ALSI if you set "access to" to "Both ALSI and AGSI+" when registering or later in account settings.Installationpython3 -m pip install gie-pyUsageThe package comes with 2 clients:GieRawClient: Returns data in its raw format direct from api, a list of dictionariesGiePandasClient: Returns data parsed as a Pandas DataFrameSupported methods:The same for both clients. Each method has same setup for arguments, a string to denominate the target
and a start and end parameter which is either a pandas timestamp or a stringquery_gas_storagequery_gas_companyquery_gas_countryquery_lng_terminalquery_lng_lsoquery_lng_countryExamplefromgieimportGiePandasClientclient=GiePandasClient(api_key=<YOURAPIKEY>)df_terminal=client.query_lng_terminal('zeebrugge',start='2020-01-01',end='2022-07-10')df_lso=client.query_lng_lso('fluxys_lng',start='2020-01-01',end='2022-07-10')meaning of dataframe columnsFor the meaning of the columns in the resulting dataframes please consult the officialdocumentationchapter 2 page 5 and 6
Package: gif
AboutThematplotlibAnimation ExtensionInstall & ImportpipinstallgifimportgifQuickstartimportgiffromrandomimportrandintfrommatplotlibimportpyplotaspltx=[randint(0,100)for_inrange(100)]y=[randint(0,100)for_inrange(100)]# (Optional) Set the dots per inch resolution to 300gif.options.matplotlib["dpi"]=300# Decorate a plot function with @gif.frame@gif.framedefplot(i):xi=x[i*10:(i+1)*10]yi=y[i*10:(i+1)*10]plt.scatter(xi,yi)plt.xlim((0,100))plt.ylim((0,100))# Construct "frames"frames=[plot(i)foriinrange(10)]# Save "frames" to gif with a specified duration (milliseconds) between each framegif.save(frames,'example.gif',duration=50)ExamplesWarningAltair and Plotly are no longer supported in22.5.0+Please usepip install gif==3.0.0if you still need to interface with these libraries
Package: gif2ascii
gif2asciihttps://user-images.githubusercontent.com/38807205/230733470-5491dd82-5e36-4f73-b553-a38a167837ec.movExample using command linepython-mgif2ascii-fanime.gif-w80python-mgif2ascii-fanime.gif--fit-terminal
python-mgif2ascii-fhehe.jpg-cABCDEF-d0.1Example using Codefromgif2asciiimportGifAsciifile_name='jujutsu.gif'width=80GifAscii(file_name,width).output()Available Options to constructorusage: python -m gif2ascii [-h] -f F [-w W] [-d D] [-c C] [--fit-terminal] [--no-loop] [--screenfetch]

Gif to Ascii

options:
  -h, --help      show this help message and exit
  -f F            Input file, static image or gif file
  -w W            Width in chars
  -d D            Frame delay between frames for gif
  -c C            Characters to be used for ASCII output
  --fit-terminal  Fit entire terminal
  --no-loop       Loop gif animation
  --screenfetch   Create template for screenfetch

	Examples:

    python -m gif2ascii -f anime.gif -w 80
    python -m gif2ascii -f anime.gif --fit-terminal
    python -m gif2ascii -f john.jpg -c ABCDEF -d 0.1

    Use with screenfetch

    echo 'startline=0;fulloutput=($(python -m gif2ascii -f john.jpg -w 40 --screenfetch))' > /tmp/script.sh && screenfetch -E -a /tmp/script.sh

    github.com/shobhit99
Package: gif2numpy
# gif2numpy Version 1.3Python library to convert single oder multiple frame gif images to numpy images or to OpenCV without PIL or pillow. OpenCV does not support gif images.Install it withsetup.py installor withpip install gif2numpy# UsageYou can use the library this way:from __future__ import print_functionimport gif2numpyimport cv2images = "Images/Rotating_earth.gif", "Images/hopper.gif", "Images/audrey.gif", "Images/testcolors.gif"for image in images:frames, exts, image_specs = gif2numpy.convert(image)print()print("Image:", image)print()print("len frames", len(frames))print("len exts", len(exts))print("exts:", exts)print("image_specs:", image_specs)for i in range(len(frames)):cv2.imshow("np_image", frames[i])k = cv2.waitKey(0)if k == 27:breakcv2.destroyWindow("np_image")There is also the class Gif inside the module which can be used to determine Gif features inside the image.The general features are given in the dictionary image_specs.If multiple frames are saved in the gif you can retrieve them in the list of frames. The list of exts with the same index number as in frames gives you the specifications of each frame (block_size, flags, delay_time, transparent_idx, terminator, lzw_min,top, left, width, height, has_color_table, local_color_table).By default this module was designed for the connection with cv2 which has the BGR(A) color mapping sequence for the color tuples. In case you are not using opencv and its color mapping you should set the color conversion flag BGR2RGB to False so that no color conversion takes place. So use the module like that:from __future__ import print_functionimport gif2numpyimport cv2images = "Images/Rotating_earth.gif", "Images/hopper.gif", "Images/audrey.gif", "Images/testcolors.gif"for image in images:frames, exts, image_specs = gif2numpy.convert(image, BGR2RGB=False)print()print("Image:", image)print()print("len frames", len(frames))print("len exts", len(exts))print("exts:", exts)print("image_specs:", image_specs)for i in range(len(frames)):cv2.imshow("np_image", frames[i])k = cv2.waitKey(0)if k == 27:breakcv2.destroyWindow("np_image")# Version history1.3: Additional flag for BGR2RGB conversion, by default this flag is set and a BGR2RGB color conversion takes place, better time optimization of color table mapping1.2: Bug fix for multiple frame gif images, pixel error in frames fixed1.1: single frame and multiple frame gif images are now supported1.0: first release just for still single images# DependenciesYou need to install numpy and kaitaistruct by:pip install numpy kaitaistruct
Package: gif2xls
Inspired byxkcd.Converts GIF encoded images into Microsoft Excel formatted workbooks.Each frame is assigned a worksheet, and each pixel is assigned a cell.There are two modes: fancy mode (the default) and boring mode. In boring mode (using -b or –boring at the command line), each cell is assigned a 25-bit integer, with bits 0-23 for an RGB value and bit 24 as transparency. In fancy mode, each cell is made square and is assigned a background colour that is as close to the original pixel value as possible.An additional sheet named “Info” contains some header information, where each row contains a Name, Value pair.Installationgif2xlsis now available as aPyPIpackage! Simply run either of the following from anywhere:pip install gif2xls        # globally, often requires root/Administrator privileges
pip install gif2xls --user # local to current user (add ~/.local/bin to your $PATH)To install from source, either run the following as root inside the repo directory:pip install .or the following to install as a user package (making sure to add ~/.local/bin/ to your $PATH):pip install . --userUsageSyntax:gif2xls input_file [-b|--boring] [--width cell_width] [-o output_file.xls(x)]The default mode is “fancy” mode - use the –boring flag to use “boring” mode which doesn’t use any colour formatting.In “fancy” mode when using a.xlsxformatted output file, you can use the –width flag to specify how wide and high each cell will be in pixels. For example,–width=5will generate cells that are 5 pixels wide and high each so that the image appears scaled up 5 times.The output file can either have a.xlsor a.xlsxfile extension - signalling to gif2xls your output file format.NOTE:You must use.xlsxoutput files for GIF images that are larger than 256 pixels wide - classic.xlsworksheets do not support more than 256 columns per worksheet. However, you can still use.xlsworksheets for fancy mode images, just as long as they are not wider than 256 pixels.(C) Thomas Bell 2016,MIT License.
Package: gifcm
gifcm 0.1.0Gifcm provides a context manager for easy creation of gif animations from matplotlib figures. It does not offer capabilities beyond existing tools such asgiforcelluloid, but rather a different API making use of context managers.Installationpip install gifcmUsageExample usage is as follows:animated_figure=AnimatedFigure(figure=plt.figure())foriinrange(10):withanimated_figure.frame():plt.plot(i,i,"o")animated_figure.save_gif("my_animation.gif")
Package: giferror
giferrorA very useful exception class which identifies GIF links within exception
messages and presents them to the user in a web browser.Installationpip install giferrorSimple Usage>>>fromgiferrorimportGIFError>>>raiseGIFError("Boom. http://i.imgur.com/o6Yj0bP.gif")The above code would conveniently display the following image in your
operating system’s default web browser.
Package: giffer
GifferA package for simpler converting a set of images into a gif using the imageio package.ProvidesWhat will the function do?Example gifProvidesA functionmake_gif()which turns the specified images of an folder into a .gif.What will the function do?Given a folder structure as:└───temp
    ├───images
    │   └───img (0).png
    │   └───img (1).png
    │   └───img (2).png
    └───main.pywheremain.pyhas the functionmake_gif("./temp/images", "./temp/my_gif.gif"). This will generate a file.gifgoing through the images. The final structure will look like:└───temp
    ├───images
    │   └───img (0).png
    │   └───img (1).png
    │   └───img (2).png
    ├───main.py
    └───my_gif.gifExample gif
Package: gif-frames
gif-framesExtract frames from gif image.Installpip install gif-framesInstalled Commandsgif-framesUsageE:\gif-frames>gif-frames --help
Usage: gif-frames [OPTIONS] IMAGE [OUT]

Extract frames from gif image.

IMAGE: The file path of the gif image

OUT: The folder where extraced frames to save

Options:
--help  Show this message and exit.ExamplesE:\gif-frames>cd
E:\gif-frames

E:\gif-frames>gif-frames test.gif
n_frames = 53Extract frames from e:\gif-frames\test.gif and save frames in folder e:\gif-frames\test.
Package: gifnoc
GifnocGifnoc is a unified configuration system for Python modules.The main objective of gifnoc is to unify configuration files, environment variables and command-line options, across multiple modules. For example, module A and module B can both define their own configuration models through gifnoc, map some environment variables to keys in that configuration, and then you may configure A and B in the same file.Gifnoc also aims to validate configuration through a typed model based on dataclasses and implemented by theapischemapackage, a dependency of gifnoc.FeaturesTyped configuration using dataclasses andapischemaUse a single configuration tree for multiple librariesMultiple configuration files can be easily mergedEasily embed configuration files in each otherExamplemain.pyfromdataclassesimportdataclassimportgifnoc@dataclassclassUser:name:stremail:stradmin:bool@dataclassclassServer:port:int=8080host:str="localhost"users:list[User]server_config=gifnoc.define(field="server",model=Server,environ={APP_PORT="port",APP_HOST="host",})if__name__=="__main__":withgifnoc.gifnoc(# Environment variable for the configuration path (defaults to GIFNOC_FILE)envvar="APP_CONFIG",# Command-line argument for the configuration path (can give multiple)config_argument="--config",# You can easily register command-line arguments to parts of the configurationoptions_map={"--port":"server.port"},):# The `server_config` object will always refer to the `server` key in the# current configurationprint("Port:",server_config.port)config.yamlserver:port:1234host:hereusers:-name:Olivieremail:ob@hereadmin:true# You can write a file path instead of an object-mysterio.yamlmysterio.yaml-name:Mysterioemail:me@myster.ioadmin:falseUsage:pythonmain.py--configconfig.yamlAPP_CONFIG=config.yamlpythonmain.pyAPP_PORT=8903pythonmain.py--configconfig.yaml
pythonmain.py--configconfig.yaml--port8903
Package: giford
gifordaboutmodify images and create gifs with unified toolkitconceptsclass diagram (very crude)manifesto:lowercase because it's friendlynewlines at end of files because it's niceif you understand why an image manipulation library needs a manifesto, then you arent thinking little enoughsetuptodo - package config
packages - scikit-image (skimage), ffmpeg
python sample_run.pypython >=3.11
needed because:from typing import Selfinstall required for developmet
will install linters, pytest and all supporting modules for thosepip install -e .[dev]buildingpip install build
pip install setuptools-scm
python -m buildcoverage wheelsometimes things don't go right
Package: gifpgn
gifpgnGenerate a GIF of a chess game from a PGN with optional stockfish analysis chart.DemoStockfish analysis and move arrows:Board only, small:Installationpip install gifpgnFor stockfish analysis a local stockfish binary is required.
For best performance you can compile your own with support for the fastest instruction sets available on your hardware. Alternatively you can install using your distribution's package manager.eg.apt-get install stockfishUsageImport the package:from gifpgn import CreateGifFromPGNInitialise the class:Using a PGN string:gif = CreateGifFromPGN(pgn_string)Using a PGN file:gif = CreateGifFromPGN(path_to_pgn,pgn_file=True)Optionally enable stockfish evaluation:gif.enable_evaluation()Stockfish evaluation is expensive and may take a large amount of time to complete.The default depth of 18 provides a reasonable trade-off of time versus accuracy. Reducing this number will significantly reduce processing time.Please see theenable_evaluationdocumentation below for configuation options for numbers of threads and memory usage.Optionally enable move arrows:gif.enable_arrows = TrueGenerate the GIF:gif.generate(output_file_path)See reference section for optional parameters.ReferenceclassCreateGifFromPGN()Arguments:pgnstr- PGN as a string or filepath. Filepath requires optional parameter pgn_file=Truereversebool, optional- Whether board should be reversed. Defaults to False.durationfloat, optional- Duration of each GIF frame in seconds. Defaults to 0.5.pgn_filebool, optional- Specify whether pgn contains a pgn string [False] or filepath [True]. Defaults to False.Propertiesboard_sizeint- Size of the board in pixels. Defaults to 480.bar_sizeint- Width of the evaluation bar in pixels. Defaults to 30.graph_sizeint- Height of the evaluation graph in pixels. Defaults to 81.ws_colorstr- Color of the white squares. Defaults to "#f0d9b5".bs_colorstr- Color of the black squares. Defaults to "#b58863".max_evalint- Maximum position evaluation in centipawns. Defaults to 1000.enable_arrowsbool- Enable move arrows. Defaults to [False].enable_evaluation|enable_evaluation(path_to_stockfish='stockfish',depth:int=18,threads:int=1,memory:int=1024)Enable stockfish evaluationArguments:path_to_stockfishstr, optional- Path to stockfish binary. Defaults to 'stockfish'.depthint, optional- Depth of stockfish evaluation. Defaults to 18.threadsint, optional- Number of threads to use in stockfish evaluation. Defaults to 1.memoryint, optional- Amount of memory to use in stockfish evaluation in Mb. Defaults to 1024.generate|generate(output_file:str)Output GIFArguments:output_filestr- Full path and filename of output file
Package: gif-player
Gif PlayerGif Player is a dash component that follows the same approach as here:dash-gif-player. The only difference is that I made a few changes so the component now can receive: id, height and width.gif_player.GifPlayer(
        id='input',
        gif='https://urltogif/gif.gif',
        still='https://urltogif/picture.png',
        height=300,
        width=500
    )I added those things because they were neccesary to the project that I was working on, I take no credit for this package I would've liked to add this features to the actual package but the owner didn't reply to me.AcknowledgmentsMaxim Kupfer- For developing the component.
Package: gifpy
GifpyA simple API wrapper for the Tenor APIInstallationPython 3.9 or higher is recommendedpython3 -m pip install gifpyClone repository:$ git clone https://github.com/Batucho/gifpyAPI TokenYou can get your API token here:Tenor Developer DashboardCode ExamplesSimple SearchfromgifpyimportGifpygifpy=Gifpy("key","en_US")search=gifpy.search("code!",limit=5)print(search[0].__slots__)print(search[0].id)Gif SearchfromgifpyimportGifpyKEY=""#Your API key goes heregifpy=Gifpy(KEY,"en_US")# Look up only one gifgif=gifpy.gifs("15997191")# Returns a Gif Objectprint(gif.__slots__)#Look up many gifsgifs=gifpy.gifs("15997191,19025805,22726592")# Returns a list of Gif Objectsprint(gifs)print(gifs[0].id)More examples here!Feel free to contribute or inform any bug!
Package: gifr
gradiointerfaces for Deep Learning Docker images that
use Redis for receiving data to make predictions on.https://www.data-mining.co.nz/docker-images/Interfaces are available for:image classificationimage segmentationobject detection/instance segmentationtext classificationtext generationChangelog0.0.4 (2024-02-27)extended text generation interface to keep track of inputs and #turns (history);
added support for JSON responses; field name in JSON prompt is now customizable0.0.3 (2024-02-15)added interface for text classification0.0.2 (2023-11-12)title and description used in the interface are now customizable via the–titleand–descriptioncommand-line options0.0.1 (2023-11-03)initial release
Package: giftbit
giftbit-pythonA Python SDK for GiftBit's API.Installation$pipinstallgiftbitGetting StartedAPI CredentialsTheGiftbitClientneeds your Giftbit credentials. You can pass them into the constructor
or use the environment variableGIFTBIT_API_KEY.fromgiftbitimportGiftbitClientclient=GiftbitClient(api_key="<your api key here>")# or using the environment variableclient=GiftbitClient()By default, theGiftbitClientuses Giftbit's testbed API. To use the production API server, do the following:fromgiftbitimportGiftbitClient,client=GiftbitClient(testbed=False)You can check to see if the client is configured correctly by using the ping methodfromgiftbitimportGiftbitClient,client=GiftbitClient(testbed=False)result=client.ping()print(result)BrandsList BrandsfromgiftbitimportGiftbitClient,client=GiftbitClient()result=client.list_brands()forbrandinresult['brands']:print(brand['name'])Get Individual BrandfromgiftbitimportGiftbitClient,client=GiftbitClient()result=client.get_brand('amazonus')print(result['brand'])RegionsNot implemented yetCampaignsNot implemented yetFundsNot implemented yetGiftsNot implemented yetLinksNot implemented yet