Saravanan666/pypi-org huggingface dataset:
Package: regula.documentreader.webclient
Regula Document Reader web API Python 3.5+ clientDocuments recognition as easy as reading two bytes.If you have any problems with or questions about this client, please contact us
through aGitHub issue.
You are invited to contributenew features, fixes, or updates, large or small;
We are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Seedev guideInstall packageregula.documentreader.webclientis on the Python Package Index (PyPI):pipinstallregula.documentreader.webclientOr usingpipenvpipenvinstallregula.documentreader.webclientExamplePerforming request:fromregula.documentreader.webclientimport*withopen("australia_passport.jpg","rb")asf:input_image=f.read()withDocumentReaderApi(host='http://localhost:8080')asapi:params=ProcessParams(scenario=Scenario.FULL_PROCESS,result_type_output=[Result.DOCUMENT_IMAGE,Result.STATUS,Result.TEXT,Result.IMAGES])request=RecognitionRequest(process_params=params,images=[input_image])response=api.process(request)Parsing results:# status examplesresponse_status=response.statusdoc_overall_status="valid"ifresponse_status.overall_status==CheckResult.OKelse"not valid"# text fields exampledoc_number_field=response.text.get_field(TextFieldType.DOCUMENT_NUMBER)doc_number_mrz=doc_number_field.get_value()doc_number_visual=doc_number_field.get_value(Source.VISUAL)doc_number_visual_validity=doc_number_field.source_validity(Source.VISUAL)doc_number_mrz_validity=doc_number_field.source_validity(Source.MRZ)doc_number_mrz_visual_matching=doc_number_field.cross_source_comparison(Source.MRZ,Source.VISUAL)# images fields examplenormalized_input_image=response.images.document_image()portrait_field=response.images.get_field(GraphicFieldType.PORTRAIT)portrait_from_visual=portrait_field.get_value(Source.VISUAL)portrait_from_rfid=portrait_field.get_value(Source.RFID,original=True)You can find more detailed guide and run this sample inexamplefolder.
Package: regula.facerecognition.webclient
Regula Face Recognition web API Python 3.5+ clientFace recognition as easy as reading two bytes.If you have any problems with or questions about this client, please contact us
through aGitHub issue.
You are invited to contributenew features, fixes, or updates, large or small;
We are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Seedev guideInstall packageregula.facerecognition.webclientis on the Python Package Index (PyPI):pipinstallregula.facerecognition.webclientOr usingpipenvpipenvinstallregula.facerecognition.webclientExamplePerforming request:fromregula.facerecognition.webclientimport*withopen("face1.jpg","rb")asf:face_1_bytes=f.read()withopen("face2.jpg","rb")asf:face_2_bytes=f.read()withMatchingApi(host="http://0.0.0.0:41101/api")asapi:images=[CompareImage(index=1,data=face_1_bytes,type=ImageSource.LIVE),CompareImage(index=2,data=face_1_bytes,type=ImageSource.DOCUMENT_RFID),CompareImage(index=3,data=face_2_bytes)]compare_request=CompareRequest(images=images)compare_response=api.compare(compare_request)detect_request=DetectRequest(face_1_bytes)detect_response=api.detect(detect_request)You can find more detailed guide and run this sample inexamplefolder.
Package: regula.facesdk.webclient
Regula Face SDK web API Python 3.5+ clientFace recognition as easy as reading two bytes.If you have any problems with or questions about this client, please contact us
through aGitHub issue.
You are invited to contributenew features, fixes, or updates, large or small;
We are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Seedev guideInstall packageregula.facesdk.webclientis on the Python Package Index (PyPI):pipinstallregula.facesdk.webclientOr usingpipenvpipenvinstallregula.facesdk.webclientExamplePerforming request:fromregula.facesdk.webclientimport*withopen("face1.jpg","rb")asf:face_1_bytes=f.read()withopen("face2.jpg","rb")asf:face_2_bytes=f.read()withMatchingApi(host="http://0.0.0.0:41101/api")asapi:images=[MatchImage(index=1,data=face_1_bytes,type=ImageSource.LIVE),MatchImage(index=2,data=face_1_bytes,type=ImageSource.DOCUMENT_RFID),MatchImage(index=3,data=face_2_bytes)]match_request=MatchRequest(images=images)match_response=api.match(match_request)detect_request=DetectRequest(face_1_bytes)detect_response=api.detect(detect_request)You can find more detailed guide and run this sample inexamplefolder.
Package: regulagity
RegulagityIntroductionRegulagity (reh-gew-la-git-ee) is a command-line tool for measuring activity in a git repo, ultimately producing a single number that summarises a repo.For example, you can ask "how many commits per year does this repo have?" or "what proportion of months does this repo have new commits?". Both of these are good summaries of howactivea repo is.InstallationRun:pipinstallregulagityUsageUsage:regulagity[OPTIONS][LOCATION]CalculatessummarystatisticsforthegitrepositorylocatedatLOCATION.LOCATIONmustbethepatheithertoalocalgitrepositoryortoagitremote,e.g.`/home/michael/Programming/Regulagity/`or`https://github.com/TMiguelT/Regulagity.git`Options:--periodTEXTPeriodoftimetosummarisecommitsover.Thisconsistsofanoptionalnumberfollowedbyalettercode,e.g.`2W`meanstwoweeks,`3M`means3months,`Y`means1yearetc.Forafullreferenceonthesestringcodes,refertohttp://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases--stat[proportion|count]Thewaywesummariseeachcommitoverthetimeperiod.`proportion`indicatesthatweshouldcalculatewhatproportionofthetimeperiodhasanycommits(e.g.howmanyweeksonaveragehaveanyactivity)whereas`count`indicatesthatweshouldtaketheaveragenumberofcommitsinthistimeperiod(e.g.howmanycommitsareonaveragemadeperweek)--helpShowthismessageandexit.ExamplesWhat proportion of months have had any commit activity since this repo was created?regulagity --period M --stat proportion https://github.com/TMiguelT/Regulagity.gitWhat is the average commits per fortnight in this repo?regulagity --period 2W --stat count /home/michael/Programming/RegulargityMotivationThere are numerous other tools that summarise git activity, for example:http://gitstats.sourceforge.net/https://www.npmjs.com/package/git-statshttps://github.com/src-d/herculeshttps://github.com/ejwa/gitinspectorHowever, when comparing repos, perhaps because you want to use the best supported and
maintained option, you really only want a single number you can use to easily compare
them. For this reason,regulagityonly ever outputs a single number for a repo, not
a plot or a table.The reasonregulagitysupports analyses like "what proportion of months have had any
activity" is because it avoids any biases you might get by asking "what is the average
number of commits" or "average lines changed". These can be biased by a repo that has
a million commits over a single month, because it will still has a high number of commits
per month on average, even if it's been abandoned since 2015. The same issue is
encountered for lines-of-code. Asking only if there has beenanyactivity of a given
period allows you to better compare repos, and allows you to be certain that a high number
means a better amount of support. You can even use this same statistic to compare open
source repos to commercial products, because you can also ask "what proportion of months
have a new update to this software?".RoadmapPlanned features:Allow calculation of average lines-of-code, not just commit numbersAllow custom date-ranges for the query, e.g. "in the last year" rather than "for the
entire commit history"
Package: regularizepsf
regularizepsfA package for manipulating and correcting variable point spread functions.Below is an example of correcting model data using the package. An initial image of a simplified starfield (a) is synthetically observed with a slowly
varying PSF (b), then regularized with this technique (c). The final image visually matches a direct convolution of
the initial image with the target PSF (d). The panels are gamma-corrected to highlight the periphery of the model PSFs.Getting startedpip install regularizepsfand then follow along with theQuickstart section.ContributingWe encourage all contributions. If you have a problem with the code or would like to see a new feature, please open an issue. Or you can submit a pull request.LicenseSee LICENSE for the MIT licenseNeed help?Please contact Marcus Hughes atmarcus.hughes@swri.org.CitationPlease cite the associated paper if you use this technique:@article{Hughes_2023,
doi = {10.3847/1538-3881/acc578},
url = {https://dx.doi.org/10.3847/1538-3881/acc578},
year = {2023},
month = {apr},
publisher = {The American Astronomical Society},
volume = {165},
number = {5},
pages = {204},
author = {J. Marcus Hughes and Craig E. DeForest and Daniel B. Seaton},
title = {Coma Off It: Regularizing Variable Point-spread Functions},
journal = {The Astronomical Journal}
}If you use this software, please also cite the package:@software{marcus_hughes_2023_8370994,
  author       = {Marcus Hughes and
                  Sam Van Kooten and
                  Tania Varesano and
                  Suman Chapai},
  title        = {punch-mission/regularizepsf: 0.2.2},
  month        = sep,
  year         = 2023,
  publisher    = {Zenodo},
  version      = {0.2.2},
  doi          = {10.5281/zenodo.8370994},
  url          = {https://doi.org/10.5281/zenodo.8370994}
}
Package: regular-mesh-plotter
A minimal Python package that extracts 2D mesh tally results for plotting convenience.This package is deployed onxsplot.comas part of theopenmc_plotsuite of plotting appsLocal installFirst you will need openmc installed, then you can install this package with pippipinstallregular_mesh_plotterUsageThe package can be used from within your own python script to make plots or via a GUI that is also bundled into the package install.Python API script usageSee theexamples folderfor example scriptsGraphical User Interface (GUI) usageAfter installing runopenmc_mesh_plottercommand from the terminal and the GUI should launch in a new browser window.Related packagesopenmc_plotA single package that includes all the various plotters.If you want to plot the DAGMC geometry without a mesh tally then take a look at
thedagmc_geometry_slice_plotterpackageIf you want to plot the Native CSG geometry without a mesh tally then take a look at
thedagmc_geometry_slice_plotterpackage
Package: regulus
Copyright (c) 2018, Yarden
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Description: # regulus## Installation (for development)runpython setup.py developPlatform: UNKNOWN
Package: regxdev
regxdevThis package is made to developers for saving them time while playing in scraping the information.Feature's of this projectFind's any format of phone number irrespective of the country.Can find links from the string.Can extract the mail id from a string.Removes any links from the string.Return's the index of the matching word present in the string as a list.Can replace any word provided with a new word.How to install and use it.pip install regxdevfrom regxdev import regxdev as rdFor finding phone number from the string you passed.result = rd.phone_finder("PASS THE STRING CONTAINING NUMBEERS")returns list of phone numbersNote: This method works only if numbers start with the prefix '+' and not containing parentheses.For finding links.result = rd.link_finder("PASS THE STRING")returns list of links in the string.For extracting mail ids.result = rd.mail_extractor("PASS THE STRING")For removing links.result = rd.link_remover("PASS THE STRING")This returns a list of tuples that is the index of a matched word you were searching for in the list.result = rd.word_finder("WORD TO BE FOUND", "PASS THE STRING")For example: when you run the above line you get output similar toresult = [(2, 5), (11, 14)]each item are tuples, which contains the start index and end index of the word. you can use this tuple and by slicing the string you will have the word.To replace any word from the string irrespective of length.result = rd.word_replacer("WORD TO REPLACE", "WORD TO BE REPLACED FOR", "PASS THE STRING")This returns a new string with a replaced character.Feel free to contact me if you have any problem or looking for any new implementation or any idea/suggestion.
Package: rehab
rehab is a very simple tool, that runs a set of commands
only if a given file has been changed since the last runinstallonly:pip install rehabconfigurationcrate a configuration file:# basic rehab configuration, default values will be pretty similar
EXAMPLE_CONFIG = {
    # where your repositories will checkout to
    'repodir': '/var/repos/',

    # list of repositories: type, name and other params
    'repositories': [
        ['git', 'git@github.com:kvbik/rehab.git', 'master'],
    ],

    # run commands for each file which has changed since the last run
    'updatehooks': {
        'git@github.com:kvbik/rehab.git': [
            ['requirements.txt', 'pip install -r requirements.txt'],
            ['requirements.txt', 'python setup.py develop'],
            ['setup.py', 'python setup.py develop'],
        ],
    },
}

import yaml
with open('/etc/my-rehab.yml', 'w') as f:
  f.write(yaml.dump(EXAMPLE_CONFIG))and call:rehab update -c /etc/my-rehab.yml -d /var/my-rehab.yml
Package: rehash
Rehash is a resumable interface to the OpenSSL-based hashers (message digest objects) in the
CPythonhashlibstandard library. Rehash provides hashers that
can be pickled, persisted and reconstituted from theirrepr(),
and otherwise serialized. The rest of the Rehash API is identical tohashlib.Rehash hashers can be used to checkpoint and restore progress
when hashing large byte streams:importpickle,rehashhasher=rehash.sha256(b"foo")state=pickle.dumps(hasher)hasher2=pickle.loads(state)hasher2.update(b"bar")asserthasher2.hexdigest()==rehash.sha256(b"foobar").hexdigest()Installationpip install rehashApplicationsRehash is useful in any situation when your VM is short-lived or preemptible, and the object you’re hashing is huge. For
example, Rehash can be used to hand off the hashing state of large objects between AWS Lambda functions or Google Cloud
Functions, which have runtime limits of 15 and 9 minutes, respectively.Non-openssl hasherssha3andblake2hash algorithms in Python 3.6 are not OpenSSL-based and not supported by rehash.PyPyPyPy uses its own hasher implementations. Those are not serializable using rehash.Security noteBy default, rehash objects present themselves with arepr()that exposes their internal state. This allows one to
resume the hashing from the point where it stopped. If exposed through an untrusted channel under specific conditions,
this could potentially allow an attacker to use an extension attack. If you are unsure about the implications of this,
setrehash.opaque_repr = Trueafter importing rehash.LinksProject home page (GitHub)Documentation (Read the Docs)Package distribution (PyPI)Change logBugsPlease report bugs, issues, feature requests, etc. onGitHub.LicenseLicensed under the terms of theApache License, Version 2.0.
Package: re-helper
最简单的正则表达式工具功能描述无需会正则表达式即可快速上手使用pip安装pipinstallre_helper1.提取所有图片地址from re_helper import ReHelper
    source_str = '<img src="http://www.sss.com/a.png" alt="111"/>\n' \
                 '<img src="/a.png" alt="111"/>'
    src_list = ReHelper.extract_all_image_src(source_str)
    print(src_list)
    src_list2 = ReHelper.extract_all_image_src(source_str, pre_url='http://www.sss.com')
    print(src_list2)2.删除文本中的所有<![CDATA标签source_html = """
        // <![CDATA[ if (!window.location.search) { const pathname = window.location.pathname.split('/'); window.location.href = `/${pathname[1]}/${pathname[2]}?page=1&sort=price_discount,desc`; } // ]]> ผู้นำแห่งผลิตภัณฑ์เครื่องไฟฟ้าชั้นนำจากเนเธอแลนด์ที่มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่ช่วยทำให้ชีวิตประจำวันของผู้คนสะดวกสบายขึ้น ไม่ว่าจะเป็นผลิตภัณฑ์เครื่องไฟฟ้าในครัวเรือน ผลิตภัณฑ์ดูแลร่างกาย ผลิตภัณฑ์ดูแลแม่และเด็ก และอีกมากมาย ให้ชีวิตทุกวันของคุณมีความสุข และสะดวกสบายด้วยผลิตภัณฑ์เครื่องไฟฟ้า PHILIPS
        """
    print(ReHelper.delete_cdata_label(source_html))3.删除文本中的换行和tab占位符print(ReHelper.delete_tab_and_br('123   456 9000\n \t 33\r\t222제조일자/유효기간:판매자에게 문의\n\t\t\t\t\t'))4.删除文本中的所有html标签source_s = "云云小坊 隱形內衣BRA 超黏款上薄下厚布面隱形胸罩膚色) <font color=#FF00CC><b>*隱形胸罩屬衛生用品，使用過請勿退貨*</font><br> | 膚A"
    print(ReHelper.delete_html_tag(source_s))5.提取文本中的百分数print(ReHelper.extract_percent('asdqqq 87.9%'))6.根据正则提取字符串中第一个匹配的元素print(ReHelper.extract_one_by_pattern("<p>(.*?)</p>", "<p>111111111111</p>", exclude=['<p>', '</p>']))7.匹配<script type="application/json"></script>中的元素sss = """
    <script type="application/json">{"number":123456}</script>
    """
    print(ReHelper.parse_application_json_script_data(sss))8.匹配数值类型价格print(ReHelper.get_price('Price:$10.18 ($0.28 / Count)'))更多用法文档
Package: rehive
Rehive Python SDKA Python SDK for the Rehive Platform API.InstallationpipinstallrehiveDocumentationFor documentation on the Rehive ecosystem:Docs PortalFor the full Rehive Platform API specification:API ReferenceUsagefromrehiveimportRehive,APIExceptionrehive=Rehive()# OR Rehive(API_TOKEN_HERE)You can parse an api token or leave blank if manually logging in. Each object instance will store it's own token and act as another user.Auth:rehive=Rehive(REHIVE_API_KEY)Get:rehive.admin.accounts.get()Get nested objects:rehive.admin.accounts.obj('5AT24mW61H').currencies.get()Get with filters:rehive.admin.transactions.get(filters={"status":"complete"})Create:rehive.admin.users.emails.create('1d3e584d-ac56-483c-8aa5-d4ef059608ba','connor+899@rehive.com',verified=True)Patch/Put:rehive.admin.company.switches.patch('1',enabled=True)# Patch switch with identifier 1Pagination:rehive.admin.currencies.get()rehive.admin.currencies.get_next()rehive.admin.currencies.get_previous()Exception And Error HandlingfromrehiveimportAPIExceptiontry:rehive.admin.currencies.get()exceptAPIExceptionase:print(e.status_code)# Error code status code from Rehiveprint(e.data)# Any custom error messages and data returned from RehiveIdempotent requestsrehive.user.update(last_name='test7777',idempotent_key='{UNIQUE_KEY}')DevelopmentGenerate a python package.pythonsetup.pysdistInstalltwineif you have not done so already.pipinstalltwineUpload the python package:twineuploaddist/*
Package: rehome
rehomeRehome your Python scripts into nice interconnected modulesRead The DocsRequiresPython 3.10+InstallationpipinstallrehomeUsageThe CLI allows you to instantiate theRehomeclass central to this package directly.usage:rehome[-h][-p[PROTECT...]][-g[GROUP...]][-d]target

Rehome(target:pathlib.Path,protect:list[str]=<factory>,group:list[str]=<factory>,debug:bool=False)positionalarguments:target

options:-h,--helpshowthishelpmessageandexit-p[PROTECT...],--protect[PROTECT...](default:<factory>)-g[GROUP...],--group[GROUP...](default:<factory>)-d,--debug(default:False)Protected names-pspecifies names to protect, i.e. to keep in the source filerehomefoo.py-pmain...protects the namemain, and ensures it will stay in the source fileGroups-gspecifies groups (eachargument is a group, separated by spaces)rehomefoo.py-g"hand glove""foot sock"...creates two groups of names:["hand", "glove"]and["foot", "sock"]rehomeis available fromPyPI, and
the code is onGitHub
Package: rehoused-nlp
ReHouSED NLPOverviewThis package is amedspaCyimplementation of an NLP system for identifying patient housing stability in clinical texts.
This system was originally developed in the Department of Veterans Affairs to study housing outcomes of Veterans participating
in the Supportive Service for Veteran Families (SSVF) program. The development and validation of this system is described in"ReHouSED: A Novel Measurement of Veteran Housing Stability Using Natural Language Processing"by Chapman et al. (published Journal of Biomedical Informatics).This system attempts to classify housing stability at two levels:Document-level: Each document processed by the NLP is classified as either"STABLY_HOUSED","UNSTABLY_HOUSED", or"UNKNOWN"Patient-level: A set of documents over a period of time are processed and aggregated to a patient level. This is a numeric score
ranging from 0-1 called"Relative Housing Stability in Electronic Documentation" (ReHouSED)Detailed examples and explanations of the logic are provided innotebooks/DisclaimerThis system is an approximation of the system described in the manuscript and has been modified to exclude logic specific to VA
documentation. It is far from perfect and will certainly make mistakes!InstallationYou can installrehoused_nlpusingpip:pipinstallrehoused-nlpOr the source code found in this repository:pythonsetup.pyinstallrehoused_nlprequires Python 3.7 or 3.8, medspaCy, and spaCy 2.2.X. spaCy 3 is not currently supported.Quick startDocument-level examplefromrehoused_nlpimportbuild_nlp,visualize_doc_classificationnlp=build_nlp()text="""History of present illness: The patient was evicted from her apartment two months ago.Since then she has lived in a shelter while looking for an apartment.Past medical history:1. Pneumonia2. Afib3. HomelessnessHousing Status: Stably HousedAssessment/Plan: The patient was accepted to an apartment and signed the lease last week."""doc=nlp(text)visualize_doc_classification(doc)Patient-level examplefromrehoused_nlpimportcalculate_rehousedimportpandasaspddf=pd.read_csv("path/to/data.tsv",sep="\t")print("Input:")df.head()print("Output:")rehoused=calculate_rehoused(df)rehoused.head()Input:Output:
Package: rei
reiIn what followspythonis an alias forpython3.5orpypy3.5or any later version (python3.6,pypy3.6and so on).InstallationInstall the latestpip&setuptoolspackages versionspython-mpipinstall--upgradepipsetuptoolsUserDownload and install the latest stable version fromPyPIrepositorypython-mpipinstall--upgradereiDeveloperDownload the latest version fromGitHubrepositorygitclonehttps://github.com/lycantropos/rei.gitcdreiInstallpythonsetup.pyinstallDevelopmentBumping versionPreparationInstallbump2version.Pre-releaseChoose which version number category to bump followingsemver
specification.Test bumping versionbump2version--dry-run--verbose$CATEGORYwhere$CATEGORYis the target version number category name, possible
values arepatch/minor/major.Bump versionbump2version--verbose$CATEGORYThis will set version tomajor.minor.patch-alpha.ReleaseTest bumping versionbump2version--dry-run--verbosereleaseBump versionbump2version--verbosereleaseThis will set version tomajor.minor.patch.Running testsInstall dependenciespython-mpipinstall-rrequirements-tests.txtPlainpytestInsideDockercontainer:withCPythondocker-compose--filedocker-compose.cpython.ymlupwithPyPydocker-compose--filedocker-compose.pypy.ymlupBashscript (e.g. can be used inGithooks):withCPython./run-tests.shor./run-tests.shcpythonwithPyPy./run-tests.shpypyPowerShellscript (e.g. can be used inGithooks):withCPython.\run-tests.ps1or.\run-tests.ps1cpythonwithPyPy.\run-tests.ps1pypy