Saravanan666/pypi-org huggingface dataset:
Package: test-travis-neko
seqevalseqeval is a Python framework for sequence labeling evaluation.
seqeval can evaluate the performance of chunking tasks such as named-entity recognition, part-of-speech tagging, semantic role labeling and so on.This is well-tested by using the Perl scriptconlleval,
which can be used for measuring the performance of a system that has processed the CoNLL-2000 shared task data.Support featuresseqeval supports following formats:IOB1IOB2IOE1IOE2IOBESand supports following metrics:metricsdescriptionaccuracy_score(y_true, y_pred)Compute the accuracy.precision_score(y_true, y_pred)Compute the precision.recall_score(y_true, y_pred)Compute the recall.f1_score(y_true, y_pred)Compute the F1 score, also known as balanced F-score or F-measure.classification_report(y_true, y_pred, digits=2)Build a text report showing the main classification metrics.digitsis number of digits for formatting output floating point values. Default value is2.UsageBehold, the power of seqeval:>>>fromseqeval.metricsimportaccuracy_score>>>fromseqeval.metricsimportclassification_report>>>fromseqeval.metricsimportf1_score>>>>>>y_true=[['O','O','O','B-MISC','I-MISC','I-MISC','O'],['B-PER','I-PER','O']]>>>y_pred=[['O','O','B-MISC','I-MISC','I-MISC','I-MISC','O'],['B-PER','I-PER','O']]>>>>>>f1_score(y_true,y_pred)0.50>>>accuracy_score(y_true,y_pred)0.80>>>classification_report(y_true,y_pred)precisionrecallf1-scoresupportMISC0.000.000.001PER1.001.001.001microavg0.500.500.502macroavg0.500.500.502Keras CallbackSeqeval provides a callback for Keras:fromseqeval.callbacksimportF1Metricsid2label={0:'<PAD>',1:'B-LOC',2:'I-LOC'}callbacks=[F1Metrics(id2label)]model.fit(x,y,validation_data=(x_val,y_val),callbacks=callbacks)InstallationTo install seqeval, simply run:$ pip install seqeval[cpu]If you want to install seqeval on GPU environment, please run:$pipinstallseqeval[gpu]Requirementnumpy >= 1.14.0tensorflow(optional)
Package: test-travis-pypi
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)If you're interested in financially supporting Kenneth Reitz open source, considervisiting this link. Your support helps tremendously with sustainability of motivation, as Open Source is no longer part of my day job.Check out the example!To DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.✨🍰✨
Package: test-tz-cookiecutter-pypackage
Test TZ Cookiecutter PyPackageDescriptionTZ Cookiecutter PyPackage instance for testingInstallStatus:Required by default, optional fordocumentation repositories.Requirements:Code block illustrating how to install.Subsections:Dependencies. Required if there are unusual dependencies or dependencies that must be manually installed.Suggestions:Link to prerequisite sites for programming language:npmjs,godocs, etc.Include any system-specific information needed for installation.AnUpdatingsection would be useful for most packages, if there are multiple versions which the user may interface with.UsageStatus:Required by default, optional fordocumentation repositories.Requirements:Code block illustrating common usage.If CLI compatible, code block indicating common usage.If importable, code block indicating both import functionality and usage.Subsections:CLI. Required if CLI functionality exists.Suggestions:Cover basic choices that may affect usage: for instance, if JavaScript, cover promises/callbacks, ES6 here.If relevant, point to a runnable file for the usage code.ContributingStatus: Required.Requirements:State where users can ask questions.State whether PRs are accepted.List any requirements for contributing; for instance, having a sign-off on commits.LicenseApache license 2.0
Package: testu
正方系统 Python SDK。Usage$pipinstallSchool-Apifromschool_apiimportSchoolClient# 先实例化一个学校，再实例化用户school=SchoolClient(url='http://210.38.137.126:8016')user=school.user_login('2014xxxx','xxxx')schedule_data=user.get_schedule()print(schedule_data)线上测试接口【阅读文档】使用示例参见examplesApi FunctionApiDescriptionArgumentuser_login登陆函数account, password, user_type=1, use_login_cookie=Trueget_schedule课表查询schedule_year=None, schedule_term=None, schedule_type=Noneget_score成绩查询score_year=None, score_term=None, use_api=0get_info用户信息查询get_place_schedule教学场地课表查询（可用于空教室查询）campus_list=None, building_list=None, classroom_type_list=None, classroom_name_list=None, filter_campus_list=None, filter_building_list=None, filter_classroom_type_list=NoneSchool-Api OptionsOptionDefaultDescriptionurl不存在默认值教务系统地址(必填)nameNULL学校名称codeNULL学校英文缩写login_url_path/default2.aspx登录地址路径lan_urlNone内网地址exist_verifyTrue是否存在验证码use_ex_handleTrue是否使用异常处理priority_proxyFalse是否优先使用代理proxiesNone代理地址url_endpoint略学校接口地址列表class_time_list略上课时间列表timeout10全局请求延时sessionMemoryStorage缓存工具(推荐使用redis)
Package: testudo
TestudoA wrapper for commands to be run as periodic tasks while reporting on their results/errors to legiond. Intended to be integrated with supervisord, should work well with systemd in theory.Setup & UsageInstallationtestudocan be easily installed withpip:pip3installtestudoConfigurationTODOUsageThe key reference for usingtestudois:testudo--helpDevelopmentStandardsBe excellent to each otherCode coverage must be at 100% for all new code, or a good reason must be provided for why a given bit of code is not covered.Example of an acceptable reason: "There is a bug in the code coverage tool and it says its missing this, but its not".Example of unacceptable reason: "This is just exception handling, its too annoying to cover it".The code must pass the following analytics tools. Similar exceptions are allowable as in rule 2.pylint --disable=C0103,C0111,W1203,R0903,R0913 --max-line-length=120 testudoflake8 --max-line-length=120 ...mypy --ignore-missing-imports --follow-imports=skip --strict-optional ...All incoming information from users, clients, and configurations should be validated.All internal arguments passing should be typechecked whenever possible withtypeguard.typecheckedDevelopment SetupUsingpdminstall from inside the repo directory:pdminstallThis will set up a virtualenv which you can always run specific commands withpdm run ....DevelopmentTestingAll testing should be done withpytestwhich is installed with the--devrequirements (pdm --dev install ...).To run all the unit tests, execute the following from the repo directory:pdmrunpytestThis should produce a coverage report in/path/to/dewey-api/htmlcov/While developing, you can usewatchexecto monitor the file system for changes and re-run the tests:watchexec-r-epy,yamlpdmrunpytestTo run a specific test file:pdmrunpytesttests/unit/test_cli.pyTo run a specific test:pdmrunpytesttests/unit/test_cli.py::test_cli_basicsFor more information on testing, see thepytest.inifile as well as thedocumentation.
Package: test-update
This package analyzes the style of a given writing sample using “involved” and “informational” linguistic features. The main objective of “involved” features is to build a relationship with a reader, engage or involve a reader in a text, and they include pronouns, non-phrasal coordination (“and”), and questions. The main objective of “informational” features is to convey facts and draw attention to the factual information in a text rather than build a relationship with a reader, and they include determiners (such as “the”, “which”, “both”, etc.), past tense verbs, and numbers. The package calculates the number of “involved” and “informational” features and prints out an “involved-informational ratio”. The higher the “involved-informational ratio”, the more “involved” a given writing sample. These linguistic features are based on the work of Biber (1988), Argamon et al. (2003), Pennebaker (2011).
More information on the [Github page](https://github.com/el2727/test_update)
Package: test-user-auth
user registration appThis app runs with the main.py module in the root dir.
main.py loads 'service' module from IdentityService package
initiates IdentityService instance and runs a script in the while loop.
Scripts enable to specify .json data file, write a new user to that file or check if the user has been registered.For managing data, pandas and JSON libraries were used.For the sake of simplicity, writing nested .json files was omitted.Unit tests were performed via pytest and located in the test package.The package for installation of this app was deployed:
python3 -m pip install test-user-auth.
The "run" command in the shell will execute the main script.
Package: test-util-project
测试上传版本:python3一个根目录，包含所有代码。
一个 setup.py 文件，其中包含有关您的包的信息（名称、版本、依赖等）。
可选的 README.md 或 README.rst 文件，说明您的项目。
一个 LICENSE 文件，说明您的包的许可证。
一个包含 Python 代码的子目录。my_package/
setup.py
README.md
LICENSE
my_package/init.py
module1.py
module2.py
Package: testvars
testvars - Place-holders in complex test assertionsSometimes, when writing tests, you want to assert that a data
structure computed in a test matches some expected value, but the
expected value might have components, such as times or generated ids
that can’t be predicted ahead of time.  Options in this situation
include:break the assertion into many assertions about various parts of the
data structure.Use mocking/stubbing to control things like time and ids to make
unpredictable parts of the data predictable.Both of these approaches tend to be pretty tedious and potentially
error prone.The tiny testvars package provides an alternative that is much easier
to use in many cases.  The package provides aVarsclass:>>> import testvars
>>> vars = testvars.Vars()WhenVarsattributes are compared equal the first time, the
comparison succeeds and alse sets their value:>>> vars.x == 1
TrueAt that point, the value is set, and you can make assertions
against it:>>> vars.x
1
>>> vars.x > 0
TrueFurther comparisons are against this set value:>>> vars.x == 2
FalseThis is useful when dealing with data structures with unpredictable
parts:>>> expected = {'id': vars.child_id, 'name':"Alex"}
>>> {'id': 32, 'name':"Alex"} == expected
TrueIt’s also interesting when, while you don’t know what values will be,
you can make assertions about how values are related:>>> expected = {'id': vars.parent_id, 'name':'Cas',
...             'children': [vars.child_id]}
>>> expected == {'id': 42, 'name':'Cas', 'children':[32]}
True
>>> expected == {'id': 42, 'name':'Cas', 'children':[33]}
False>>> [vars.y, 2, 3, vars.y] == [9, 2, 3, 9]
True>>> [vars.z, 2, 3, vars.z] == [8, 2, 3, 9]
FalseChanges1.0.0 (2017-07-07)Initial release
Package: testvault
testvault-python-sdkA Python SDK for TestVault. TestVault is a sample service used to demonstrate building Common Fate Access Providers to automate entitlements. TestVault is a fictional password management service similar to 1Password or Lastpass.Common Fate hosts the TestVault service athttps://prod.testvault.granted.run.The source code for the TestVault service can be found athttps://github.com/common-fate/testvault.
Package: testver
testverProgrammatically edit python package versions for testing.When publishing a python package from a continuous integration system, it can
be useful to publish it to a test package repository such as test.pypi.org.However, package repositories only accept a certain version of a package once.
To get around this, this package edits the python version in your python code
(defined as the<package>.__version__variable).This works well with systems such as flit, that require versions to be
specified in the code.Usage:testversrc/--dryrunThis will print out all the changes the script would make. It goes through the
directory you pass, and searchers for python files called__init__.pyor__version__.py(common ways of naming the files in which version numbers
are specified).Once found, if--dryrunis not specified, it will modify the python source
code.Make sure you can easily revert this locally if you are testing(i.e. commit changes before you run this).testversrc/For an example on how to use this in a continuous integration system, see
theworkflow fileof this repository.
Package: testwizard.android-set-top-box
Testwizard - Android set-top-boxPython language support for testing Android set-top box devices using testwizardUsageImport thetestwizard.testand the testwizard.android_set_top_box packages.Get a session and use it to create an Android set-top box testobject.Use this object to execute commands.You can use the session to add results that will be reported to the robot when the script finishes or set results that will be posted immediately.Sample scriptPython (android-set-top-box.py)fromtestwizard.testimportTestWizardfromtestwizard.testimportResultCodesfromtestwizard.android_set_top_boximportAndroidSetTopBoxwithTestWizard()asTW:session=TW.sessionsetTopBox=AndroidSetTopBox(session,"SetTopBox")print("sendRCKey")result=setTopBox.sendRCKey("menu")print(result.message)ifnotresult.success:session.addFail(result.message)ifnot(session.hasFailsorsession.hasErrors):session.setResult(ResultCodes.PASS,"Test was successful")sidecar file (android-set-top-box.json){"resources":[{"category":"ANDROID_STB_TV","name":"SetTopBox","id":"SetTopBox 1"}]}CompatibilityThe version is compatible with testwizard version 3.7LicenseTestwizard licensing
Package: testwizard.mobile
Testwizard - MobilePython language support for testing Mobile devices using testwizardUsageImport thetestwizard.testand the testwizard.mobile packages.Get a session and use it to create a mobile testobject.Use this object to execute commands.You can use the session to add results that will be reported to the robot when the script finishes or set results that will be posted immediately.SamplePython (mobile.py)fromtestwizard.testimportTestWizardfromtestwizard.testimportResultCodesfromtestwizard.mobileimportMobilewithTestWizard()asTW:session=TW.sessionmobile=Mobile(session,"Mobile")print("InitDriver")result=mobile.initDriver()print(result.message)ifnotresult.success:session.addFail(result.message)exit()# Add your commands hereprint("QuitDriver")result=mobile.quitDriver()print(result.message)ifnotresult.success:session.addFail(result.message)ifnot(session.hasFailsorsession.hasErrors):session.setResult(ResultCodes.PASS,"Test was successful")sidecar file (mobile.json){"resources":[{"category":"MOBILE","name":"Mobile","id":"Mobile 1"}]}CompatibilityThe version is compatible with testwizard version 3.7LicenseTestwizard licensing
Package: testwizard.set-top-box
Testwizard - set-top-boxPython language support for testing set-top box devices using testwizardUsageImport thetestwizard.testand the testwizard.set_top_box packages.Get a session and use it to create a set-top box testobject.Use this object to execute commands.You can use the session to add results that will be reported to the robot when the script finishes or set results that will be posted immediately.Sample scriptPython (set-top-box.py)fromtestwizard.testimportTestWizardfromtestwizard.testimportResultCodesfromtestwizard.set_top_boximportSetTopBoxwithTestWizard()asTW:session=TW.sessionsetTopBox=SetTopBox(session,"SetTopBox")print("sendRCKey")result=setTopBox.sendRCKey("menu")print(result.message)ifnotresult.success:session.addFail(result.message)ifnot(session.hasFailsorsession.hasErrors):session.setResult(ResultCodes.PASS,"Test was successful")sidecar file (set-top-box.json){"resources":[{"category":"STB","name":"SetTopBox","id":"SetTopBox 1"}]}CompatibilityThe version is compatible with testwizard version 3.7LicenseTestwizard licensing
Package: testwizard.smart-tv
Testwizard - Smart-TvPython language support for testing Smart-Tv devices using testwizardUsageImport thetestwizard.testand the testwizard.smart_tv packagesGet a session and use it to create a Smart TV testobject.Use this object to execute commands.You can use the session to add results that will be reported to the robot when the script finishes or set results that will be posted immediately.Sample scriptPython (smart-tv.py)fromtestwizard.testimportTestWizardfromtestwizard.testimportResultCodesfromtestwizard.smart_tvimportSmartTvwithTestWizard()asTW:session=TW.sessionsmartTv=SmartTv(session,"SmartTv")print("sendRCKey")result=smartTv.sendRCKey("menu")print(result.message)ifnotresult.success:session.addFail(result.message)ifnot(session.hasFailsorsession.hasErrors):session.setResult(ResultCodes.PASS,"Test was successful")sidecar file (smart-tv.json){"resources":[{"category":"SMART_TV","name":"SmartTv","id":"TV Model 1"}]}CompatibilityThe version is compatible with testwizard version 3.7LicenseTestwizard licensing
Package: testwizard.web
Testwizard - WebPython language support for testing websites, web-apps or webservices using testwizardUsageImport thetestwizard.testand the testwizard.web packages.Get a session and use it to create a web testobject.Use this object to execute commands.You can use the session to add results that will be reported to the robot when the script finishes or set results that will be posted immediately.Sample scriptPython (website.js)fromtestwizard.testimportTestWizardfromtestwizard.testimportResultCodesfromtestwizard.webimportWebwithTestWizard()asTW:session=TW.sessionwebsite=Web(session,"TestwizardWebsite")print("startWebDriver")result=website.startWebDriver()print(result.message)ifnotresult.success:session.addFail(result.message)exit()# Add your commands hereprint("quitDriver")result=website.quitDriver()print(result.message)ifnotresult.success:session.addFail(result.message)ifnot(session.hasFailsorsession.hasErrors):session.setResult(ResultCodes.PASS,"Test was successful")sidecar file (website.json){"resources":[{"category":"WEB","name":"TestwizardWebsite","id":"Testwizard web site"}]}CompatibilityThe version is compatible with testwizard version 3.7LicenseTestwizard licensing
Package: testwordmeaning
This library was written by Moein Davarzani and you can test its meaning by giving a word to its Word () function. Also get a list of meaningful words of its member by giving a list of words to the list_words () function and The Pin function takes a word in Persian from you and encrypts it, and if you give the password to this function, it returns the word to before encryption.Change Log0.0.4 (7/5/2022)Troubleshooting an application that reported an Internet connection error by giving “” or “ “ input to the list_words function and Added Pin function.
Package: testy
All the assertions fromTestifybut cleaned up a bit & with added py3k support.Should work with Python 2.5-3.3 and pypy 1.9. To make sure it will work for you:python setup.py test.InstallationThere are no dependencies. Simply:pip install testyExample Usageimportreimportunittestfromtesty.assertionsimportassert_dict_subset,assert_raises,assert_match_regexclassMyTestCase(unittest.TestCase):defsetUp(self):self.x=dict(a=1,b=2)deftest_x(self):assert_dict_subset(dict(b=2),self.x)deftest_exception(self):withassert_raises(TypeError):raiseTypeError("Call some code you expect to fail here.")deftest_pattern(self):pattern=re.compile('\w')assert_match_regex(pattern,'abc')deftearDown(self):self.x=Noneif__name__=="__main__":unittest.main()
Package: test-yolo
WongKinYiu/yolov7 as independent packageBindings for yolov7 project (https://github.com/WongKinYiu/yolov7)Example of usage:fromyolov7_packageimportYolov7Detectorimportcv2if__name__=='__main__':img=cv2.imread('img.jpg')det=Yolov7Detector(traced=False)classes,boxes,scores=det.detect(img)img=det.draw_on_image(img,boxes[0],scores[0],classes[0])cv2.imshow("image",img)cv2.waitKey()You can usetraced=Trueoption to download and infer traced FP16 version of yolov7 model!PYPI link:https://pypi.org/project/yolov7-package/
Package: tesxcel
Ensure Microsoft Excel books content with pytestEnsure that two Microsoft Excel files have the same cell types and content in every sheet.
Supported file formats are:.xlsx,.xlsm,.xltx,.xltmimporttesxceldeftest_excel_file_using_path():tesxcel.assert_excel_content("/path/to/the/first_file.xlsx","/path/to/the/second_file.xlsx")deftest_excel_file_using_content():received_excel_content:bytes=Nonetesxcel.assert_excel_content(received_excel_content,"/path/to/the/excel_file_to_compare.xlsx")How to installpython 3.6+must be installedUse pip to install module:python-mpipinstalltesxcel
Package: tet
# tetUnearthly intelligent batteries-included application framework built on Pyramid## How to install` pip install tet `# Changes2021-03-19  Antti Haapala  <antti.haapala@anttipatterns.com>The tet.di request scoped services are now truly instantiated per request!2016-08-19  Antti Haapala  <antti.haapala@anttipatterns.com>SQLAlchemy root factory now gives NotFound on DataError; made into a implicit-namespace package;
fixed backports.typing to greater than or equal to 1.1.2013-09-07  Antti Haapala  <antti.haapala@anttipatterns.com>renamed the package totet
Package: tetebeche
tetebecheThis is a tiny script of use only to eccentric publishers. It usesPyPDF2to create atête-bêche bookfrom two input pdfs. The two pdfs are merged, with the second reversed and rotated 180°.The user should ensure that the input PDFs have the same page dimensions and that both have
an even number of pages.Installationpip install tetebecheUsageusage: tetebeche [-h] book1 book2 merged

positional arguments:
  book1       path to first (non-reversed) book
  book2       path to second (reversed) book
  merged      path to merged output file

options:
  -h, --help  show this help message and exit
Package: tetgenpy
tetgenpytetgenpy is a python wrapper forHang Si'sTetGen - A Quality Tetrahedral Mesh Generator and a 3D Delaunay Triangulator.
It helps to preparevarious types of inputs - points, piecewise linear complexes (PLCs), and tetmesh -for tetrahedron mesh generation based on simple python types, such aslistandnumpy.ndarray.InstallpipinstalltetgenpyFor current development version,pipinstallgit+https://github.com/tataratat/tetgenpy.git@mainQuick StartFollowing is an example for tetrahedralization of a unit cube defined as PLCs.
Alternatively, you could also usetetgenpy.PLCclass to prepareTetgenIO.importtetgenpyimportnumpyasnp# tetrahedralize unit cube# define pointspoints=[[0.0,0.0,0.0],[1.0,0.0,0.0],[0.0,1.0,0.0],[1.0,1.0,0.0],[0.0,0.0,1.0],[1.0,0.0,1.0],[0.0,1.0,1.0],[1.0,1.0,1.0],]# define facets - it can be list of polygons.# here, they are hexa facesfacets=[[1,0,2,3],[0,1,5,4],[2,0,4,6],[1,3,7,5],[3,2,6,7],[4,5,7,6],]# prepare TetgenIO - input for tetgentetgen_in=tetgenpy.TetgenIO()# set points, facets, and facet_markers.# facet_markers can be useful for setting boundary conditionstetgen_in.setup_plc(points=points,facets=facets,facet_markers=[[i]foriinrange(1,len(facets)+1)],)# tetgen's tetraheralize function with switchestetgen_out=tetgenpy.tetrahedralize("qa.05",tetgen_in)# unpack outputprint(tetgen_out.points())print(tetgen_out.tetrahedra())print(tetgen_out.trifaces())print(tetgen_out.trifacemarkers())This package also provides access to tetgen's binary executable. Try:$tetgen-hDependenciesc++tetgenpybind11pythonnumpybuildcmakesetuptoolswheelcibuildwheel