Saravanan666/pypi-org huggingface dataset:
Package: receipts
Parsing of web app receipts in Python.Includes a desktop client that will allow to parse my Firefox web apps.Example Python api:>>> from receipts.receipts import Receipt
>>> receipt = Receipt("eyJh....")
>>> receipt.verifier
u'https://receiptcheck-marketplace-dev.allizom.org/verify/369802'
>>> receipt.verify_server()
{u'status': u'invalid'}
>>> receipt.verify_crypto()
TrueFor more see our docs on:http://readthedocs.org/docs/receipts/en/latest/
Package: receipt-scanner
Receipt ScannerWrite applications to charge money to your friends after you paid the whole bill by easily parsing the receipt 💸Why would I use Receipt ScannerWe've all been there: the dinner ended and the bill arrived at the table. Everyone is looking at you to pay for the bill. "I will pay you back immediately", they say. "Just send a picture of the receipt I will transfer you the money".Idiots. We all know most of them will have forgotten about the damn receipt picture as soon as they get into their cars.Now you can take matters into your own hands. Using this library, you can write an application that parses and classifies items from the receipt, and then charges money to your friendsautomagically. No more waiting for them to calculate the amount they owe you "as soon as they have a minute".InstallationInstall using pip!pipinstallreceipt-scannerUsageAs a packageAfter installation, you can import thescanmethod from the library. Just pass the image location (it can be a local path or a URL), an optional regular expression to filter the parsed text and the optionaldebugparameter:importrefromreceipt_scannerimportscanexpression=re.compile("([0-9]+\.[0-9]+)")scanned_text_lines=scan("path/to/some/image.jpg",regular_expression=expression,debug=True,)Thescanmethod returns a list of strings for each text line that the regular expression matched. If no regular expression gets passed, every parsed text line will be returned.As a CLIYou can also usereceipt-scanneras a CLI! Once installed, thescannercommand will be available. Here is a sample usage:scanner--imagepath/to/some/image.jpg--expression"([0-9]+\.[0-9]+)"--debugSpecifying allowed charactersBy default, the library will use for the following characters:DEFAULT_ALLOWED_CHARACTERS=("ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyz1234567890\ ")Notice that the last "\ " represents the space character.You can pass a set of allowed characters to the engine, either by using the--charactersflag when using the CLI or by passing theallowed_charactersattribute to thescanmethod of the library.DebuggingThedebugflag will show logs of every step, and will freeze each image manipulation step to show the result of said manipulation. This can be useful to understand why thescancommand might be returning an empty list, for example (you might find that the image has poor contrast and that the contour of the receipt is not being correctly mapped).DevelopingRequirementsPoetryTesseractTeseract SpanishStepsClone the repository:gitclonehttps://github.com/daleal/receipt-scanner.gitcdreceipt-scannerThen, recreate the environment:makebuild-envOnce the package is installed for development (poetry install), you can use the CLI from the virtualenv.AknowledgementsMost of the code from this project was adapted from StackOverflow answers to questions about contour-finding, denoising and stuff like that. I also used code from several guides from the internet for utilities such as transforming a contour to a rect. Without those answers, most of this library would have been impossible for me to write. Thanks for the awesome information! 💖
Package: receive
Receivereceiveis a python library for hosting temporary web servers and receiving values from their route handlers via futures.InstallStable Releasepip install receiveLatest Featurespip install git+https://github.com/BlakeASmith/receiveUsageHandle a GET requestFirst, define a route handler as follows:importreceive@receive.get_request(route="/callback",port=5000)asyncdefget_query_param_from_request(req):returnreq.query["code"]Thereqparameter is anaiohttp.web.Requestobject. In this example
we return thecodequery parameter from the request.Now we can start a temporary web server, and get our return value from the first request that comes in.importasyncioasyncdefmain():future=awaitget_query_param_from_request()code=awaitfutureprint(code)if__name__=="__main__":asyncio.get_event_loop().run_until_complete(main)Theget_query_param_from_requestfunction will start a web server in the background and return aasyncio.Futureobject providing access to the
return value from the handler.get_query_param_from_requestwill return immediately, and invokingawaiton the returned future will block until aGET 0.0.0.0:5000/callbackrequest hits the server. At that time the future will be completed with the
value returned from the request handler and the
server will be shutdown.TestsRun the unit tests using pytestpoetry install
poetry run pytest
Package: receive-sms
📖 Presentationreceive_smsis a library which allows to receive SMS in python free and unlimited.⚙️ InstallationYou can download the file or usePyPi:pip install receive-smsFor getting informations, you can use :pip show receive-sms⌨️ Usereceive_sms.get_messages(phone_number='12018577757')Returns the last 100 messages sent tophone_number(newest to oldest).How do I know whichphone_numberto put?Messages are returned as amessageclass, here are its attributes:message.textReturns the content of message (str)message.from_numberReturns the phone number you originally chose (str)message.to_numberReturns the phone number that sent the message (str)message.dateReturns the date of the message, imprecise (datetime)💾 Exampleimportreceive_sms# Import the librarydata=receive_sms.get_messages(phone_number='12018577757')# Get messages sent to 12018577757# Print informations of each messageformsgindata:print(msg.text)# The content of the messageprint('from '+msg.from_number)# The number from which the message originatedprint('to '+msg.to_number)# Your number, in this case it's 12018577757print('the '+msg.date.strftime("%m/%d/%Y, %H:%M"))# The dateprint('\n')# Line breakThis file ishere.ℹ️ To know• Phone numbers are public, everyone can see received messages.• Messages longer than 150 characters are split.• The library usessms-online.co.The phone numbers you can use+1 201-857-7757- 🇺🇸 United States+1 787-337-5275- 🇵🇷 Puerto Rico+60 11-1700 0917- 🇲🇾 Malaysia+44 7520 635797- 🇬🇧 United Kingdom+46 76 943 62 66- 🇸🇪 Sweden
Package: recent
Recent is a more structured way to log your bash history.The standard ~/.bash_history file is inadequate in many ways, its
worst fault is to by default log only 500 history entries, with no timestamp.
You can alter your bash HISTFILESIZE and HISTTIMEFORMAT variables but it
is still a unstructured format with limited querying ability.Recent does the following:Logs current localtime, command text, current pid, command return value,
working directory to an sqlite database in~/.recent.db.Logs history immediately, rather than at the close of the session.Provides a command called recent for searching logs.installation instructionsYou need will need sqlite installed.Install the recent pip package:pip install recentAdd the following to your .bashrc or .bash_profile:exportPROMPT_COMMAND='log-recent-r$?-c"$(HISTTIMEFORMAT=history 1)"-p$$'And start a new shell.usageLook at your current history using recent:recentSearch for a pattern as follows:recent gitFor more information see the help:recent-hNot currently recent doesn’t integrate with bash commands such as
Ctrl-R, but this is in the pipeline.You can directly query your history using the following:sqlite3~/.recent.db"select * from commands limit 10"dev installation instructionsgit clonehttps://github.com/trengrj/recent&& cd recentpip install-e.securityPlease note, recent does not take into account enforcing logging
for security purposes. For this functionality on linux, have a
look at auditdhttp://people.redhat.com/sgrubb/audit/.
Package: recent-earthquake-indonesia
indonesia-recent-earthquakeThis package will get the latest earthquake in Indonesia taken from BMKG | Meteorology, Climatology, and Geophysical AgencyHOW IT WORK?This package will scrape data frombmkgto display the latest earthquake that occurred in Indonesia. This package use BeautifulSoup4 and request to  produce output in the form of JSON which is ready to be used in web and mobile applicationsHOW TO USEimport gempa_terkini

if __name__ == "__main__":
    print('Aplikasi utama')
    result = gempa_terkini.ektraksi_data()
    gempa_terkini.tampilkan_data(result)AuthorFauzi Kurniawan
Package: recent-indonesia-earthquake
# Recent Indonesia Earthquake
This package will get recent earthquake from BMKG (Meteorological, Climatological, and Geophysical Agency)## HOW IT WORKS?
This package will scrape from [BMKG](https://www.bmkg.go.id.com) to get recent earthquake happened in IndonesiaThis package will use BeautifulSoup4 and Request, to then produce output in the form of JSON that is ready to be used in web or mobile applications## HOW TO USEimport recentearthquakeif __name__ == ‘__main__’:result = recentearthquake.ekstraksi_data()
recentearthquake.tampilkan_data(result)## Author
Arif Setyadi
Package: recently-visited-page-middleware
Recently Visited Page MiddlewareA Django middleware designed to monitor and fetch recently visited pages for authenticated users.InstallationUse pip to install the package:pipinstallrecently-visited-page-middlewareAdd the app to yourINSTALLED_APPSin your Django project's settings:INSTALLED_APPS=[# ...'recently_visited_page_middleware',# ...]Insert the middleware into yourMIDDLEWARE:MIDDLEWARE=[# ...'recently_visited_page_middleware.middleware.RecentlyVisitedPageMiddleware',# ...]UsageImport theget_recently_visited_urlsfunction into your views:fromrecently_visited_page_middleware.utilsimportget_recently_visited_urlsClass-Based View ExampleIn your class-based views, use the function to retrieve recently visited pages:fromrest_framework.viewsimportAPIViewfromrest_framework.responseimportResponsefromrest_frameworkimportstatusfromrest_framework.permissionsimportIsAuthenticatedclassRecentlyVisitedPagesView(APIView):permission_classes=[IsAuthenticated]defget(self,request):user_id=request.user.idrecently_visited_urls=get_recently_visited_urls(user_id)response_data={"status":"success","message":"Recently Visited Pages Retrieved Successfully","data":recently_visited_urls}returnResponse(response_data,status=status.HTTP_200_OK)Function-Based View ExampleIn your function-based views, utilize the function to retrieve recently visited pages:fromrest_framework.decoratorsimportapi_view,permission_classesfromrest_framework.responseimportResponsefromrest_frameworkimportstatusfromrest_framework.permissionsimportIsAuthenticatedfromrecently_visited_page_middleware.utilsimportget_recently_visited_urls@api_view(['GET'])@permission_classes([IsAuthenticated])defrecently_visited_pages(request):user_id=request.user.idrecently_visited_urls=get_recently_visited_urls(user_id)response_data={"status":"success","message":"Recently Visited Pages Retrieved Successfully","data":recently_visited_urls}returnResponse(response_data,status=status.HTTP_200_OK)Ensure to configure your cache backend mechanism in yoursettings.pyfile. It can be set to various options like Redis, Memcached, FileBasedCache, DatabaseCache, LocMemCache, or DummyCache. For more information on cache backend mechanisms, refer to theDjango documentation.
Package: recentrifuge
Robust comparative analysis and contamination removal for metagenomicsWith Recentrifuge, researchers can interactively explore what organisms are in their samples and at which level of confidence, thus enabling a robust comparative analysis of multiple samples in any metagenomic study.Removes diverse contaminants, including crossovers, using a novelrobust contamination removalalgorithm.Provides aconfidence level for every result, since the calculated score propagates to all the downstream analysis and comparisons.Unveils the generalities and specificities in the metagenomic samples, thanks to a newcomparative analysis engine.Recentrifuge's novel approach combines robust statistics, arithmetic of scored taxonomic trees, and parallel computational algorithms.Recentrifuge is especially useful when a morereliable detection of minority organismsis needed (e.g. in the case of low microbial biomass metagenomic studies) in clinical, environmental, or forensic analysis. Beyond the standard confidence levels, Recentrifuge implements others devoted to variable length reads, very convenient for complex datasets generated bynanopore sequencers.To play with an example of a webpage generated by Recentrifuge, click on the next screenshot:Recentrifuge webpage example
Package: recent-state-summarizer
recent-state-summarizerSummarize blog article titles with the OpenAI APIa.k.a.RSS😃Setup$ pip install recent-state-summarizer⚠️ SetOPENAI_API_KEYenvironment variable.ref:https://platform.openai.com/account/api-keysUsage$ omae-douyo https://nikkie-ftnext.hatenablog.com/archive/2023/4

この人物は最近、プログラミングに関することを中心にして活動しています。

（略）

最近は、株式会社はてなに入社したようです。Currently support:はてなブログ（Hatena blog）To see help, typeomae-douyo -h.DevelopmentSub commandsFetch only:python -m recent_state_summarizer.fetch -hSummarize only:It's convenient to omit fetching in tuning the prompt.python -m recent_state_summarizer.summarize -hEnvironment$ git clone https://github.com/ftnext/recent-state-summarizer.git
$ cd recent-state-summarizer

$ python -m venv venv
$ source venv/bin/activate
(venv) $ pip install -r requirements.lock
(venv) $ pip install -e '.'
Package: rec_env
[![Coverage Status](https://coveralls.io/repos/luizirber/rec_env/badge.png)](https://coveralls.io/r/luizirber/rec_env) [![Build Status](https://travis-ci.org/luizirber/rec_env.png?branch=master)](https://travis-ci.org/luizirber/rec_env) [![Requirements Status](https://requires.io/github/luizirber/rec_env/requirements.png?branch=master)](https://requires.io/github/luizirber/rec_env/requirements/?branch=master)
Package: receptacle
Object-Oriented Peer-to-Peer RPC access library and server application framework.:Author: `Thetaplane <cbanis@gmail.com>`__:Requires: Python 2.6+:Version: 0.4.0:Group Application: application, config, debugging, security, storage:Group Core: architecture, encoding, packaging, runtime:Group Networking: network, client, server:Group Service Partner Bus: bus, bus.partners, bus.services, bus.spline:Bug: Some synchronization issues cause intermittant network failures:Todo: Optimize the package format to eliminate unnecessary marks:Copyright: |copyright| 2011-2023 Thetaplane.. |copyright| unicode:: 0xA9 .. copyright sign
Package: receptiviti
A Python package to process text with theReceptivitiAPI.An R package is also available atReceptiviti/receptiviti-r.InstallationIf needed, download Python frompython.org, then install the package with pip:Release (version 0.1.2)pipinstallreceptivitiDevelopmentpipinstallgit+https://github.com/receptiviti/receptiviti-python.gitAnd load the package in a Python console:importreceptivitiExamples# score a single textsingle=receptiviti.request("a text to score")# score multiple texts, and write results to a filemulti=receptiviti.request(["first text to score","second text"],"filename.csv")# score texts in separate files## defaults to look for .txt filesfile_results=receptiviti.request(directory="./path/to/txt_folder")## could be .csvfile_results=receptiviti.request(directory="./path/to/csv_folder",text_column="text",file_type="csv")# score texts in a single fileresults=receptiviti.request("./path/to/file.csv",text_column="text")API AccessTo access the API, you will need to load your key and secret, as found on yourdashboard.You can enter these as arguments in each function call, but by default they will be looked for in these environment variables:RECEPTIVITI_KEY="32lettersandnumbers"
RECEPTIVITI_SECRET="56LettersAndNumbers"You can store these in a.envfile (in the current directory or~/Documents) permanently, or set them temporarily:importosos.environ["RECEPTIVITI_KEY"]="32lettersandnumbers"os.environ["RECEPTIVITI_SECRET"]="56LettersAndNumbers"
Package: receptor-catalog
receptor-catalogReceptor Catalog Worker PluginThis plugin allows the receptor node to send HTTPGETandPOSTrequests
to Ansible Tower.The config file on the receptor for this plugin should have the following values defined in the receptor.conf[plugin_receptor_catalog]
debug=True
username=admin
password=******
url=https://your_ansible_tower/
verify_ssl=FalseThe payload supported by the plugin containsmethod:GET|POSThref_slug: the href to the resource or collection e.g api/v2/job_templates/accept_encoding{Optional}: gzipfetch_all_pages{Optional}: True|Falseparams: Extra query or post parameters as a hash/dictionaryapply_filter{Optional}: A JMESPath search string to limit the amount of data that is returned. The filter can be specified as a hash/dictionary or as a string. The hash is used when filtering responses from a list call when the response contains an array of objects. The string filter is used when dealing with a single object.The response payload coming back will have the following keysstatus: The HTTP Status codebody:  The response body received from the Ansible Tower
if Accept-Encoding was gzip, the body will be compressed and
the caller would have to uncompress the data. The first 2 bytes
of the payload can be checked to see if the data has been gzip
compressed. A valid gzip'ed buffer would start with0x1f 0x8BTo install the plugin in your local dev environmentpython setup.py installTo run the testspython setup.py testFiltering ExamplesFilters are based on JMESPath which allows us to search and filter out sections of JSON.https://jmespath.orgWhen fetching an array of objects you have to specific the filter as a dictionary with the key name containing the name of the attribute.
e.gapply_filter={results='results[].{catalog_id:id, url:url,created:created,name:name, modified:modified, playbook:playbook}'}Here we are filtering theresultskey so we have to specify the filter as a dictionary. The plugin will swap out the contents of the key with the filtered results.
The filtered response will contain{

"count": 28,

"next": "/api/v2/job_templates/?page=2",

"previous": null,

"results": [

{

"catalog_id": 5,

"url": "/api/v2/job_templates/5/",

"created": "2019-05-29T15:17:05.466994Z",

"name": "Demo Job Template",

"modified": "2019-05-29T15:17:05.467018Z",

"playbook": "hello_world.yml"

},

{

"catalog_id": 58,

"url": "/api/v2/job_templates/58/",

"created": "2020-03-06T21:56:55.134663Z",

"name": "Ephemeral Template",

"modified": "2020-03-06T22:15:15.655800Z",

"playbook": "hello_world.yml"

},When a single object needs to be filtered we specify the filter as a stringapply_filter ='{id:id, url:url, name:name, description:descripti  on, playbook:playbook}'The response contains{

"id": 6565,

"url": "/api/v2/jobs/6565/",

"name": "Hello World",

"description": "Test Description",

"playbook": "hello_world.yml"

}
Package: receptor-utils
receptor_utilsSome tools I find useful for working with Ig receptor sequences, including support for allele sequence naming and
the creation of custom IgBlast databases. Please see thedocumentationfor further details.Changes in version 0.0.46:fix issue with naming of D novel alleles - this could cause existing alleles to be named as novel by the utilitiesChanges in version 0.0.45:added dependency for biopython version >=1.81Changes in version 0.0.44:minor fix to novel allele namingfixed a bug that prevented sequence subsets being shown by identical_seqsChanges in version 0.0.43:remove dependency on deprecated Bio.pairwise2improve naming of insertions, e.g. IGHV1-203_i7g_i7a would now be IGHV1-203_i7gaChanges in version 0.0.42:better handling of long target sequencesChanges in version 0.0.41:annotate_j: fix issue with processing FASTA inputChanges in version 0.0.40:The submodule name receptor_utils.number_ighv has been changed to receptor_utils.number_v to reflect its wider scope. The old name will continue
to work for the time being but will raise a deprecation warning.In receptor_utils.simple_bio_seq, write_fasta(seqs, filename) has become write_fasta(filename, seqs) for consistency with write_csv. The old
calling pattern will continue to work for the time being but will raise a deprecation warning.Changes in version 0.0.39:annotate_j and make_igblast_ndm will now accept a germline set in AIRR Community JSON format, as an alternative to providing the set in FASTA format.Changes in version 0.0.38:Improve reporting of issues with conserved residuesChange URL for fetching IMGT reference sets to use https
Package: recette
recetteData preprocessing utilities on top ofpandasinspired bytidymodels' recipes package. My aim isn't to port recipes to Python 3, but just to use some of its features I found nice. I'm also interested in exploring pandas extension data types. I expect this to give me a higher flexibility in dealing with categorical columns, by using the category data type, and NAs, due to the new nullable data types. As a final note, I'm currently treating this package as an experiment, so its direction may change unexpectedly.
Package: recgov
recgovPython modules to interface withrecreation.govin order
to find suitable availability.Usage:In order to use this library, you'll need tosign upfor
an api account.  Enabling developer access is under your account settings page.
You can either store the API KEY in your environment variables asRECREATION_GOV_KEYor you can pass it to your_session.get_sessioncalls (much trickier -- not really
supported).To install from the checked out code:pipinstall.To make a link in python to the current code-base:pipinstall--editable.Generalizing the script:recreation.govworks a little different.  It has a
promisingdocumented APIthat provides
access to campground details, but it doesn't seem to include any availability data.Common fields used across the api:Field NameDescriptionasset_idThe campground overallnameCampsite name (often a number)org_nameWho owns the campsiteloopThe loop where you can find the siteThe most promising undocumented endpoint is here:MonthGets availability for an entire month.The response object looks something like this:{"availabilities":{"2021-03-01T00:00:00Z":"Available",// . . . ."2021-03-05T00:00:00Z":"Reserved",// . . . ."2021-03-12T00:00:00Z":"Not Available",// . . . ."2021-03-31T00:00:00Z":"Reserved"},"campsite_id":"7859","campsite_reserve_type":"Site-Specific","campsite_type":"GROUP TENT ONLY AREA NONELECTRIC","capacity_rating":"Single","loop":"DEVILS GARDEN CAMPGROUND","max_num_people":55,"min_num_people":11,"quantities":null,"site":"JUNIPER BASIN","type_of_use":"Overnight"}MIT LicenseCopyright (c) [year] [fullname]Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE 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.Release 0.1.4:Implemented timezone aware datetimesAdded a changelog