Saravanan666/pypi-org huggingface dataset:
Package: imfpy
imfpyA package for interacting with theIMF's JSON RESTful APIwith Python!! In this preliminary phase, the package is a tool for understanding, retrieving and exploring Direction of Trade Statistics (DoTS) data.This API client is intended to be useful for economic policymakers, researchers, government officials and more. The package enables the efficient retrieval of trade statistics from any country or country group over the span for which the IMF has data. Functions are designed to be easy-to-understand and adaptive to multiple query types.Moving forward, I will add more functionality to each module, so that users may retrieve and analyse data from other IMF databases.Installation!pipinstallimfpyDepends on:python 3.7 and abovepandas 1.1.3 and aboverequests 2.19.0 and abovematplotlib 3.2.2. and aboveUsageThe package contains three modules:searchesretrievalstoolssearchescontains many helper functions that assist the user in searching through available IMF databases, dimensions, metadata and variables.retrievalscontains functions that retrieve data from important databases.For example,retrievals.dotspulls data from the DoTS database including imports, exports, two-way trade and trade balances for IMF countries and country-groups. The function handles flexible queries and formats the returned data to the user's specifications.#Example: retrieve Greece annual trade data>>>fromimfpy.retrievalsimportdots>>>dots("GR",["US","AU","DE"],2000,2005)toolscontains functions that conduct rudimentary analysis and visualization on the data returned byretrievalsfunctions. For example, thedotsplotfunction transforms the result ofdots()into time series plots.#Example: plot Australia trade data>>>fromimfpy.toolsimportdotsplot>>>d=dots('AU',['US','CN'],2000,2020,freq='A',form="long")>>>dotsplot(d,subset=['Trade Balance','Twoway Trade'])LinksDocumentationUser Guide/VignetteFull documentationAPI ReferenceDistributionGithub RepoGithub DistPyPITest PyPITestingPytestsExtrasIMF DoTSMy websiteContributingInterested in contributing? Want to use this package?  Please get in touch! Check out the contributing guidelines.Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licenseimfpywas created by Liam Tay Kearney. It is licensed under the terms of the MIT license.Creditsimfpywas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: imfun
ImFunConvert an image to cartoon!InstallationThis application (package) is available onPyPI, so it can be installed usingpiporpipx.$ pipx install imfun
  installed package imfun 0.1.0, Python 3.8.5
  These apps are now globally available
    - imfun
done! ✨ 🌟 ✨UsageOne can run theimfunapp to convert an image to a cartoon like this$ imfun -i examples/prague-castle.jpg -o examples/prague-castle-cartoon.jpg
Converting image 'examples/prague-castle.jpg'
Cartoon image saved as 'examples/prague-castle-cartoon.jpg'assuming thatexamples/prague-castle.jpgexists - or try it on any other image ;)ExamplesDevelopmentDevelopment setup requiresPoetryto be installed.
Once the repository is cloned, one can setup everything withmakesetup
Package: im-future
# im-future
This is the implementation of Distributed Hierarchical Futures for Google App Engine, Python standard environment.[![Build Status](https://travis-ci.org/emlynoregan/im_future.svg?branch=master)](https://travis-ci.org/emlynoregan/im_future)## InstallUse the python package for this library. You can find the package online [here](https://pypi.org/project/im-future/).Change to your Python App Engine project’s root folder and do the following:> pip install im-future –target libOr add it to your requirements.txt. You’ll also need to set up vendoring, see [app engine vendoring instructions here](https://cloud.google.com/appengine/docs/python/tools/using-libraries-python-27).## @futureTBDMore information about @future is available in this article on medium:[Welcome to the Future!](https://medium.com/the-infinite-machine/welcome-to-the-future-3ca4fb5a4656)
Package: im-futuretest
# im_futuretest
This package provides a pre-packaged UI for running tests based on @futures, in Google App Engine, Python standard environment projects.[![Build Status](https://travis-ci.org/emlynoregan/im_futuretest.svg?branch=master)](https://travis-ci.org/emlynoregan/im_futuretest)## InstallUse the python package for this library. You can find the package online [here](https://pypi.org/project/im-futuretest/).Change to your Python App Engine project’s root folder and do the following:> pip install im_futuretest –target libOr add it to your requirements.txt. You’ll also need to set up vendoring, see [app engine vendoring instructions here](https://cloud.google.com/appengine/docs/python/tools/using-libraries-python-27).## How to usetbd. But don’t use this package directly, instead grab im_futuretest_flask or im_futuretest_webapp2
Package: im-futuretest-flask
# im_futuretest_flask
These are the flask utilities for the im_futuretest library. If your project uses flask, this is the package you want.[![Build Status](https://travis-ci.org/emlynoregan/im_futuretest_flask.svg?branch=master)](https://travis-ci.org/emlynoregan/im_futuretest_flask)## InstallUse the python package for this library. You can find the package online [here](https://pypi.org/project/im-futuretest-flask/).Change to your Python App Engine project’s root folder and do the following:> pip install im_futuretest_flask –target libOr add it to your requirements.txt. You’ll also need to set up vendoring, see [app engine vendoring instructions here](https://cloud.google.com/appengine/docs/python/tools/using-libraries-python-27).## Configuring im_futuretest_flaskThis package provides functions that register flask handler functions for im_futuretest_flask, both for its api and its ui.To get your tests running properly, you should register these handlers in your main app (wherever your main flask app is constructed). Doing this
ensures that your tests have exactly the same code loaded as the code they’re testing would have when being used normally, ie: no dependency hell.### app.yamlThe futuretest handlers all have routes of the form:
/futuretest/XXX
(where XXX may include more levels of pathing)Say you already have an app.yaml rule which pushes all routes to your main app, say main.py, as follows:handlers:url: *
script: main.appThen this will work for futuretest without any modification.If things are a little messy, you can just add this somewhere early in app.yaml:url: /futuretest/*
script: main.app
login: adminThis will direct all futuretest routes to the “app” flask application constructed in main.py. Obviously modify this as needed.Also note the requirement for the user to be an admin of your project. Futuretest is designed to run potentially long running and expensive
tests; it’s best not to open that up to all comers!### main.pyNow traffic is going to the app constructed in main.py.Next we need to register the futuretest flask handlers with your app.Do it like this:from flask import Flask
from flaskhandlers import register_tests_api
… other imports …app = Flask(__name__)  # creating your app… add other handlers to your app, etc …register_futuretest_handlers(app) # this adds IM Future Test’s handlers… do more stuff with app …ie: just call register_futuretest_handlers(app) somewhere in main.py### Accessing the UIGo to the urlhttp(s)://<yourdomain>/futuretest/uiand you’ll see the UI:![IM Future Test screenshot](http://i433.photobucket.com/albums/qq59/emlynoregan/im_futuretest.png“IM Future Test screenshot”)
Package: im-futuretest-webapp2
# im_futuretest_webapp2These are the webapp2 utilities for the im_futuretest library. If your project uses webapp2, this is the package you want.[![Build Status](https://travis-ci.org/emlynoregan/im_futuretest_webapp2.svg?branch=master)](https://travis-ci.org/emlynoregan/im_futuretest_webapp2)## InstallUse the python package for this library. You can find the package online [here](https://pypi.org/project/im-futuretest-webapp2/).Change to your Python App Engine project's root folder and do the following:> pip install im_futuretest_webapp2 --target libOr add it to your requirements.txt. You'll also need to set up vendoring, see [app engine vendoring instructions here](https://cloud.google.com/appengine/docs/python/tools/using-libraries-python-27).## Configuring im_futuretest_webapp2This package provides functions that set up webapp2 routes for im_futuretest, both for its api and its ui.To get your tests running properly, you should add these routes in your main app (wherever your main webapp2 app is constructed). Doing thisensures that your tests have exactly the same code loaded as the code they're testing would have when being used normally, ie: no dependency hell.### app.yamlThe futuretest handlers all have routes of the form:/futuretest/XXX(where XXX may include more levels of pathing)Say you already have an app.yaml rule which pushes all routes to your main app, say main.py, as follows:handlers:- url: *script: main.appThen this will work for futuretest without any modification.If things are a little messy, you can just add this somewhere early in app.yaml:- url: /futuretest/*script: main.applogin: adminThis will direct all futuretest routes to the "app" webapp2 application constructed in main.py. Obviously modify this as needed.Also note the requirement for the user to be an admin of your project. Futuretest is designed to run potentially long running and expensivetests; it's best not to open that up to all comers!### main.pyNow traffic is going to the app constructed in main.py.Next we need to add futuretest routes to app.Do it like this:import webapp2... other imports ...routes = [...]...addroutes_futuretest_webapp2(routes) # this is the important bit, adds required routes...app = webapp2.WSGIApplication(routes)ie: just call addroutes_futuretest_webapp2(app) somewhere in main.py### Accessing the UIGo to the urlhttp(s)://<yourdomain>/futuretest/uiand you'll see the UI:![IM Future Test screenshot](http://i433.photobucket.com/albums/qq59/emlynoregan/im_futuretest.png "IM Future Test screenshot")
Package: img2array
img2arrayPrints the pixels of an image into an array of RGB values.
This can be copied easily to other applications, such as embedded apps.Commands-h, --help    :  Help text-i, --image   :  Image file path-p, --prefix  :  Prefix for the item, like "colorFunc("-P, --postfix :  Postfix for the item, like ")"-f, --format  :  Format of the color, defaults to RGB. Possible values: RGB, RGBA, Hex, HexAlphaInstallpip install img2arrayExampleimg2array -i file.png --prefix=coolFunction\( --postfix=\) --format=RGBNote: the \ before () may be required or not depending on the shell you're using.This should print an array version of the image like{
    {coolFunction(200,200,200), coolFunction(123,123,123)},
    {coolFunction(111,111,111), coolFunction(41,0,12)}
}You can then easily copy-paste this to your applications.
Package: img2art
Convert image/gif/video to ascii art. If you inputs have plenty of frames, you can specify--fastto use torch accelerating the peocess.Screen ShotInstallationrequirements: typer[all], opencv-python, numpypip install img2artUsageimg2art --helpresult:Usage: img2art [OPTIONS] SOURCE

╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *    source      TEXT  Path to image [default: None] [required]                                                                │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --with-color    --no-with-color                                  Whether use color [default: no-with-color]                    │
│ --scale                            FLOAT                         Scale applied to image [default: 1.0]                         │
│ --threshold                        INTEGER                       Threshold applied to image, default to OSTU [default: -1]     │
│ --save-raw                         TEXT                          Whether to save the raw data [default: None]                  │
│ --bg-color                         <INTEGER INTEGER INTEGER>...  Backgound color, (-1, -1, -1) for none [default: -1, -1, -1]  │
│ --fast          --no-fast                                        Whether use torch to accelerate when you inputs have plenty   │
│                                                                  of frames.                                                    │
│                                                                  [default: no-fast]                                            │
│ --chunk-size                       INTEGER                       Chunk size of Videos or Gifs when using torch.                │
│                                                                  [default: 1024]                                               │
│ --help                                                           Show this message and exit.                                   │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯img2art path/to/image --scale 0.5 --with-color --threshold 127 --bg-color 255, 255, 255 --save-raw path/to/save.txtReferencebobibo
Package: img2ascii
Image2ASCIIimg2ascii is a library written in python which can convert image or video files to ASCIIOption list:-hor--help: To generate the help text-mor--mode: Select the mode of operation --tfor text,ifor image,vfor video andwfor webcam input-cor--color: Optional parameter to select color mode. 0 - B/W, 1 - Grayscale and 2 - RGB. Default color mode is B/W--fcolor: Optional parameter to set the text color in binary color mode. Default = white--bcolor: Optional parameter to set the background color in binary color mode. Default = blackINFO:For--fcolorand--bcolor, you can use color names -white,black,red,green,blue,yellow,cyanandmagenta. To use other colors, hex codes for those colors must be supplied. Example -ffcc99.-kor--kernel: Optional parameter to set the kernel size, default is 7px-dor--density: Optional parameter to set the ASCII text density on image, default is 0.3 units; Range - (0,1) (exclusive)-ior--ifile: Path to the input file for image and video modes-oor--ofile: Path to the output file for image and video modes-sor--cam_source: Camera to be used for webcam mode. Use 0,1,2,3... to select cameras connected to the PC. Default value is 0-for--fancy: Fancy mode :). (Color mode defaults to RGB)Installation:Direct install :-python3 -m pip install img2asciiFrom Git :1.git clone https://github.com/gopaljigaur/img2ascii.git2.cd img2ascii3.python3 setup.py build4.python3 setup.py installUsage :For text:img2ascii.py -m t -i <inputfile> -o <outputfile> -k <kernel_size>[optional] -d <text_density>[optional]For image :img2ascii.py -m i -c[color mode (optional)] --fcolor <text_color_hex>[optional] --bcolor <background_color_hex>[optional] -i <inputfile> -o <outputfile> -k <kernel_size>[optional] -d <text_density>[optional] -f <fancy_mode>[optional]For video :img2ascii.py -m v -c[color mode (optional)] --fcolor <text_color_hex>[optional] --bcolor <background_color_hex>[optional] -i <inputfile> -o <outputfile> -k <kernel_size>[optional] -d <text_density>[optional] -f <fancy_mode>[optional]For webcam :img2ascii.py -m w -c[color mode (optional)] --fcolor <text_color_hex>[optional] --bcolor <background_color_hex>[optional] -k <kernel_size>[optional] -d <text_density>[optional -s <source_camera (0,1,2...)>[optional] -f <fancy_mode>[optional]Usage in python code:For text :from img2ascii import text_genthentext_gen.generate_ascii_t(str inputfile, str outputfile, int kernel [o], float density [o])For image :from img2ascii import image_genthenimage_gen.generate_ascii_i(str inputfile, str outputfile, int color [o], int kernel [o], float density [o], bool fancy [o], tuple(int) fcolor [o], tuple(int) bcolor [o])For video :from img2ascii import video_genthenvideo_gen.generate_ascii_v(str inputfile, str outputfile, int color [o], int kernel [o], float density [o], bool fancy [o], tuple(int) fcolor [o], tuple(int) bcolor [o])For webcam :from img2ascii import image_genthenimage_gen.generate_ascii_w(int color [o], int kernel [o], float density [o], int cam_source [o], str cam_name [o], bool fancy [o], tuple(int) fcolor [o], tuple(int) bcolor [o])NOTE :Parameters followed by [o] are optionalAlso, thanks toAndrea Schiavinatoforpygrabber
Package: img2gb
img2gb generates GameBoy Tilesets and Tilemaps from standard image (PNG,
JPEG,…). It converts the images into the GameBoy image format and
generates C code (.cand.hfiles) that can be used in GameBoy
projects.Documentation:https://flozz.github.io/img2gb/HowTo:https://flozz.github.io/img2gb/howto.htmlDependenciesPython >= 3.8Pillow >= 5.0InstallSeehttps://flozz.github.io/img2gb/install.htmlUsageSeehttps://flozz.github.io/img2gb/cli.htmlHackingSetupTo work on img2gb first create a virtualenv:python3 -m venv __env__and activate it:source __env__/bin/activateThen install the project with all dev dependencies:pip install -e .[dev]CommandsYou can lint the code and check coding style with:nox -s lintYou can fix coding style using Black with:nox -s black_fixYou can run test on all supported Python versions or on a specific Python
version with:nox -s test       # Run on all Python version

nox -s test-3.8   # Run on Python 3.8
nox -s test-3.9   # Run on Python 3.9
nox -s test-3.10  # Run on Python 3.10
nox -s test-3.11  # Run on Python 3.11
nox -s test-3.12  # Run on Python 3.12And you can build the documentation with (result inbuild/html/):nox -s gendocLinksExamples of GameBoy programs that uses img2gb for graphics:
*https://github.com/flozz/gameboy-examples/tree/master/05-graphics2*https://github.com/flozz/gameboy-examples/tree/master/06-graphics3-backgroundArticle about the tile encoding and img2gb:https://blog.flozz.fr/2018/11/19/developpement-gameboy-5-creer-des-tilesets/(French)Support this projectWant to support this project?☕️ Buy me a coffee💵️ Give me a tip on PayPal❤️ Sponsor me on GitHubChangelog[NEXT](changes onmaster, but not released yet):Nothing yet ;)v1.2.0:fix: Fixed wrong version displayed (@flozz, #3)chore: Added Python 3.11 and 3.12 supportchore!: Removed Python 2.7 and 3.7 supportv1.1.0:Removes arbitrary size limit for tilmapsImplementsoffsetoption (#2)v1.0.0:Refacto of the Python API, with new high-level fuction to be easier to useRefacto of the CLI: now tileset and tilemap are generated separately, this allow more options for both and covers more usecases.New option to handle alternative paletteNew option to handle 8x16px spritesDocumentationUnit test (everything is not coverd but it is better than nothing :))v0.10.0:Adds non-RGB image support (indexed images,…)v0.9.1:Fixes an issue with Python 3v0.9.0:Initial release (generates tiles, tilesets and tilemaps)
Package: img2h
# img2hUtility which converts bitmaps to C/C++ byte arrays.## Instalation```$ pip install img2h```## Usage```$ img2h --helpUsage: img2h [OPTIONS] IMAGE_FILEOptions:--threshold INTEGER              Pixels with brightness lower that this will be on--show-output / --no-show-output Show output image--invert / --no-invert           Invert output image--help                           Show this message and exit.```
Package: img2img
img2img: Image to Image🔮快速转化图片格式🚨更新日志：v0.0.1初始化项目，添加在命令行使用 jpg2png 方法；v0.1.0添加常见的 6 种转化方法；v0.1.1修复版本错误问题；v0.1.2回保存图片的路径；v0.2.0支持命令行批量转化。1 功能支持6 种常见图片格式转化；支持在命令行调用；支持在网页上使用。🔗点我访问2 安装2.1 使用 pip 安装pipinstallimg2img2.2 从代码库安装gitclonehttps://github.com/Ailln/img2img.gitcdimg2img
pythonsetup.pyinstall3 使用目前总共支持6种方法，如下：jpg2pngpng2jpgjpg2icoico2jpgpng2icoico2png下文中使用jpg2png作为演示，其他方法同理。3.1 在代码中调用# 在文件首部引入包importimg2img# 查看版本img2img.__version__# output: 0.2.0img=img2img.Img2img()# 默认输出路径和输入路径相同img.convert("jpg2png","./test.jpg")# 支持手动修改输出路径img.convert("jpg2png","./test.jpg","../new_test.png")3.2 在命令行中使用# 默认输出路径和输入路径相同jpg2png./test.jpg# 支持手动修改输出路径jpg2png./test.jpg../new_test.png# 支持文件夹批量转化jpg2png./test/4 版本支持理论上支持Windows、MacOS、Ubuntu下的所有Python 3.6的版本。实际上仅在Windows 10、MacOS 10.14、Ubuntu 16.04的Python 3.6.3上做过完整测试。欢迎提交其他版本使用情况到Issues中，期待你的反馈。如果你有Python 2的使用需求，可 Fork 代码自行修改。当然也欢迎提 PR，贡献自己代码给其他人。5 协议6 参考如何发布自己的包到 pypi ？python 中的小陷阱
Package: img2jb2pdf
img2jb2pdf将二值图像转换为 JBIG2Decode 编码的 PDF安装通过pip（推荐）：pip install img2jb2pdf从源码安装：pip install git+https://github.com/DracoUnion/img2jb2pdf协议本项目基于 SATA 协议发布。您有义务为此开源项目点赞，并考虑额外给予作者适当的奖励。
Package: img2pdf-legacy-python
This is a fork of the [img2pdf library](https://pypi.python.org/pypi/img2pdf/)
maintained by Johannes Schauer, intended for use in legacy python (Python 2)
installations. It is distributed under the LGPL3 license. It is recommended
that you use the upstream version if possible, since it runs on modern
versions of Python.No pull requests will be accepted, other than:
- Compatibility fixes with Python 2.
- Merges from the upstream img2pdf library.
Package: img2pdf-plus
IMG2PDFThis program uses FPDF python module to bring image files together. I created a
command line utility to automatically do it with lots of option. The help
document explain everything about itself:This program merges image files in a directory and creates a PDF file. Every
image get put to a page that exact same size as itself.

        Usage:
            img2pdf+ [OPTIONS] [OUTPUT FILE]

        Parameters:
            -h, --help             : Print this help document and exit.
            -d, --dir [DIRECTORY]  : Set directory to work on. Default is
                                     working directory.
            -q, --quiet            : Do not print process details.
            -r, --reverse          : Reverse image order.
            -n, --negative         : Invert colors of images. May be useful to
                                     make black & white documents dark.
            -g, --grayscale        : Make colors shades of gray.
            -f, --force            : Overwrite to existing PDF file.
            -i, --interactive      : Prompt before overwrite.
            -D, --decline          : Do not let overwrite. Ignores --force and
                                     --interactive parameter. This option does
                                     not return any error if file already exists.
            -e, --except           : Do not include images that have no read
                                     permission.
            -s, --selective        : Let selecting which image will be
                                     included.
            -S, --sort-by [METHOD] : Set sorting method. available methods are:
                                     name (default), m_time (modification time),
                                     c_time (change time).
            -p, --page-size [SIZE] : Fixed page size, strech photos to page.
                                     Options are: A4, A3, A5, Letter, Legal,
                                     WITDHxHEIGHT (in pt).
            -L, --landscape        : Rotate images to landscape. (Do not change if
                                     already is.)
            -P, --portrait         : Rotate images to portrait. (Do not change if
                                     already is.)

        Exit Codes:
              0 : Program done it's job successfully.
              1 : An error occurred.
              2 : Parameter fault. Please check your command.
              3 : No valid image file in directory.
              4 : User declined overwrite.
              5 : File exist and overwrite not allowed.
              6 : Directory does not exist.
            126 : File permission denied. Check file permissions.
            130 : Process terminated by user.