Saravanan666/pypi-org huggingface dataset:
Package: recaptcha-client
Provides a CAPTCHA for Python using the reCAPTCHA service. Does not requireany imaging libraries because the CAPTCHA is served directly from reCAPTCHA.
Also allows you to securely obfuscate emails with Mailhide. This functionality
requires pycrypto. This library requires two types of API keys. If you’d like
to use the CAPTCHA, you’ll need a key fromhttps://www.google.com/recaptcha/admin/create.
For Mailhide, you’ll need a key fromhttp://www.google.com/recaptcha/mailhide/apikey.The trunk can be checked out fromhttp://recaptcha.googlecode.com/svn/trunk/recaptcha-plugins/python,
and the associated Google Code project lives athttp://code.google.com/p/recaptcha. Note that this is a shared
project/repository for reCAPTCHA clients for several languages/environments.There is also a Google Group athttp://groups.google.com/group/recaptcha/.
Please use the associated mailing list for any questions or comments:recaptcha@googlegroups.com. Like the Google Code project, the Google Group
mailing list is also shared among the several reCAPTCHA client implementations.The reCAPTCHA module is licensed under an MIT/X11 license.
Package: recaptcha-solver
Recaptcha solverResolve Recaptcha usando selenium e o pyautogui.Instalação:$ pip install recaptcha-solverParâmetros:path_download [string]: Local de download padrão do navegador.img_activate_recaptcha [string]: Caminho da imagem que ativa a tela do Recaptcha.img_sound [string]: Caminho da imagem que ativa a tela de som do Recaptcha.img_reset_recaptcha [string]: Caminho da imagem que faz o reset do Recaptcha.img_download_recaptcha [string]: Caminho da imagem que abre a tela para download som do Recaptcha.img_error_recaptcha [string]: Caminho da imagem com erro do Recaptcha.img_options_sound [string]: Caminho da imagem que abre a tela de opções para download som do Recaptcha.img_download_sound [string]: Caminho da imagem que faz o download do som do Recaptcha.img_close_sound [string]: Caminho da imagem que fecha a tela de download do som do Recaptcha.imgs_text_box [list]: Caminho da imagem que ativa a caixa de texto do Recaptcha.imgs_verify [list]: Caminho da imagem do botão para verificação do Recaptcha.img_check [string]: Caminho da imagem com o OK do Recaptcha.img_back_page [string] (default=None): Caminho da imagem para entrar novamente na página que contém o Recaptcha.number_try [int] (default=None): Numero de tentativas, por padrão é 5.language [string] (default='en-US'): Linguagem para quebra do audio do recaptcha.Retorno:Boll, casoTrueo Recaptcha foi quebrado com sucesso, casoFalse, o RecaptchaNÃOfoi quebrado.Como usar:Google chrome debug:Para o Recaptcha não marcar o driver do selenium como um robô, é necessário iniciar o chrome com o seguinte comando:$ "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=8989 --user-data-dir="seu-local-para-salvar-dados"Configurando o driver do selenium:É necessário passar alguns parâmetro no selenium para o correto funcionamento dele, os comandos são:chrome_options.add_experimental_option(
         'debuggerAddress',
         'localhost:8989'
     )
     chrome_options.add_argument('--ignore-certificate-errors')
     chrome_options.add_argument("--start-maximized")
     chrome_options.add_argument('--ignore-ssl-errors')Código de apoio:Para um maior compreendimento de como utilizar a biblioteca, é possível ver o códigotest.py, onde ocorre a quebra do Recaptcha no siterecaptcha/api2/demo.Desinstalar:$ pip uninstall recaptcha-solver
Package: recast
recastpython bit recasterConvenient functions for converting bytes into various different python
types. These functions do not modify the underlying bits, but rather,
how they are interpreted in python.Examples>>>importrecast>>>hex(recast.int2uint(-1))'0xffffffff'>>>recast.double2bytes(4.400150012111731e-110)b'recast:)'Licenserecast - python bit recaster
Copyright (C) 2021 Phil Dreizen and Miccah Castorina
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
USA
Package: recastai
[logo]: https://cdn.recast.ai/brand/recast-ai-logo-inline.png "Recast.AI"![alt text][logo]# Recast.AI - SDK PythonRecast.AI official SDK in Python## OverviewThis module is a wrapper around the [Recast.AI](https://recast.ai) API, and allows you to:* [Analyse your text](https://github.com/RecastAI/SDK-python/wiki/01-Analyse-Text)* [Manage a conversation](https://github.com/RecastAI/SDK-python/wiki/02-Manage-conversation)* [Receive and send messages](https://github.com/RecastAI/SDK-python/wiki/03-Receive-and-send-messages)## Installation#### Using pipInstall from PyPi using [pip](http://www.pip-installer.org/en/latest/), apackage manager for Python.pip install recastaiDon't have pip installed? Try installing it, by running this from the commandline:$ curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python#### With the source codeYou can [download the source code(ZIP)](https://github.com/recastAI/SDK-python/zipball/master "Recast.AI-pythonsource code") for `RecastAI-python`, and then run:python setup.py installYou may need to run the above commands with `sudo`.This library supports both `python 2.7+` and `python 3.5+`.You can now use the sdk in your code.## UsageUsing the entire SDK:```pythonimport recastaiclient = recastai.Client('YOUR_TOKEN')client.request.analyse_text('Hi')client.connect.broadcast_message('Hi')```Extracting one single API:```pythonfrom recastai import Request, Connectrequest = Request('YOUR_TOKEN')request.analyse_text('Hi')connect = Connect('YOUR_TOKEN')connect.broadcast_message('Hi')```## MoreYou can view the whole API reference at [man.recast.ai](https://man.recast.ai).## AuthorPaul Renvoisé, paul.renvoise@recast.ai, [@paulrenvoise](https://twitter.com/paulrenvoise)You can follow us on Twitter at [@recastai](https://twitter.com/recastai) for updates and releases.## LicenseCopyright (c) [2018] [Recast.AI](https://recast.ai)Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, 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 THESOFTWARE.
Package: recast-atlas
RECAST for ATLASATLAS tools to facilitate integration of ATLAS analyses into RECASTGetting StartedInstallrecast-atlasis installable from PyPI usingpipinside of your Python virtual environmentpython -m pip install recast-atlasCLI APITherecast-atlasCLI API:$ recast --help
Usage: recast [OPTIONS] COMMAND [ARGS]...

Options:
  -l, --loglevel TEXT
  --help               Show this message and exit.

Commands:
  auth       Authentication Commands (to gain access to internal data)
  backends   The RECAST computational backends.
  catalogue  The RECAST Analysis Catalogue
  ci         Helper Commands for CI systems
  retrieve   Retrieve RECAST Results from asynchronous submissions
  run        Run a RECAST Workflow synchronously
  software   Build Container Images for RECAST
  status     Get the Status of a asynchronous submission
  submit     Submit a RECAST Workflow asynchronously
  tests      Run a testRunning RECASTrecast-atlasaims to enable both local execution as well as asynchronous execution on aREANAcluster.Local backendRun the example from theATLAS Exotics Rome Workshop 2018using thelocalbackend:python -m pip install --upgrade 'recast-atlas[local]'recast run examples/rome --backend localREANA cluster backendAsynchronously run the example from theATLAS Exotics Rome Workshop 2018using thereanabackend:python -m pip install --upgrade 'recast-atlas[reana]'recast submit examples/rome --backend reanaOnLXPLUS9ssh lxplus9.cern.chsource ~recast/public/setup.shrecast catalogue lsrecast run examples/rome
Package: recast-workflow
Recast_workflow is a tool for creating new computation workflow for
running physics analyses. The generated workflows are interpreted by theYadage engineand are stored as .yml files. The package comes with a
command line interface as well as a python library.Read the documentationhere.This was developed as part of IRIS-HEP fellowship. The full proposal can
be viewedhere.InstallationYou can use pip to install recast-workflow:pip install recast-workflowRecast-workflow was not developed for Windows file systems, so Windows
users are reccomended to work inside a docker image:docker pull recast/workflowDevelopment NotesTo install and run all tests:git clone url
cd recast_workflow
python3 -m venv ./venv
source venv/bin/activate
source dev_setup.sh
pip install -e .[test]
pytest
Package: recat
recat - Replay logfiles in simulated real-time=================================================What does that mean?--------------------Quite simply it means that if you give `recat` a logfile and a list offields that represent a time, it'll attempt to replay the log entries asthey happened.Won't that take a lot of time?------------------------------Of course! This is why I've added the `-n` option, which allows you tospecify a speed up factor. So, if you say -n 1000, that means all thethings that happened within 1000 seconds of each other will be shown within1 second of each other instead.Does this support nyanbar?--------------------------Not yet.Options-------Part of the problem is that log files don't always have consistent locationsfor date/time. As a result, you'll likely have to tell `recat` where to look,and in what format the date/time is in.-f 1,2,3,4   - Given a separator, which fields (indexed from 1) should beconsidered as the date/time?-n NUM       - This is the speedup factor that I discussed before-s SEPARATOR - A list of delimeters (not comma separated, just list themex: " ,-" would be a space or a comma or a dash)-t FORMAT    - This is the difficult one. The format that the time is in.The default is '%Y-%m-%d %H:%M:%s' This uses the formatspecifiers as per `time.strftime()` in Python.(http://docs.python.org/library/time.html#time.strftime)Putting it all together, you've got:$ recat -f 1,2 -n 10 -s ' ,' file.logBlammo!Licensing---------recat is licensed under the GPLv3. Read the LICENSE file for more info
Package: recat-color
# recatA colorful and highly configurable alternative to the `adb logcat` command fromthe Android SDK with on the fly deobfuscation! (based on Marshall Culpepper's great [logcat-color](https://github.com/marshall/logcat-color)).recat uses [pyretrace](https://github.com/EverythingMe/pyretrace) to deobfuscate logs.**Note**: recat (logcat-color) is targetted at OS X and Linux, and does not currentlywork in Windows.[![PyPI version](https://badge.fury.io/py/recat-color.svg)](https://badge.fury.io/py/recat-color)# Installation**Installation via pip**```bash$ pip install recat-color```**Installation from source** (requires setuptools, may require sudo)You can clone the recat git repository directly:```bash$ git clone https://github.com/EverythingMe/recat.git```To install logcat-color from the source directory, run:```bash$ sudo pip install .```or```bash$ sudo python setup.py install```## Examples#### for logcat-color usage examples, configuration and profiles, go to (logcat-color's original [README](https://github.com/marshall/logcat-color/blob/master/README.md))##Deobfuscation**recat** retraces obfuscated logs using [pyretrace](https://github.com/EverythingMe/pyretrace), a python reimplementation on Proguard's Retrace, with a deobfuscation API for python.When looking at logs from an obfuscated release build, trace messages are obfuscated too, here's a crash log from EverythingMe Launcher's release build:![original log output](original.png)Supplying a mapping file path as a command line argument will trigger the deobfuscation mechanism, causing every log line to go through pyretrace's deobfuscator.```bash$ recat -m path/to/mapping/file.txt```Same log, now with mapping file path added:![With Recat](deobfuscated.png)This will make the best effort to deobfuscate the 'message' in each line.### Deobfuscating tagsThe following snippet is taken from [iosched](https://github.com/google/iosched/blob/master/android/src/main/java/com/google/samples/apps/iosched/util/LogUtils.java). It became a pretty popular strategy for log tag creation.```javapublic static String makeLogTag(String str) {if (str.length() > MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH) {return LOG_PREFIX + str.substring(0, MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH - 1);}return LOG_PREFIX + str;}/*** Don't use this when obfuscating class names!*/public static String makeLogTag(Class cls) {return makeLogTag(cls.getSimpleName());}```If you use this type of deobfuscation and wish to deobfuscate the tag as well, you must supply a prefix for your tags (i.e. `LOG_PREFIX`), here's an example:EverythingMe Launcher used `ev.` as its base log prefix, adding `-t ev` will now deobfuscate the tags as well:```bash$ recat -m path/to/mapping/file.txt -t ev```Same output, now with deobfuscated tags:![Deobfuscated with tags](deobfuscated_with_tags.png)## TODO - Mapping FetcherI also added a skeleton for a mapping file fetcher. It should auto download a mapping file from a file server by supplying a mapping file path template.## ThanksThanks to [Marshall Culpepper](https://github.com/marshall) for the great [logcat-color](https://github.com/marshall/logcat-color).
Package: rec-avro
rec-avro:Avro support for JSON and other nested data structures.Rec-avro provides a generic Avro schema and converter functions that allow for storing nested python data structures in avro.Tested in Python 3 only.Installation:$pip3installrec-avroUsage:With fastavro:fromfastavroimportwriter,reader,schemafromrec_avroimportto_rec_avro_destructive,from_rec_avro_destructive,rec_avro_schemadefjson_objects():return[{'a':'a'},{'b':'b'}]# For efficiency, to_rec_avro_destructive() destroys rec, and reuses it's# data structures to construct avro_objectsavro_objects=(to_rec_avro_destructive(rec)forrecinjson_objects())# store records in avrowithopen('json_in_avro.avro','wb')asf_out:writer(f_out,schema.parse_schema(rec_avro_schema()),avro_objects)#load records from avrowithopen('json_in_avro.avro','rb')asf_in:# For efficiency, from_rec_avro_destructive(rec) destroys rec, and# reuses it's data structures to construct it's outputloaded_json=[from_rec_avro_destructive(rec)forrecinreader(f_in)]assertloaded_json==json_objects()Development:# Running all tests:$pythonsetup.pypytest# Running tests manually$pip3installfastavropytest
$pythonsetup.pydevelop
$pytesttests/test_rec_avro.py
Package: reccd
reccdDaemon helper for the ANSWERAboutA wrapper to easily adapt gRPC communication without implementing protobuf.UsagePrint help message:python -m reccd --helpPrint version number:python -m reccd --versionPrints a list of available modules:python -m reccd -vvv modulesStart the gRPC daemon server:python -m reccd -l -d -vvv server -a 0.0.0.0:8080 templateCommunicates with the daemon server:python -m reccd -l -d -vvv client -a 0.0.0.0:8080 messageLicenseSee theLICENSEfile for details. In summary,reccdis licensed under theMIT license.
Package: receipt2vec
Receipt2vecFramework по переводу строки товара из чека в векторное представление. Это способ формирования признаков (feature enginering) на которых пользователи смогут строить свои модели - модели оттока, рекомендации и тп. В частности, обмениваться признаками с партнёрами.Установкаpython3-mvenvvenvsourcevenv/bin/activate
pipinstallreceipt2vecИспользованиеCLIПеревод тестового файла в формате CSV.$receipt2vec--help
usage:receipt2vec[-h]-iINPUT-oOUTPUT[--batchBATCH][--gpuGPU][--bpeBPE][--encoderENCODER][--write_headerWRITE_HEADER][--use_columnsUSE_COLUMNS]optionalarguments:-h,--helpshowthishelpmessageandexit-iINPUT,--inputINPUTPathtoinputfilewithreceiptsandprices-oOUTPUT,--outputOUTPUTPathtooutputfilewithresults--batchBATCHBatchsize[Default128]--gpuGPUNumofgpu.Ifcpuuse-1[Default-1]--bpeBPEPathtobpemodelfile.IfNone-useddefaultmodel[DefaultNone]--encoderENCODERNameofencodermodel.IfNone-useddefaultmodel[DefaultNone]--write_headerWRITE_HEADERWriteheadertotheoutputfile[0or1.Default0]--use_columnsUSE_COLUMNSAstringofcolumnsseparatedby','fromtheinputfilethatwillbewrittentotheoutputfileПример входного файлаФайл должен сожержать 2 колонки с заголовками -receipt[srting],price[float]$headitems_.csvreceipt,price"Бутылка 1,0 Литр",8.0
Борщсфасольюисметаной,46.0
БЗМЖСЫРPRETTOМОЦАРЕЛЛАДЛЯ,109.9"БАЛТИКА №3 Пиво свет фильтр паст 4,8",52.99
Аккумуляторхолода800млLTAK0048,139.9Использование$receipt2vec-iitems_.csv-oitems.vecИмпорт модели>>>fromreceipt2vec.modelimportReceipt2vecEncoder>>>model=Receipt2vecEncoder()>>>vec=model('БАЛТИКА №3 Пиво свет фильтр паст 4,8',52.99)>>>print(vec.shape)torch.Size([256])
Package: receiptparser
receiptparserSummaryA receipt and bill parser written in Python.
Can be used as a Python module or CLI tool.It was originally based onreceipt-parser,
but has effectively been completely rewritten/replaced.So far, only German receipts are supported, but other countries can
be added using a simpleYAML configuration file.Recognition rateTo develop this tool, I used a set of 182 receipts in varying quality. Some of the were
crumpled, most had been folded, etc. The result on this set of receipts is:Total:             182
Company found:     171
Postal code found: 158
Date found:        159
Amount found:      114If your receipts are sharp, uncrumpled, and have good contrast, I would expect a
97%-99% success rate, except for the total amount, which is harder to identify
correctly. That may be closer to 75%.Where applicable, I chose automation and quality over performance. For example,
receiptparser scans every image twice, once unsharpened, and once sharpened,
which raises the recognition rate around 6% but doubles the scan time.InstallationPrerequisitesPython 3PIP3tesseractInstall via PIPpip3installreceiptparserInstall via Gitpip3install-rrequirements.txt
pip3install.Python usagefromreceiptparser.configimportread_configfromreceiptparser.parserimportprocess_receiptconfig=read_config('my_config.yml')receipt=process_receipt(config,"my_receipt.jpg",out_dir=None,verbosity=0)print("Filename:   ",receipt.filename)print("Company:    ",receipt.company)print("Postal code:",receipt.postal)print("Date:       ",receipt.date)print("Amount:     ",receipt.sum)CLI UsageExamplesA simple example to read all images (.jpg) from a directory and print the recognized data
to stdout:receiptparsertests/data/germany/img/You can customize the output as follows:receiptparser-v0--format"{date:%Y-%m-%d} - {company} - {postal} - {sum}.jpg"tests/data/germany/img/In this case,-v0suppresses any output, except for what you specify in the--format FORMATparameter. FORMAT is a Python format string as specifiedhere.
The following values can be used in the format string:company: The recognized name of the companypostal: The recognized postal code of the companydate: The recognized date of the bill or receiptsum: The dollar (or Euro, or other currency) amount of the bill or receiptSyntaxusage:receiptparser[-h][-cCONFIG][--config-fileCONFIG_FILE][-tTESSERACT][-fFORMAT][-v{0,1,2}]input

positionalarguments:inputfileordirectoryfromwhichimageswillbereadoptionalarguments:-h,--helpshowthishelpmessageandexit-cCONFIG,--configCONFIGbuilt-inconfigtouse--config-fileCONFIG_FILElike-c,butpointtoafileinstead-tTESSERACT,--tesseractTESSERACToutputdirectoryforOCRrecognizedtext(defaultistodiscard)-fFORMAT,--formatFORMATformatoftherecognizedoutput.defaultispretty-printing-v{0,1,2},--verbosity{0,1,2}increaseoutputverbosity
Package: receipt-parser
Receipt parser🧾What is it?receipt_parser- Python библиотека, помогающая распознавать товарную позицию из чеков. Для это задачи есть хорошийсервисот Тинькофф, однако он не справляется сгрязными данными, как на картинке выше. Изначально была задумка использовать нейронные сети, однако в процессе работы, понял, что на разметку нужно потратить много времени/денег, да и модель, основанная на правилах и словарях, даёт хорошийрезультат.Featuresраспознавание продукта;определение категории товара;распознавание брендов;перевод англицизмов (хугарден --> hoegaarden)🍺Where to get itИсходный код в размещен наGitHub.Библиотека размещёна наPython package index:pipinstallreceipt-parserЕсли возникнет ошибка при установке пакета:Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-izdic4qt/youtokentome/То установите Cython и повторите попытку:pip install CythonUsageДля распознавания сейчас доступна толькоRuleBasedмодель.На вход можно подавать как строку:fromreceipt_parserimportRuleBasedproduct_desription='Нап.пив.ХУГАР.ГРЕЙПФ.н/ф 0.47л'rb=RuleBased()rb.parse(product_desription)output:nameproduct_normbrand_normcat_norm0Нап.пив.ХУГАР.ГРЕЙПФ.н/ф 0.47лнапиток, пивоhoegaardenВоды, соки, напиткиТак иpd.DataFrame(колонка с товарной позицией должна называтьсяname):fromreceipt_parserimportRuleBasedrb=RuleBased()rb.parse(df)Также в библиотеке есть два вспомогательных класса:Normalizer - для нормализации;Finder - для поиска по словарям.Future workДобавить тестыДополнить словари и собранные датасетыПоднять сервисПерейти на нейронные сети...Support the project 🤗Буду рад, если вы:найдёте баги;сможете оптимизировать код;дополните словари и датасеты;поможете с разметкой.
Package: receipt-parser-core
A fuzzy receipt parser written in PythonThis is a fuzzy receipt parser written in Python.
It extracts information like the shop, the date, and the total from scanned receipts.
It can work as a standalone script or as part of ourIOS and Android application.DependenciesThereceipt-parser-corelibrary depend onimagemagick. Please installimagemagickwith your favorite package manager.UsageTo convert all images from thedata/img/folder to text using tesseract and parse the resulting text files, runmake runDockerADockerfileis available with all dependencies needed to run the program.To build the image, runmake docker-buildTo run it on the sample files, trymake docker-runBy default, running the image will execute themake runcommand. To use with your own images, run the following:docker run -v <path_to_input_images>:/usr/src/app/data/img mre0/receipt_parserHistoryThis project started as a hackathon idea. Read more about it on thetrivago techblog.
Also read the comments onHackerNewsThere's also atalkabout the project.
The library is now available atPyPi.
Package: receiptrecognizer
Receipt_RecognizerA library for detecting restaurant name, date and overall bill from a given receipt.For OCR Tesseract to workOn Linuxsudo apt-get update
sudo apt-get install libleptonica-dev
sudo apt-get install tesseract-ocr tesseract-ocr-dev
sudo apt-get install libtesseract-devOn Macbrew install tesseractOn Windowsdownload binary fromhttps://github.com/UB-Mannheim/tesseract/wiki. then add pytesseract.pytesseract.tesseract_cmd = 'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe' to your script.