Saravanan666/pypi-org huggingface dataset:
Package: pytesseract-cli
pytesseract-cliA command-line wrapper forpytesseract, a Python wrapper fortesseract.DescriptionThis is a command-line wrapper to enable easier usage of theTesseract OCR enginewith multiple files and/or directories. The project itself is written in Python, and usespytesseractfor interaction withtesseract.Benefits of this interface include the ability to easily parse multiple images and files, as well as recurse upon directories.RequirementsBasic requirements are an up-to-date installation ofPython 3andTesseract OCR.TesseractBoth theTesseract OCR engineas well as anytraining datafor desired languages must be installed.Both of the above are available, for example, on theArchLinux User Repository:tesseracttesseract-dataInstallationThis project is available onPyPIunder the pagepytesseract-cli.Usingpip:pipinstallpytesseract-clito upgrade:pipinstall-Upytesseract-cliUsageIn a terminal:$pytesseract-cli
usage:pytesseract-cli[-h][-f[FILES...]][-d[DIRECTORIES...]][-r][-t{pdf,txt}][-lLANG][--list-languages]optionalarguments:-h,--helpshowthishelpmessageandexit-f[FILES...]name(s)offile(s)toprocess-d[DIRECTORIES...]directory(s)toprocess-rrecurseonalldirectorieslisted-t{pdf,txt}desiredoutputfiletype-lLANGlanguageofthetextinanyimage(s)--list-languageslistalllanguagesavailableAcknowledgementspytesseractfor providing an easy-to-use wrapper fortesseract.tesseractfor providing a free and open-source OCR engine.
Package: pytessng
This is the tessng with python development package.##简介微观交通仿真软件TESS NG路网编辑Python工具包“pytessng”主要包括两大功能：外部数据源导入创建路网和多格式路网数据导出。我们希望通过“pytessng”的推出，为微观交通仿真领域的从业者提供更加便捷、高效的路网编辑工具。###外部数据数据源导入创建路网pytessng 专注于提供强大的外部数据源导入创建路网的功能，支持包括OpenDrive、Shapefile、OpenStreetMap、Excel等多种数据格式，用户可以直接将精准的真实世界的地理交通信息无缝集成到仿真环境中，从而降低路网建模成本，提升路网建模精度。###多格式路网数据导出为了满足用户对仿真路网灵活处理的需求，pytessng 提供了多格式路网数据导出的功能，包括OpenDrive、Shapefile、GeoJson、Json等，用户可以根据实际需要选择合适的格式，方便在其他平台或工具中进行分析处理和可视化。##使用方法from pytessng import TessngObject
TessngObject(True)启动代码后，将弹出软件激活弹窗，点击导入激活码，可以选择提供的试用版 key ，点击提交，再次启动代码，即可正常运行。启动代码后，会在启动代码同级目录下生成 WorkSpace 文件夹，其中包含 Cert、SimuResult 等子文件夹。若是使用试用版 key 且其已到期，将弹出权限提示弹窗显示“没有权限加载插件”，但只要点击 OK 即可，只有打断路段和轨迹数据导出功能不可用，其余功能均可正常使用。
Package: pytessy
PyTessy - Tesseract-OCR, faster!This module allows faster access to Tesseract-OCR from Python scripts.Why and when is it so fast?PyTessy uses direct library-level access to Tesseract-OCR's core library. Therefore is it so fast in case when the image is already in the memory or when the image need to be processed before scanning with Tesseract-OCR. In case of reading and scanning existing files only PyTessy is just a bit faster than usual Tesseract-OCR Python wrappers.RequirementsOperating systemPyTessy is operating system independent in case if you set the exact location of your Tesseract-OCR library since presently library search process is implemented on Windows only.Python modulesPyTessy uses only modules from the Standard Library only. Python version must be>= 3.6.External requirementsYou have to have installed or portable version of Tesseract-OCR (at least a working library andtessdata).You can download Tesseract-OCR fromhere.InstallationYou can install the latest PyTeyy version withpip install pytessyor you can download the wheel from this repository or build the source code.DocumentationOyTessy has aReadTheDocs page
Package: pytest
Thepytestframework makes it easy to write small tests, yet
scales to support complex functional testing for applications and libraries.An example of a simple test:# content of test_sample.pydefinc(x):returnx+1deftest_answer():assertinc(3)==5To execute it:$ pytest
============================= test session starts =============================
collected 1 items

test_sample.py F

================================== FAILURES ===================================
_________________________________ test_answer _________________________________

    def test_answer():
>       assert inc(3) == 5
E       assert 4 == 5
E        +  where 4 = inc(3)

test_sample.py:5: AssertionError
========================== 1 failed in 0.04 seconds ===========================Due topytest’s detailed assertion introspection, only plainassertstatements are used. Seegetting-startedfor more examples.FeaturesDetailed info on failingassert statements(no need to rememberself.assert*names)Auto-discoveryof test modules and functionsModular fixturesfor
managing small or parametrized long-lived test resourcesCan rununittest(or trial),nosetest suites out of the boxPython 3.8+ or PyPy3Rich plugin architecture, with over 850+external pluginsand thriving communityDocumentationFor full documentation, including installation, tutorials and PDF documents, please seehttps://docs.pytest.org/en/stable/.Bugs/RequestsPlease use theGitHub issue trackerto submit bugs or request features.ChangelogConsult theChangelogpage for fixes and enhancements of each version.Support pytestOpen Collectiveis an online funding platform for open and transparent communities.
It provides tools to raise money and share your finances in full transparency.It is the platform of choice for individuals and companies that want to make one-time or
monthly donations directly to the project.See more details in thepytest collective.pytest for enterpriseAvailable as part of the Tidelift Subscription.The maintainers of pytest and thousands of other packages are working with Tidelift to deliver commercial support and
maintenance for the open source dependencies you use to build your applications.
Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.Learn more.Securitypytest has never been associated with a security vulnerability, but in any case, to report a
security vulnerability please use theTidelift security contact.
Tidelift will coordinate the fix and disclosure.LicenseCopyright Holger Krekel and others, 2004.Distributed under the terms of theMITlicense, pytest is free and open source software.
Package: pytest3-responses
Automatically activate responses across your py.test-powered test suite (thus preventing HTTP requests).$pipinstallpytest-responsesIf particular tests need access to external domains, you can use thewithoutresponsesmarker:@pytest.mark.withoutresponsesdeftest_disabled():withpytest.raises(ConnectionError):requests.get('http://responses.invalid')assertlen(responses.calls)==0Additionally, you can use the responses fixture:deftest_enabled(responses):withpytest.raises(ConnectionError):requests.get('http://responses.invalid')assertlen(responses.calls)==1
Package: pytest-abq
pytest-abqAnABQintegration forpytest.To install:pip install pytest-abqThat's it! Then, run your test suite with ABQ:abq test -- pytestCompatibilitypytest-abqis actively tested againstPython 3.7, 3.8, 3.9, 3.10Pytest 7.0, 7.2pytest-abqmay support Python and pytest versions beyond these.pytest-abqimplements version 0.2 of the ABQ native runner protocol and
requires ABQ 1.3.0 or greater.
Package: pytest-adf
ALPHA RELEASEpytest-adf is apytestplugin for writing Azure Data Factory
integration tests. It is light-wrapper around theAzure Data Factory
Python SDK.RequirementsYou will need the following:Python 3+InstallationTo install pytest-adf:pipinstallpytest-adfUsageHere is a simple usage of theadf_pipeline_runfixture.deftest_pipeline_succeeded(adf_pipeline_run):this_run=adf_pipeline_run("my_pipeline",run_inputs={})assertthis_run.status=="Succeeded"Theadf_pipeline_runfixture provides a factory function that
triggers a pipeline run when called. It will then block and poll the
pipeline run till completion* before returning.*Pipeline run completion is defined by the following status:
“Succeeded”, “TimedOut”, “Failed”, “Cancelled”.For more information seeGithub page.
Package: pytest-ads-testplan
Make Pytest integrate into Microsoft Azure Test Plans and Pipelines.Just run pytest with this plugin and see your test results connected to your Test Plan.  You do need to mark the tests with the suite id and test case for this to work.OverviewThis pytest plugin will create an Azure Test Run and append TestResults to the test run as the tests are executed on a pipeline execution of a pytest test run.This plugin is not ment to work with other reporting plugins like pytest-nunit and pytest-ads-testplan.  Using this test with those plugins will cause duplicate test results to be reported on the pipeline.Unlike the pytest-azurepipeline plugin, this plugin does not use NUnit to generate a report, then process the report.  Instead, it upates the running tests as they complete.  Therefore, a long running test can have it’s progress tracked in Azure Test RunsLimitationsThe tests must all be under the same TestPlan (defined by the plan id)Each test that will be reported needs to define an ADS suite id and an ADS Test case id (test case work item).The plugin will scan the test suite for the TestCase, and if found, will add test results for the test point id that matches the test case id defined in the test.ExampleAssuming your org is “TestOrg” and your Project is “TestProject” and your Test Plan ID is 123456Source code for test case with markings for an ADS test case. Note the suite_id and test_case id are required, the revision is optional and defaults to 1.  It is possible to have multiple test cases and test suites in a single test.  In such a case, the test results will be repeated for each suite_id and test case.  If the test case is not in the suite, then the results will not be reported.@pytest.mark.regress_nightly@pytest.mark.regress_smoke@pytest.mark.suite_id("112233")@pytest.mark.test_case("445556")@pytest.mark.revision("1")deftest_ads_integration_fail(logger):logger.info("This is a test of regression fail")assertFalseFrom the ADS pipeline, execute this command (bash script pipeline step)pytest -m regress_nightly –adsinfo=TestOrg,TestProject,123456The SuiteID must contain a test point with a matching test case, as a test point, in it.  The plugin will search the Suite for the work item, and if found, extract it’s description and create a test result for the item.Tests that are in error (no test case test point in suite) will not be reportedRun Tests outside of azure pipelinesYou can use the plugin outside of an Azure Pipeline, however you would need to use your ADS personal access token (normally provided in the pipeline environment)exportSYSTEM_ACCESSTOKEN={token}pytest-mregress_nightly--adsinfo=TestOrg,TestProject,123456This will use your credentials instead of pipeline credentials and generate a test run that is not attached to a pipeline build.
Package: pytest-affected
pytest-affectedpytest-affected is a pytest plugin that helps you optimize the execution of
pytest tests by caching and re-running only the tests that are affected by
changes in your codebase. This can significantly reduce the time required to
run your CI pipeline if your project have a lot of slow tests.Installationpytest-affected plugin is available on PyPI:pipinstallpytest-affectedUsageAddpytest_affected.plugintoPYTEST_PLUGINSenvironment variable to active this plugin.PYTEST_PLUGINS=pytest_affected.pluginpytestLicensepytest-affected is distributed under the MIT License. See LICENSE for more information.
Package: pytest-agent
Pytest AgentService that exposes a REST API that can be used to interract remotely with Pytest. It is shipped with a dashboard that enables running tests in a more convenient way.Installationpip install pytest-agentUsagepytest-agent start --host 0.0.0.0 --port 10000If you are running this from your local machine, you can now open your browser athttp://localhost:10000
Package: pytest-aggreport
pytest-aggreportThispytestplugin was generated withCookiecutteralong with@hackebrot'scookiecutter-pytest-plugintemplate.FeaturesGenerate aggregated test result group by test case name with details;Embed test result into html report if pytest-html is available;Requirementspython >= 3.6pytest >= 6.2.2beautifultable >= 1.0.1pytest-repeat >= 0.8.0InstallationYou can install "pytest-aggreport" viapipfromPyPI:$pipinstallpytest-aggreportUsagePytest will automatically find the plugin and use it when you run pytest with--countargument (enablepytest-repeatplugin). When test is done, you will see a summary report in the terminal:$pytest--count=5...
-------------------------aggregatesummaryreport-----------------
+-------------+------+------+-------+--------+-------+-------+-------+---------+|TestCaseNa|Pass|Fail|Skipp|PassR|AVG(|MAX(|MIN(|STDDEV||me|ed|ed|ed|ate|s)|s)|s)|(s)|+-------------+------+------+-------+--------+-------+-------+-------+---------+|test_pass|5|0|0|100.00|0.1|0.1|0.1|0.0||||||%|||||+-------------+------+------+-------+--------+-------+-------+-------+---------+|test_skip|0|0|5|0.00%|0.0|0.0|0.0|0.0|+-------------+------+------+-------+--------+-------+-------+-------+---------+|test_fail|0|5|0|0.00%|0.15|0.15|0.15|0.0|+-------------+------+------+-------+--------+-------+-------+-------+---------+|test_xpass|5|0|0|100.00|0.1|0.1|0.1|0.0||||||%|||||+-------------+------+------+-------+--------+-------+-------+-------+---------+|test_xfail|0|5|0|0.00%|0.1|0.1|0.1|0.0|+-------------+------+------+-------+--------+-------+-------+-------+---------+
...Ifpytest-htmlis enabled(run with--htmlargument), then a summary report will also be embedded in the html report:To disable the plugin, you can use the-pargument, for example:$pytest-pno:aggreportContributingContributions are very welcome. Tests can be run withtox, please ensure the coverage at least stays the same before you submit a pull request.LicenseDistributed under the terms of theMITlicense, "pytest-aggreport" is free and open source softwareIssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.
Package: pytest-aio
pytest-aiopytest-aio– Is a simplepytestplugin for testing any async python codeFeaturesSupports all most popular async python libraries:Asyncio,TrioandCurioAutomatically run your async testsWorks withcontextvarscorrectly (supports it for async/sync fixtures)Supportstrio-asyncioContentspytest-aioFeaturesRequirementsInstallationUsageAsync fixtures for sync testsCustomize async librariesHelpersBug trackerContributingLicenseRequirementspython >= 3.7Installationpytest-aioshould be installed using pip:pip install pytest-aiooptionally extras are available:pip install pytest-aio[curio,trio]UsageWhen installed the plugin runs all your async test functions/fixtures.asyncdeftest_async():assertTrueNo need to mark your async tests. Just run pytest as is.Async fixtures for sync testsIf you plan use async fixtures for sync tests, please ensure you have to
includeaiolibfixture:# It's important to add aiolib fixture heredeftest_with_async_fixtures(async_fixture,aiolib):assertasync_fixture=='value from async fixture'As an alternative, If you are doing the async fixtures yourself, you can addaiolibinside them:@pytest.fixtureasyncdefasync_fixture(aiolib):return'value from async fixture'# So for the test we don't need to implicity use `aiolib` anymoredeftest_with_async_fixtures(async_fixture):assertasync_fixture=='value from async fixture'Customize async librariesBy default each test function will be run with asyncio, trio, curio backends
consistently (only if trio/curio are installed). But you can customise the
libraries for all your tests creating the global fixture:# Run all tests with Asyncio/Trio only@pytest.fixture(params=['asyncio','trio'])defaiolib(request):assertrequest.paramIf you want to specify different options for the selected backend, you can do
so by passing a tuple of (backend name, options dict):@pytest.fixture(params=[pytest.param(('asyncio',{'use_uvloop':False}),id='asyncio'),pytest.param(('asyncio',{'use_uvloop':True}),id='asyncio+uvloop'),pytest.param(('trio',{'trio_asyncio':True}),id='trio+asyncio'),pytest.param(('curio',{'debug':True}),id='curio'),])defaiolib(request):assertrequest.paramTo set a specific backends for a single test only:@pytest.mark.parametrize('aiolib',['asyncio'])asyncdefonly_with_asyncio():awaitasyncio.sleep(1)assertTrueHelpersThe plugin containsaiosleepfixture. It’s an equivalent toasyncio.sleep,trio.sleep,curio.sleepfor current running library.Bug trackerIf you have any suggestions, bug reports or
annoyances please report them to the issue tracker
athttps://github.com/klen/asgi-tools/issuesContributingDevelopment of the project happens at:https://github.com/klen/pytest-aioLicenseLicensed under aMIT license.
Package: pytest-aiohttp
pytest plugin for aiohttp supportThe library provides useful fixtures for creation test aiohttp server and client.Installation$pipinstallpytest-aiohttpAddasyncio_mode = autoline topytest configuration(seepytest-asyncio modesfor details).  The plugin works
withstrictmode also.UsageWrite tests inpytest-asynciostyle
using provided fixtures for aiohttp test server and client creation. The plugin provides
resources cleanup out-of-the-box.The simple usage example:fromaiohttpimportwebasyncdefhello(request):returnweb.Response(body=b"Hello, world")defcreate_app():app=web.Application()app.router.add_route("GET","/",hello)returnappasyncdeftest_hello(aiohttp_client):client=awaitaiohttp_client(create_app())resp=awaitclient.get("/")assertresp.status==200text=awaitresp.text()assert"Hello, world"intextSeeaiohttp documentation <https://docs.aiohttp.org/en/stable/testing.html#pytest>for
more details about fixtures usage.
Package: pytest-aiohttp-client
pytest-aiohttp-clientAwesome pytest fixture for awesomeaiohttp!InstallationInstall it viapiptool:pipinstallpytest-aiohttp-clientor Poetry:poetryaddyandex-geocoderUsage examplePlugin providesapifixture, but you should defineaiohttp_appfixture first:importpytestfrommy_awesome_appimportmake_app@pytest.fixturedefaiohttp_app()->Application:returnmake_app()Default decodingFixture will decode and return payload by default as json or bytes (depends onContent-Typeheader):asyncdeftest_returns_json(api):got=awaitapi.get("/json-url/")assertgot=={"key":"value"}asyncdeftest_returns_bytes(api):got=awaitapi.get("/url/")assertgot==b"Some text"Status code assertionsYou can assert on status code:asyncdeftest_returns_ok(api):awaitapi.get("/url/",expected_status=200)ResponseresultTypeas_response=Trueif you needClientResponseobject:fromaiohttp.clientimportClientResponseasyncdeftest_returns_response(api):got=awaitapi.get("/url/",as_response=True)assertisinstance(got,ClientResponse)Development and contributionFirst of all you should installPoetry.install project dependenciesmakeinstallrun lintersmakelintrun testsmaketestfeel free to contribute!
Package: pytest-aioresponses
An integration ofaioresponsesforpy.testsimilar topytest-responsesInstallationYou can install “pytest-aioresponses” viapipfromPyPI:$ pip install pytest-aioresponsesUsageimportaiohttpimportpytest@pytest.mark.asyncioasyncdeftest_something(aioresponses):aioresponses.get("https://hello.aio")asyncwithaiohttp.ClientSession()assession:asyncwithsession.get("https://hello.aio")asresponse:assertresponse.status==200ContributingContributions are very welcome.LicenseDistributed under the terms of theMITlicense, “pytest-aioresponses” is free and open source softwareIssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.
Package: pytest-aioworkers
A plugin to test aioworkers projects with pytestFeaturesfixtures: aioworkers, context, config_yamlRequirementspytestaioworkersInstallationYou can install “pytest-aioworkers” viapipfromPyPI:$ pip install pytest-aioworkers[asyncio]ContributingContributions are very welcome. Tests can be run withhatch, please ensure
the coverage at least stays the same before you submit a pull request.To run tests:hatch run pytestor:hatch run covLicenseDistributed under the terms of theApache Software License 2.0license, “pytest-aioworkers” is free and open source softwareIssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.
Package: pytest-allure-intersection
pytest-allure-intersectionInstallation>pipinstallpytest-allure-intersectionUsageThis pytest plugin modifies the selection behavior of Allure selection options.If you run:>pytest--allure-epics=MyGreatEpic--allure-features=MyGreatFeatureBy default, this command would select all tests that are decoratedeitherwith@allure.epic("MyGreatEpic")or@allure.feature("MyGreatFeature"),i.e.the selection is based on theunionof the flags.After installing thepytest-allure-intersectionplugin, tests can be selected based on whether they matchbothcriteria,i.e.a test is selected if its Allure decorators are a superset of the flags requested on the CLI.You can enable that behavior by passing--allure-selection-by-intersection, otherwise the default behavior will not be affected in any way.Contributingpytest-allure-intersectionuses Poetry for its development. To run tests, use:>poetryruntox
Package: pytest-alphamoon
pytest-alphamoonSet of simple static code checks at Alphamoon.Thispytestplugin was generated
withCookiecutteralong with@hackebrot'scookiecutter-pytest-plugintemplate. Source code is based onpytest-isortplugin.FeaturesPackage contains several plugins, as shown in Table below:PluginDescriptionimport-checkChecks no imports fromscripts/notebooks/user_settingsinit-checkChecks no__init__.pyfile inscripts/notebooksnotebook-checkChecks notebooks (.ipnybfiles) are clean, without outputsnewline-checkChecks files (requirements*,.gitignoreor custom) for newline at the end of filetestdir-checkChecks test files (files matching patterns:test_*.pyor*_test.py) are under/testsdirectoryannotation-checkChecks integration tests function/class definition (all class and functions defined underintegration_testsprefixed withtest*) has decorator@integration_testadr-checkChecks Architecture Decision Record files has consistent (unique) numbering (by default plugin searches for.adr-dirfor declaration of ADR files directory)requirements-coherence-checkChecks requirements defined in setup.py against those in requirements[-dev].txt (library names presence and versions if specified).requirements-versions-checkChecks whether requirements versions are fixedsorted-requirements-checkChecks ifrequirements*files are sortedcommit-message-checkChecks whether git commit messages follow the naming conventionRequirementsgit-python>=1.0.3
pytest>=3.5.0InstallationYou can install "pytest-alphamoon" viapipfromPyPI:$ pip install pytest-alphamoonUsageYou can add arbitrary plugin from this package by specifying its name inpytest.iniaddoptssection with plugin names as shown in Table above along with any other plugin you are currently using.[pytest]addopts=--init-check --import-check --notebook-check  --newline-check --testdir-check--annotation-check --adr-check --requirements-coherence-check --requirements-versions-check--sorted-requirements-check --commit-message-checkimport_forbidden_from=scriptsuser_settingsnotebooksnotebook_allowed_in=notebooksinit_forbidden_in=scriptsnotebooksadr_rel_path=.adr-dirrequirements_path=requirements.txtrequirements-dev.txtcheck_commit_messages_from=0f95a3b033d27e1845b85ff59739889043fd598dpytest_nesting_level=1Parameters, likeimport_forbidden_from, shown in example configuration above are optional.
If custom values are not provided inpytest.inifile, default parameters are used.After setting up configuration file specified checks are loaded and executed automatically within test session,
after invoking command:$ pytestContributingContributions are very welcome. Tests can be run withtox, please ensure the coverage
at least stays the same before you submit a pull request.LicenseDistributed under the terms of theMITlicense, "pytest-alphamoon" is
free and open source softwareIssuesIf you encounter any problems, please email us atdev@alphamoon.ai, along with a detailed description.