Saravanan666/pypi-org huggingface dataset:
Package: be-great-v
Generation of Realistic Tabular datawith pretrained Transformer-based language modelsOur GReaT framework leverages the power of advanced pretrained Transformer language models to produce high-quality synthetic tabular data. Generate new data samples effortlessly with our user-friendly API in just a few lines of code. Please see ourpublicationfor more details.我们的GReaT框架利用先进的预训练Transformer语言模型的力量，生成高质量的合成表格数据。只需几行代码，就可以使用我们的用户友好的API轻松生成新的数据样本。更多详情请参阅我们的出版物GReaT InstallationThe GReaT framework can be easily installed using withpip- requires a Python version >= 3.9:pipinstallbe-greatGReaT QuickstartIn the example below, we show how the GReaT approach is used to generate synthetic tabular data for the California Housing dataset.frombe_greatimportGReaTfromsklearn.datasetsimportfetch_california_housingdata=fetch_california_housing(as_frame=True).framemodel=GReaT(llm='distilgpt2',batch_size=32,epochs=25)model.fit(data)synthetic_data=model.sample(n_samples=100)Imputing a sampleGReaT also features an interface to impute, i.e., fill in, missing values in arbitrary combinations. This requires a trainedmodel, for instance one obtained using the code snippet above, and apd.DataFramewhere missing values are set to NaN.
A minimal example is provided below:# test_data: pd.DataFrame with samples from the distribution# model: GReaT trained on the data distribution that should be imputed# Drop values randomly from test_dataimportnumpyasnpforclmintest_data.columns:test_data[clm]=test_data[clm].apply(lambdax:(xifnp.random.rand()>0.5elsenp.nan))imputed_data=model.impute(test_data,max_length=200)GReaT CitationIf you use GReaT, please link or cite our work:@inproceedings{borisov2023language,title={Language Models are Realistic Tabular Data Generators},author={Vadim Borisov and Kathrin Sessler and Tobias Leemann and Martin Pawelczyk and Gjergji Kasneci},booktitle={The Eleventh International Conference on Learning Representations },year={2023},url={https://openreview.net/forum?id=cEygmQNOeI}}GReaT AcknowledgementsWe sincerely thank theHuggingFace:hugs: framework.
Package: behalearn
behalearnbehalearn is a library that simplifies data preparation and feature extraction for behavioral biometric data
(such as mouse movements, touch movements, accelerometer data).
Such data may be subsequently used for e.g. implicit user authenticaton.behalearn also provides a handful of simple, interactive visualizations of raw data, pre-processed data
and reports of prediction results (such as theDET curve).InstallationThe source code is currently hosted onGitLab.The easiest way to install behalearn is viapip:pip install behalearnUsageSimply import individual behalearn modules or their functions/classes, for example:from behalearn.features import FeatureExtractorTheDEMO.ipynbfile shows examples of basic behalearn usage.DocumentationThe official documentation and structure of the library is availablehere.LicenseSource code is provided under theMIT License.
Package: behatrix
Behatrix is a program for the analysis of behavioral sequences.By using a flexible and efficient approach, Behatrix allows analyzing large sets of behavioral sequences
and can organize data into contingency tables. The program can also perform permutations test and autonomously
generate the code for a flow diagram representing the transitions between behaviors.FeaturesBehaviors statisticsTransitions statisticsFlow diagramPermutations testLevenshtein distances and Needleman-Wunsch identitiesRequirementsPyQt5NumpyChange LogPlease consult theRevision history.
Package: behave
behave is behavior-driven development, Python style.Behavior-driven development (or BDD) is an agile software development
technique that encourages collaboration between developers, QA and
non-technical or business participants in a software project.behaveuses tests written in a natural language style, backed up by Python
code.First,install *behave*.Now make a directory called “features/”.
In that directory create a file called “example.feature” containing:# -- FILE: features/example.featureFeature:Showing off behaveScenario:Run a simple testGivenwe have behave installedWhenwe implement5testsThenbehave will test them for us!Make a new directory called “features/steps/”.
In that directory create a file called “example_steps.py” containing:# -- FILE: features/steps/example_steps.pyfrombehaveimportgiven,when,then,step@given('we have behave installed')defstep_impl(context):pass@when('we implement{number:d}tests')defstep_impl(context,number):# -- NOTE: number is converted into integerassertnumber>1ornumber==0context.tests_count=number@then('behave will test them for us!')defstep_impl(context):assertcontext.failedisFalseassertcontext.tests_count>=0Run behave:$behaveFeature:Showingoffbehave# features/example.feature:2Scenario:Runasimpletest# features/example.feature:4Givenwehavebehaveinstalled# features/steps/example_steps.py:4Whenweimplement5tests# features/steps/example_steps.py:8Thenbehavewilltestthemforus!# features/steps/example_steps.py:131featurepassed,0failed,0skipped1scenariopassed,0failed,0skipped3stepspassed,0failed,0skipped,0undefinedNow, continue reading to learn how to get the most out ofbehave. To get started,
we recommend thetutorialand then thefeature testing languageandapireferences.More Informationbehave documentation:latest edition,stable edition,PDFbehave.example: Behave Examples and Tutorials (docs, executable examples).changelog(latest changes)
Package: behave-asl
behave-aslbehave-asl is a Python tool for running unit-style behavioral tests against an AWS Step Function.  It is built on top ofbehave.In the below example, we define a basic state machine with multiple states.  We create a feature file that loads the state machine, skips to a step in the middle, then executes a single step.  It then validates the current state of the execution.state-machine.asl{
    "StartAt": "FirstState",
    "States": {
        "FirstState": {
            "Type": "Pass",
            "Next": "SecondState"
        },
        "SecondState": {
            "Type": "Pass",
            "Next": "ThirdState"
        },
        "ThirdState": {
            "Type": "Pass",
            "Result": "end",
            "End": true
        }
    }
}features/state-transitions.featureFeature: States can transition
  Scenario: Go from second to third state
    Given a state machine defined in "state-machine.asl"
    And the execution is currently at the state "SecondState"
    When the state machine executes
    Then the next state is "ThirdState"

  Scenario: Third state is the final state
    Given a state machine defined in "state-machine.asl"
    And the execution is currently at the state "ThirdState"
    When the state machine executes
    Then the execution ended
    And the execution was successfulAdvantagesQuick executionThebehave-asltest bed will run very quickly in comparison to the actual time it takes to execute your state machine.  This allows you to catch some some mistakes earlier in the development lifecycle.  You can validate your JsonPath queries without executing your actual state machine.Document requirementsFeature files are regularly used in the software development industry to document the requirements for a system.Skip steps during test casesbehave-aslwill allow you to skip steps.  This can be very helpful for state machines that have long running steps.Installation$ pip install behave-aslUsageProject StructureThe asl files can be anywhere in your project.  You should have afeaturesdirectory that contains your feature files.  Each feature file should use the.featureextension.  You can have subfolders within yourfeaturesfolder to help categorize your features.state-machine.asl
features/my-first-feature.feature
features/grouping/my-second-feature.featureCLIYou can runbehave-aslwithout any arguments to run against the current working directory.behave-aslwill look for feature files in a subfolder calledfeaturesbehave-aslbehave-aslis a wrapper aroundbehave.  All ofbehave's command line options are available tobehave-aslMore DocumentationReference GuideCompatability GuideContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Basic Contributor GuideDevelopment GuidesLicenseApache 2.0
Package: behave-bse
behave is behavior-driven development, Python style.Behavior-driven development (or BDD) is an agile software development
technique that encourages collaboration between developers, QA and
non-technical or business participants in a software project.behaveuses tests written in a natural language style, backed up by Python
code.First,install *behave*.Now make a directory called “features/”.
In that directory create a file called “example.feature” containing:# -- FILE: features/example.featureFeature:Showing off behaveScenario:Run a simple testGivenwe have behave installedWhenwe implement5testsThenbehave will test them for us!Make a new directory called “features/steps/”.
In that directory create a file called “example_steps.py” containing:# -- FILE: features/steps/example_steps.pyfrombehaveimportgiven,when,then,step@given('we have behave installed')defstep_impl(context):pass@when('we implement{number:d}tests')defstep_impl(context,number):# -- NOTE: number is converted into integerassertnumber>1ornumber==0context.tests_count=number@then('behave will test them for us!')defstep_impl(context):assertcontext.failedisFalseassertcontext.tests_count>=0Run behave:$behaveFeature: Showing off behave # features/example.feature:2

  Scenario: Run a simple test          # features/example.feature:4
    Given we have behave installed     # features/steps/example_steps.py:4
    When we implement 5 tests          # features/steps/example_steps.py:8
    Then behave will test them for us! # features/steps/example_steps.py:13

1 feature passed, 0 failed, 0 skipped
1 scenario passed, 0 failed, 0 skipped
3 steps passed, 0 failed, 0 skipped, 0 undefinedNow, continue reading to learn how to get the most out ofbehave. To get started,
we recommend thetutorialand then thefeature testing languageandapireferences.More Informationbehave documentation:latest edition,stable edition,PDFbehave.example: Behave Examples and Tutorials (docs, executable examples).changelog(latest changes)
Package: behavecrackle
behavecrackle is behavior-driven development, Python style.Behave carckle is form the  original behave modified according to crackle needsBehavior-driven development (or BDD) is an agile software development
technique that encourages collaboration between developers, QA and
non-technical or business participants in a software project.behaveuses tests written in a natural language style, backed up by Python
code.First,install *behave*.Now make a directory called “features/”.
In that directory create a file called “example.feature” containing:# -- FILE: features/example.featureFeature:Showing off behaveScenario:Run a simple testGivenwe have behave installedWhenwe implement5testsThenbehave will test them for us!Make a new directory called “features/steps/”.
In that directory create a file called “example_steps.py” containing:# -- FILE: features/steps/example_steps.pyfrombehaveimportgiven,when,then,step@given('we have behave installed')defstep_impl(context):pass@when('we implement{number:d}tests')defstep_impl(context,number):# -- NOTE: number is converted into integerassertnumber>1ornumber==0context.tests_count=number@then('behave will test them for us!')defstep_impl(context):assertcontext.failedisFalseassertcontext.tests_count>=0Run behave:$behaveFeature: Showing off behave # features/example.feature:2

  Scenario: Run a simple test          # features/example.feature:4
    Given we have behave installed     # features/steps/example_steps.py:4
    When we implement 5 tests          # features/steps/example_steps.py:8
    Then behave will test them for us! # features/steps/example_steps.py:13

1 feature passed, 0 failed, 0 skipped
1 scenario passed, 0 failed, 0 skipped
3 steps passed, 0 failed, 0 skipped, 0 undefinedNow, continue reading to learn how to get the most out ofbehave. To get started,
we recommend thetutorialand then thefeature testing languageandapireferences.More Informationbehave documentation:latest edition,stable edition,PDFbehave.example: Behave Examples and Tutorials (docs, executable examples).changelog(latest changes)
Package: behave-cucumber-formatter
Cucumber Behave Formatter 🥒A formatter for behave's outputs using CucumberOutput is similar tobehave --format json.prettyFormatter fromhttps://docs.getxray.app/display/XRAY/Testing+using+Behave+in+PythonInspiration fromhttps://github.com/iljabauer/behave-teamcityInstallationpipinstallbehave-cucumber-formatterUsagebehave--formatbehave_cucumber_formatter:PrettyCucumberJSONFormatterOr with an.inifile:# -- FILE: behave.ini[behave.formatters]cucumber=behave_cucumber_formatter:PrettyCucumberJSONFormatterand use the shorthand:behave--formatcucumberUn-Installationpipuninstallbehave-cucumber-formatter
Package: behave-db
behave-dbBDD DB steps implementation for Behavebehave-dbis a db testing tools for
Behavior-Driven-Development, based onbehaveandJayDeBeApi.InstallationYou can get and install behave-db with pip$ pip install  behave-dbUsage exampleyourapp/features/environment.py:frombehave_dbimportenvironmentasbenvdefbefore_all(context):importbehave_dbconfig_datas={}#jdbc-drivers in data_dirdata_dir=os.path.join(os.path.dirname(behave_db.__file__),"../../tests/data")#set csv-jdbc-configconfig_datas['driver_name']="org.relique.jdbc.csv.CsvDriver"config_datas['driver_jar_path']=os.path.join(data_dir,"drivers","csvjdbc-1.0-37.jar")config_datas['csv_jdbc_url']="jdbc:relique:csv:"+data_dirconfig_datas['db_user']=Noneconfig_datas['db_password']=None#copy var to behave_dbbenv.before_all(context)context.db_config=config_datasdefafter_scenario(context,scenario):# auto close connectcontext.execute_steps(u"""When I close the connect""")yourapp/features/steps/some_db_stuff.py:frombehave_db.stepsimport*yourapp/features/some_db.feature:Feature:databases testingtesting behave-db stepsScenario:connect to csv with varGivenI connect to db "$csv_jdbc_url" with user "$db_user" and password "$db_password"WhenI wait for1secondsThenI set "count_num" from the search with "SELECT count(1) FROM csv_datas"Andthe "$count_num" is not nullAndthe "$count_num" value should be "200"yourapp/data/some_db_jdbc.jar:$ls

csvjdbc-1.0-37.jar
...
...run in yourapp/:# run behave in yourapp dirE:\git-code\behave-db\tests>behaveFeature:databasestesting# features/basic.feature:1testingbehave-dbstepsScenario:connecttocsvwithvar# features/basic.feature:4GivenIconnecttodb"$csv_jdbc_url"withuser"$db_user"andpassword"$db_password"# ../src/behave_db/steps/basic.py:12WhenIwaitfor1seconds# ../src/behave_db/steps/basic.py:53ThenIset"count_num"fromthesearchwith"SELECT count(1) FROM csv_datas "# ../src/behave_db/steps/basic.py:59Andthe"$count_num"isnotnull# ../src/behave_db/steps/basic.py:68Andthe"$count_num"valueshouldbe"200"# features/steps/steps.py:81featurepassed,0failed,0skipped1scenariospassed,0failed,0skipped5stepspassed,0failed,0skipped,0undefinedTook0m1.797sTODOdrop、delete、insert... or other common stepsbuild on dockerother tools on behaveweb application testingbehavingapi testingbehave-http
Package: behave-django
Behave BDD integration for DjangoFeaturesWeb Browser Automation readyDatabase transactions per scenarioUse Django’s testing clientUse unittest + Django assert libraryUse behave’s command line argumentsUse behave’s configuration fileFixture loadingPage objectsVersion Supportbehave-djangoistested againstthe officially supported combinations of
Python and Django (Django 2.2, 3.0 on Python 3.5, 3.6, 3.7, 3.8).The version ofbehaveis not tied to our integration (read: “independent”).
We test against the latest release on PyPI, and run a sample against Behave’s
currentmasterbranch.DocumentationDocumentation is available frombehave-django.readthedocs.ioRead more aboutbehaveatbehave.readthedocs.ioHow to ContributePlease, read thecontributing guidein the docs.
Package: behave-django-bse
Behave BDD integration for DjangoFeaturesWeb browser automation readyDatabase transactions per scenarioUse Django’s test clientUse unittest + Django assert libraryUse behave’s command line argumentsUse behave’s configuration fileFixture loadingPage objectsVersion Supportbehave-djangoistested againstthe officially supported combinations of
Python and Django (Django 3.2, 4.1, 4.2 on Python 3.6, 3.7, 3.8, 3.9, 3.10, 3.11).behave-djangorequires a few newer features ofbehaveand hence installs
a recent unreleased version ofbehaveas a dependency.DocumentationDocumentation is available frombehave-django.readthedocs.ioRead more aboutbehaveatbehave.readthedocs.ioHow to ContributePlease, read thecontributing guidein the docs.
Package: behave-django-steps
behave-django-stepsReduce boilerplate in your behave steps for Django.FeaturesAuthentication Steps:authentication.featureAuthorization Steps:authorization.featureModel Steps:models.featurePerformance Steps:queries.featureRequest Steps:requests.featureCaveatsWhen loadingauth.Permissionfixtures you must consider that Django
automatically creates basic permissions for models.If you're trying to load custom permissions after writing thePermission.jsonfixture
you need to delete the default permissions from the fixture, or json.loads it and filter
on only your custom permissions.Because the permission was already created by Django, if you try to load it
you will get anIntegrityError.
Package: behave-generator
Bootstrap your project to use behave bddFree software: BSD licenseInstallationpip install behave-generatorDocumentationhttps://behave-generator.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.0 (2016-11-06)First release on PyPI.
Package: behave-html-formatter
HTML formatter for BehaveTo use it with behave createbehave.inifile in project folder (or in home) with
following content:# -- FILE: behave.ini# Define ALIAS for HtmlFormatter.[behave.formatters]html=behave_html_formatter:HTMLFormatterand then use it by running behave with-f/--formatparameter, e.g.behave -f helpbehave -f htmlbehave -f html -o behave-report.htmlYou can find information about behave and user-defined formatters in thebehave docs.ContributingYou want to help with improving this software? Please create an issue in
our open bug tracker, or open a pull request directly.We usetoxfor running linting and tests,
e.g.toxtox -ltox -e flake8,behaveFor code formatting we useblack, which
you can run using our Tox setup, e.g.tox -e blackIf you need to change CSS or JavaScript code: First edit the regular files,
then generate the minified versions like so:tox -e minify
Package: behave-http
A Python package for HTTP-service testing. Contains reusable steps forBehaveBDD (behaviour-driven
development) tool. It’s mostly useful for testing REST APIs and interacting
with JSON data over HTTP.Usageyourapp/features/environment.py:from behave_http.environment import before_scenarioyourapp/features/steps/some_http_stuff.py:from behave_http.steps import *(You can mix them with your own steps in the same file.)yourapp/features/some_api.feature:Feature: Some API
  As an API client
  I want to be able to manage activities and sessions

  Background: Set server name, headers and reset test user's database
    Given I am using server "$SERVER"
    And I set base URL to "$URL"
    And I set "Accept" header to "application/json"
    And I set "Content-Type" header to "application/json"
    And I set BasicAuth username to "t@example.com" and password to "t"

  Scenario: Ensure account exists
    When I make a GET request to "account"
    Then the response status should be 200If your test target ishttp://127.0.0.1:8081/apiyou can test it with:SERVER=http://127.0.0.1:8081 URL=api behaveGeneral rules on using quoted"values"in feature files:JSONs and numbers (response code, array length) must appear as is.Other substitutes must be quoted (variable names, headers and their
values).While there is no extensive documentation thefeatures(self tests)
directory contains (a hopefully complete) set of usage examples.Testing for nested JSON content with non-ASCII characters in paths is
not supported by the underlying ``jpath`` library.DevelopmentTo install essential packages for the test suite:pip install -r requirements_dev.txtA complete list of development tools used in theMakefilecan be installed
with:pip install coveralls docutils flake8 tox wheelRunning testsLaunch a special HTTP server responding to test requests:python testserver.pyThen run feature tests in a separate shell:make test-all # runs on every supported python version with tox
make test     # runs in current python environment onlyEnvironment variablesSetTEST_SERVERto full URL (including schema) if default port
(55080) on localhost is already used by another process. For example:export TEST_SERVER=http://127.0.0.1:55081
python testserver.py >testserver.log 2>&1 &
make test-coverageAcknowledgmentsThe REST steps code is initially derived fromrest api blueprint[1],
so this project inherits the same BSD 2-Clause License (see LICENSE
file).[1]https://bitbucket.org/tcorbettclark/rest-api-blueprint
Package: behave-jenkins
behave is behavior-driven development, Python style.Behavior-driven development (or BDD) is an agile software development
technique that encourages collaboration between developers, QA and
non-technical or business participants in a software project.behaveuses tests written in a natural language style, backed up by Python
code.First,install *behave*.Now make a directory called “features/”.
In that directory create a file called “example.feature” containing:# -- FILE: features/example.featureFeature:Showing off behaveScenario:Run a simple testGivenwe have behave installedWhenwe implement5testsThenbehave will test them for us!Make a new directory called “features/steps/”.
In that directory create a file called “example_steps.py” containing:# -- FILE: features/steps/example_steps.pyfrombehaveimportgiven,when,then,step@given('we have behave installed')defstep_impl(context):pass@when('we implement{number:d}tests')defstep_impl(context,number):# -- NOTE: number is converted into integerassertnumber>1ornumber==0context.tests_count=number@then('behave will test them for us!')defstep_impl(context):assertcontext.failedisFalseassertcontext.tests_count>=0Run behave:$behaveFeature:Showingoffbehave# features/example.feature:2Scenario:Runasimpletest# features/example.feature:4Givenwehavebehaveinstalled# features/steps/example_steps.py:4Whenweimplement5tests# features/steps/example_steps.py:8Thenbehavewilltestthemforus!# features/steps/example_steps.py:131featurepassed,0failed,0skipped1scenariopassed,0failed,0skipped3stepspassed,0failed,0skipped,0undefinedNow, continue reading to learn how to the most ofbehave. To get started,
we recommend thetutorialand then thefeature testing languageandapireferences.More Informationbehave documentation(latest changes)behave.example: Behave Examples and Tutorials (docs, executable examples).