Saravanan666/pypi-org huggingface dataset:
Package: ilogger
ilogger超简单的日志模块，导入即用如何使用它?>>>pipinstallilogger简单使用，默认级别为 INFOfromiloggerimportloggerlogger.debug('this is debug message')logger.info('this is info message')[2019-09-24 19:54:23,544]   INFO: this is info message设置 logger 级别fromiloggerimportloggerlogger.setLevel(logger.DEBUG)logger.debug('this is debug message')logger.info('this is info message')logger.warning('this is warning message')logger.warn('this is warning message')logger.error('this is error message')logger.critical('this is critical message')[2019-09-24 19:54:23,544]  DEBUG: this is debug message
[2019-09-24 19:54:23,544]   INFO: this is info message
[2019-09-24 19:54:23,544]WARNING: this is warning message
[2019-09-24 19:54:23,544]WARNING: this is warning message
[2019-09-24 19:54:23,544]  ERROR: this is error message
[2019-09-24 19:54:23,544]CRITICAL: this is critical message设置 logger 格式fromiloggerimportloggerlogger.setFormatter(fmt='[%(asctime)s]%(levelname)7s[%(filename)s:%(lineno)s]:%(message)s')logger.debug('this is debug message')logger.info('this is info message')[2019-09-24 19:54:23,544]  DEBUG[demo.py:21]: this is debug message
[2019-09-24 19:54:23,544]   INFO[demo.py:22]: this is info message将日志写入到文件fromiloggerimportlogger# 设置 logger 格式logger.setFormatter(fmt='[%(asctime)s]%(levelname)7s[%(filename)s:%(lineno)s]:%(message)s')logger.setFileHandler('mylog.log')logger.debug('this is debug message')logger.info('this is info message')logger.warning('this is warning message')./mylog.log[2020-02-28 20:57:17,199]   INFO[demo.py:35]: this is info message
[2020-02-28 20:57:17,199]WARNING[demo.py:36]: this is warning message
Package: ilo-utils
=========ilo-utils=========Utilities for interacting with ILO.* Documentation: https://jonstacks13.github.io/ilo-utils/Install-------`ilo-utils` is hosted on `PyPI <https://pypi.python.org/pypi>`_. You caninstall it with pip::pip install ilo-utils=======History=======------------------0.3.0 (2016-01-04)------------------Features--------* Added a `--skip-port-check` flag to the `ilo-sweep` command. This skips theinitial check for the open ILO port and instead relies on whether or notthe REST request itself was successfull.------------------0.2.0 (2016-01-03)------------------Features--------* Added more fields to `ilo-sweep` table.------------------0.1.1 (2016-01-01)------------------Fixes-----* Fixed pypi installation issues.------------------0.1.0 (2016-01-01)------------------Features--------* `ilo-sweep` command for sweeping a network for ILO devices.
Package: iloveck101
我愛卡提諾==========![](https://badge.fury.io/py/iloveck101.png)沒錯, 你沒看錯, 我愛卡提諾。我只想看圖, 可是卡提諾的網站載入太慢, 一堆廣告跟不必要的資訊, 還要等圖片 lazy load, 所以寫了這個 iloveck101, 直接先把圖片都下載下來, 看圖快多了。目前只支援 Mac, Linux 我不確定。by tzangms aka 海總理 2013.12.02如何安裝==========```bash$ sudo pip install iloveck101```如何使用===========```bash$ iloveck101 [url]```for example, 你可以試試看思穎```bash$ iloveck101 http://ck101.com/thread-2876990-1-1.html```最後你可以在你 Mac 的「圖片」資料夾裡發現 `iloveck101` 的目錄, 你會很驚訝, 怎麼圖片都已經抓好放在裡面了呢?!沒錯, 這就是對卡提諾的愛啊!看起來像這樣==============![圖片資料夾](https://raw.github.com/tzangms/iloveck101/master/docs/images1.png)![圖片](https://raw.github.com/tzangms/iloveck101/master/docs/images2.png)[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/tzangms/iloveck101/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
Package: ilovejkf
Description: I love jkforum==========Inspired by iloveck101How to install==========```bashpip install ilovejkf```How to use==========```bashilovejkf [jkforum url]```Example```bashilovejkf https://www.jkforum.net/thread-xxxxx-1-1.html```You could find account folder in ~/Pictures/`ilovejkf`Platform: UNKNOWN
Package: ilovetim
Description: I love timliao==========Inspired by iloveck101How to install==========```bashpip install ilovetim```How to use==========```bashilovetim [timliao url]```Example```bashilovetim http://www.timliao.com/bbs/viewthread.php?tid=xxxxx```You could find account folder in ~/Pictures/`ilovetim`Platform: UNKNOWN
Package: ilp-keyboard-layout-optimization
Keyboard layout optimization via ILPThis repository contains my implementation of the task to optimize a keyboard layout
in terms of assigning the available characters to the keys in a clever way. This is
part of my participation in theSeminar: Integer Programming modeling of puzzles,
games, and real-world problemsduring the winter term 21/22 at Technische
Universität zu Berlin.UsageThis code requires theSCIP Optimization Suiteto be installed on the machine to be
used, which we prepared in a Docker image atdocker_pyscipopt. The proper use of this image
is well documented in itsREADME.md. The
actual code can then be found in thesrc/ilp_keyboard_layout_optimizationsubfolder.Remote developmentWe includeda bash scriptpull_and_optimize.shin our codebase to streamline a remote development workflow. We work on the code on a
computer, that is well-equipped for that task. The committed and pushed code then
gets processed on another machine, which uses this script, to update its code base
and run the parameters handed over. It is designed to be called without parameters
to execute theoptimizemodule of thelatest version released on Test.PyPI.org.$./pull_and_optimize.shThe execution requires the Docker image of our repositorydocker_pyscipoptto be built in advance, but it
could be easily adapted for a local installation of the SCIP Optimization Suite.
Package: ilpy
# ilpy[![License](https://img.shields.io/pypi/l/ilpy.svg)](https://github.com/funkelab/ilpy/raw/main/LICENSE)
[![Anaconda](https://img.shields.io/conda/v/funkelab/ilpy)](https://anaconda.org/funkelab/ilpy)
[![PyPI](https://img.shields.io/pypi/v/ilpy.svg)](https://pypi.org/project/ilpy)
[![CI](https://github.com/funkelab/ilpy/actions/workflows/ci.yaml/badge.svg)](https://github.com/funkelab/ilpy/actions/workflows/ci.yaml)
[![codecov](https://codecov.io/gh/funkelab/ilpy/branch/main/graph/badge.svg)](https://codecov.io/gh/funkelab/ilpy)Unified python wrappers for popular ILP solvers## Installation`bash conda install-cfunkelab ilpy `## Local developmentilpy links against SCIP, so you must have SCIP installed in your environment.
(You can install via conda)`bash conda install scip `Then clone the repo and install in editable mode.`bash git clone<your-fork>cd ilpy pip install-e.[dev] `
Package: il-supermarket-scraper
Israel Supermarket Scraper: Clients to download the data published by the supermarkets.This is a scraper for ALL the supermarket chains listed in the GOV.IL site.שקיפות מחירים (השוואת מחירים) -https://www.gov.il/he/departments/legalInfo/cpfta_prices_regulationsScheduled Automatic Testing:
The test-suite is scheduled to run every three days, so you can see if the supermarket chains has chanced something in their interface and the package will not work probably. however, the tests running here are also integration tests with the APIs which may fail.Status:Notice:Berekt and Quik are flaky! They will not fail the testing framework, but you can still use them.some of the scrapers site are blocked to be accessed from outside of israel.Got a question?You can email me aterlichsefi@gmail.comIf you think you've found a bug:Create issue inissue trackerto see if
it's already been reportedPlease consider solving the issue by yourself and creating a pull request.What is il_supermarket_scarper?There are alot of projects in github trying to scrape the supermarket data, most of them are not stable or wasn't updated for a while, it's about time there will be one codebase that does the work completely.You only need to run the following code to get all the data currently shared by the supermarkets.fromil_supermarket_scarperimportMainScrapperRunnerscraper=MainScrapperRunner()scraper.run()Please notice!
since new files are constantly uploaded by the supermarket to their site, you will only get the current snapshot. In order to keep geting data, you will need to run this code more the one time to get the newly uploaded files.Quick startil_supermarket_scarper can be installed using pip:python3 -m pip install -U il-supermarket-scraperIf you want to run the latest version of the code, you can install from the
repo directly:python3 -m pip install -U git+https://github.com/erlichsefi/israeli-supermarket-scarpers.git
# or if you don't have 'git' installed
python3 -m pip install -U https://github.com/erlichsefi/israeli-supermarket-scarpers/masterRunning DockerThe docker is designed to run the scaper every 6 hours, (you change the cron expression if you would like, checkout the file 'crontab'), in every itreation the scraper will collect the files avaliabe to download and check if the file alreay exists before fetching it, either by scaning the dump folder, or checking the mongo.docker-compose up -dor if you want to use the existing image from docker hub:docker pull erlichsefi/israeli-supermarket-scarpers:latestContributingHelp in testing, development, documentation and other tasks is
highly appreciated and useful to the project. There are tasks for
contributors of all experience levels.If you need help getting started, don't hesitate to contact me.Development statusIL SuperMarket Scraper is beta software, as far as i see devlopment stoped until new issues will be found.
Package: ilua
ILuaILuais a feature-packed, portable console andJupyterkernel for theLualanguage.FeaturesLua-implementation agnosticShould work with any lua interpreter out of the boxWorks with Lua5.1-5.3,LuaJITand even some exotic implementations likeGopherLuaCode completionsCode inspectionRetreive function documentationCan even retreive the function source if available (invoked with ??)Pretty-printed resultsAccess last result with _Cross-session execution historyWorks on Linux and WindowsNo native dependencies for LuaPython's pip based installationProject StatusILua is under heavy development, but I would still really appreciate if you could open an issue about what bothers you, or even send a pull request!Installationpipinstallilua# From sourcegitclonehttps://github.com/guysv/ilua.git--recurse-submodulescdilua
pipinstall-e.--user
pythonsetup.pyinstall_data-d~/.local# pip install -e . forgets data_files...A Bit on ILua's ArchitectureAs opposed to existing Lua Jupyter kernels which implement the Jupyter protocol in Lua (and depend on lzmq which is a native module), ILua implements the communication with Jupyter in Python, which in turn talks with Lua via named-pipe IPC. This frees ILua from being bounded to a single Lua implementation ABI.
Package: ilum
Ilum Job API Python PackageThis package provides an interface for interacting with Ilum's Job API using Python. With this package, you can create your own interactive spark job.InstallationUse pip to install the ilum-job-api package:pipinstallilumUsageHere's a simple example of how to use it:fromilum.apiimportIlumJobfromrandomimportrandomfromoperatorimportaddclassSparkPiInteractiveExample(IlumJob):defrun(self,spark,config):partitions=int(config.get('partitions','5'))n=100000*partitionsdeff(_:int)->float:x=random()*2-1y=random()*2-1return1ifx**2+y**2<=1else0count=spark.sparkContext.parallelize(range(1,n+1),partitions).map(f).reduce(add)return"Pi is roughly%f"%(4.0*count/n)For more detailed usage instructions, see ourDocumentationandAPI Reference.LicenseThis project is licensed under the terms of the Apache License 2.0.ContactIf you have any issues or feature requests, pleasecreate an ideaon our board. For general questions or discussions, post a questionhere.
Package: ilytix
ilytixA simple command-line tool for visual image analysis, with features like checking image integrity, deduplication, and retrieval, written in Rust.Installationpipinstall-Uilytix# orcargoinstallilytixGetting StartedCheck the integrity of images (检查图片完整性)It will attempt to repair incorrect image formats whenever possible.ilytixcheck-i./datasets-r-oA/B/COptions:-i <PATH>Path for input file or folder.-o <PATH>Path for setting the saving results.-r,--recursiveRecursively traverse folders to obtain files.--mvStore results by moving instead of copying.And you'll see something like this✔Source·/home/qweasd/Desktop/datasets›Folder
✔Recursively·true🐢IntegrityChecking[####################] 73/73 (100% | 0.00s | 00:00:00)✔Found·x73·Intact›x34·Incorrect›x3·DeprecatedOrUnsupported›x36

🐢Saving(Copy)[####################] 73/73 (100% | 0.00s | 00:00:00)✔Resultssavedat·/home/qweasd/Desktop/A/B/CImages deduplication (图片去重)Used for deduplicating images within a folder.ilytixdedup-i./datasets-r-oA/B/COptions:-i <PATH>Path for input folder.-o <PATH>Path for setting the saving results.-r,--recursiveRecursively traverse folders to obtain files.--mvStore results by moving instead of copying.-threshUsed to adjust image similarity threshold.And you'll see something like this✔Source·/home/qweasd/Desktop/datasets›Folder
✔Recursively·true🐢Building[####################] 73/73 (100% | 0.00s | 00:00:00)✔Index·Capacity›73·Size›37·Dimensions›32🐢Deduplicating[####################] 73/73 (100% | 0.00s | 00:00:00)✔Found·Duplicated›x17·Curated›x20·DeprecatedOrUnsupported›x36

🐢Saving(Copy)[####################] 73/73 (100% | 0.00s | 00:00:00)✔Resultssavedat·/home/qweasd/Desktop/A/B/C-1TODOimages integrity checkimages de-duplicateimage-image retivaltext-image retrivalimage catption
Package: im2ascii
Im2asciiA small python project that transforms images into ascii textFirst of all import the package with:pip install im2asciinow import the package to your code:import im2asciiNow lets use it!The only function is asciify, see:im2ascii.asciify("/full/path/to/image.png")This will return your image except it is typed in ascii characters!Aditional ParametersThere are only two aditional paramters for the function, square and invert.
The square parameter makes sure your image is returned squared and not a rectangle. This is activated by default on the function, to deactivate it just use:asciify('image.png', square=False)The invert parameter invert the tones on the result of the image. like so:
For white tones, a '.' will be added, and for darker tones, a '@' will be the result. if you useinvert=True, this will be inverted.
Package: im2deep
IM2DeepCollisional cross-section prediction for (modified) peptides.IntroductionIM2Deep is a CCS predictor for (modified) peptides.
It is able to accurately predct CCS for modified peptides, even if the modification wasn't observed during training.InstallationInstall with pip:pip install im2deepUsageBasic CLI usage:im2deep<path/to/peptide_file.csv>If you want to calibrate your predictions (HIGHLY recommended), please provide a calibration file:im2deep<path/to/peptide_file.csv>--calibration_file<path/to/peptide_file_with_CCS.csv>For an overview of all CLI arguments, runim2deep --help.Input filesBoth peptide and calibration files are expected to be comma-separated values (CSV) with the following columns:seq: unmodified peptide sequencemodifications: every modifications should be listed aslocation|name, separated by a pipe character (|)
between the location, the name, and other modifications.locationis an integer counted starting at 1 for the
first AA. 0 is reserved for N-terminal modifications, -1 for C-terminal modifications.namehas to correspond
to a Unimod (PSI-MS) name.charge: peptide precursor chargeCCS: collisional cross-section (only for calibration file)For example:seq,modifications,charge,CCS
VVDDFADITTPLK,,2,422.9984309464991
GVEVLSLTPSFMDIPEK,12|Oxidation,2,464.6568644356109
SYSGREFDDLSPTEQK,,2,468.9863221739147
SYSQSILLDLTDNR,,2,460.9340710819608
DEELIHLDGK,,2,383.8693416055445
IPQEKCILQTDVK,5|Butyryl|6|Carbamidomethyl,3,516.2079366048176
Package: im2dhist
im2dhistThis small piece of code is intended to help researchers, especially in field of image processing, to easily calculate two dimensional histogram of a given image.How it worksA moving window of WxW moves through out the given image, and as its center places on each pixel, number of encounters with same and other brightness intensities is counted seperately. This package basically outputs a normalized two dimensional numpy array of brightness intensity encounters.w_neighboring=1 corresponds to a square of 3x3.InstallationRun the following to install:pipinstallim2dhistUsagefromim2dhistimportim2dhistimportcv2importnumpyasnpfrommpl_toolkitsimportmplot3dimportmatplotlib.pyplotaspltdefmain():image_name='Plane.jpg'image=cv2.imread(image_name)# converts rgb image to graygray_image=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)# 2*w_neighboring+1 is width of the square window around each pixel, when counting neiboring pixels# calculate 2 dimensional histogram of gray_imagev_image_2DHisteq=im2dhist(gray_image,w_neighboring=6)# plots 2D-Histogram[K,_]=v_image_2DHisteq.shapex=np.outer(np.arange(0,K),np.ones(K))y=x.copy().T# ln-ing v_image_2DHisteq makes its details more prominent.Hist2D_ln=v_image_2DHisteq.copy()Hist2D_ln[np.where(Hist2D_ln<=0)]=1e-15z=np.log(Hist2D_ln)fig=plt.figure()ax=plt.axes(projection='3d')ax.plot_surface(x,y,z,cmap='viridis',edgecolor='none')ax.set_title(f'2D-Histogram of{image_name}')plt.show()if__name__=='__main__':main()ShowcaseThis is a sample imageTwo dimensional histogram of the sample image
Package: im2dhisteq
im2dhisteqThis module attempts to enhance contrast of a given image by equalizing its two dimensional histogram. An easy way to enhance quality of a given image is to just equalize its histogram, but despite using minimum resources and a very short process time, there are a lot of drawbacks to it.
One of the ways to tackle drawbacks ofhistogram equalization methodis to instead equalize the image'stwo dimensional histogram, as one dimensional histogram of a given image does not contain the image's contextual information. Tests on a multitude of images has shown, by taking contextual information of an image in addition to the image's histogram into account when attempting to enhance contrast, output images are significantly better in quality in compare to histogram equalizaion and a handful of other known methods.You can access the article that came up with this methodhere.Two Dimensional HistogramHereis the source code for the im2dhist python library with a short description on how it's done.InstallationRun the following to install:pipinstallim2dhisteqUsageFor imagesim2dhisteq--input'cloudy-day.jpg'--output'assets/cloudy-day-2dhisteq.jpg'--w6For videosvid2dhisteq--input'video-input.mp4'--output'video-output-enhanced.mp4'--w6Speed upThe speed of the program can be significantly increased if the go librarylib-im2dhist.goin src/go_libs in the package is compiled and moved to a dir in the system path.
To compile, first make suregois installed on your system. Then rungomodinitlib-im2dhist.go
gomodtidyfollowed by running the scriptmake-library.Download binaryInstead of compiling the go librarylib-im2dhist.go, you can download the library based on your system configuration:lib-im2dhist-linux-amd64.solib-im2dhist-linux-arm64.solib-im2dhist-linux-arm.solib-im2dhist-linux-386.solib-im2dhist-windows-amd64.dlllib-im2dhist-windows-386.dlllib-im2dhist-darwin-amd64.dyliblib-im2dhist-darwin-arm64.dylibShowcaseA one minute comparative video:https://youtu.be/7LrzX2ZpLAQThis is a sample image and its corresponding 2d-histogram equalized image.
Package: im2pdf
This is command line tool that convert images to pdf and unite them.Supported file: jpeg, png, gifInstallationPyPIThe recommended process is to install the PyPI package, as it allows easily staying update.$ pip install im2pdfgithubDownload fromhttps://github.com/tkmru/im2pdf/.Let’s push star!!$ git clone https://github.com/tkmru/im2pdf/
$ cd im2pdf
$ python setup.py installUsageThe following options are available:-i input file name-o output file name(default: output.pdf)convert single image file to PDF$ im2pdf -i test.jpg
completed.
test.jpg --> output.pdf

$ im2pdf -i test.jpg -o test.pdf
completed.
test.jpg --> test.pdfconvert some file to single PDF.It support some pdf, too.ex) test1.jpg, test2.jpg, test3.jpg to output.pdf$ im2pdf.py -i test*.jpg
completed.
Union of some file is output.pdfex) test1.jpg, test2.jpg, test3.jpg to test.pdf$ im2pdf.py -i test*.jpg -o test.pdf
completed.
Union of some file is test.pdfLicenseMIT LicenseTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Copyright (c) @tkmru
Package: im2txt
first import the package on your terminal with pip:pip3 install im2txtnext you import the module:import im2txtnow you just need to encode the image of your preference:im2txt.encode('/path/to/image/pooptest.jpg')you will receive apooptest.txtfile.
This file will have the pixel value of all pixels on the image.To decode the .txt file back to an image we use:im2txt.decode('path/to/txtfile/pooptest.txt')you will receive the encoded image back again in form of .png!
Package: image2ascii
Image2ASCIIConverts images to ASCII, with a twist; it traces edges in the image and attempts to render them with suitably formed characters, à la good old handmade ASCII art:It can also crop, output ANSI colour, adjust contrast/colour balance/brightness, invert, and other nice stuff, as well as render HTML.InstallationFrom PyPI# Minimal install:pipinstallimage2ascii# Install with WSGI capabilities (see below):pipinstallimage2ascii[www]From source# You do use virtual envs, right?python3-mvenv.venvsource.venv/bin/activate# Minimal install:pipinstall-e.# Install with WSGI capabilities (see below):pipinstall-e.[www]UsageCLIInstallation per instructions above creates animage2asciicommand; run it for more info. Play around with various combinations of--invert,--negative,--contrast,--brightness, and--color-balance, until the results are to your liking.--colorand--cropare also highly recommended.WSGIImage2ASCII can run as a simple WSGI application, courtesy of Flask. Just make sure you have installed it with the necessary extra requirements, either by runningpip install image2ascii[www]or manually installingFlaskandrequests.For this purpose, a fully working web implementation is also included. Not only does it leverage Image2ASCII's various features, it also enables drag-and-drop and pasting of images, and includesall sovereign state flagsfrom Wikipedia for the user to choose from. A live version is (at the time of writing) availablehere.Installation viapipwill also create animage2ascii_testservercommand with an optional port number argument (default is port 8000). Use it to fire up a basic web server on localhost and try it out. (Executingwsgi.pydirectly from the command line achieves the same thing.)Here is a suggested (albeit untested)Supervisorsetup:/etc/supervisor/conf.d/image2ascii.ini:[program:image2ascii]directory=/path/to/image2asciicommand=/path/to/image2ascii/.venv/bin/uwsgi --ini config.ini/path/to/image2ascii/config.ini:[uwsgi]module=image2ascii.wsgi:applicationmaster=trueprocesses=5socket=/tmp/image2ascii.sockchmod-socket=666vacuum=trueConfigurationThe CLI looks for config files in these locations, by order of priority:Path set via--configparameter~/.image2asciidefaults.confin application directory (i.e. the directory whereconfig.pyis located)The WSGI application looks for these config files, by order of priority:web_defaults.confin application directory (a default one is included)~/.image2asciidefaults.confin application directoryConfig files follow a normal INI file structure (key=value). For available keys, refer toconfig.py(more specifically:config.Config._fields).Everything elseThis project is totally in beta, and so its API should not be considered stable.Shouts out to:PillowMatplotlibColoramaNumpyFlask