{"id":44334075,"url":"https://github.com/clembou/behave-pandas","last_synced_at":"2026-02-11T11:01:13.406Z","repository":{"id":57414551,"uuid":"120018842","full_name":"clembou/behave-pandas","owner":"clembou","description":"Utility package for the Behave BDD testing framework, to make converting gherkin tables to and from pandas data frames a breeze.","archived":false,"fork":false,"pushed_at":"2024-11-12T18:08:09.000Z","size":73,"stargazers_count":14,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-03T06:14:33.833Z","etag":null,"topics":["bdd","behave","pandas","pandas-dataframe","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clembou.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-02T18:53:47.000Z","updated_at":"2023-05-27T13:44:30.000Z","dependencies_parsed_at":"2024-06-21T13:11:16.842Z","dependency_job_id":"62eed381-5e70-4871-be5f-ed98c6694162","html_url":"https://github.com/clembou/behave-pandas","commit_stats":{"total_commits":77,"total_committers":6,"mean_commits":"12.833333333333334","dds":0.1558441558441559,"last_synced_commit":"2f5f1aac73348f62e8549fe67a0ff928763116cd"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/clembou/behave-pandas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clembou%2Fbehave-pandas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clembou%2Fbehave-pandas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clembou%2Fbehave-pandas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clembou%2Fbehave-pandas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clembou","download_url":"https://codeload.github.com/clembou/behave-pandas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clembou%2Fbehave-pandas/sbom","scorecard":{"id":291234,"data":{"date":"2025-08-11","repo":{"name":"github.com/clembou/behave-pandas","commit":"2f5f1aac73348f62e8549fe67a0ff928763116cd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":2,"reason":"Found 2/9 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-package.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-package.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/clembou/behave-pandas/python-package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-package.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/clembou/behave-pandas/python-package.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:21","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:23","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T18:15:39.878Z","repository_id":57414551,"created_at":"2025-08-17T18:15:39.878Z","updated_at":"2025-08-17T18:15:39.878Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29332292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bdd","behave","pandas","pandas-dataframe","testing"],"created_at":"2026-02-11T11:00:33.042Z","updated_at":"2026-02-11T11:01:13.395Z","avatar_url":"https://github.com/clembou.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# behave-pandas\n\nUtility package for the [Behave](https://github.com/behave/behave) BDD testing framework, to make converting gherkin tables\nto and from [pandas](https://github.com/pandas-dev/pandas) data frames a breeze.\n\n## Build Status\n![Travis CI badge](https://travis-ci.org/clembou/behave-pandas.svg?branch=master)\n\n## Installation\n\n```bash\npip install behave-pandas\n```\n\n## Features\n\n* Easily convert a Gherkin table into a pandas data frame with explicit dtype information\n* Easily convert a pandas data frame into a behave table that can be parsed by behave-pandas\n* Support converting data frames with multiple index levels either on columns or rows\n* Handle missing data for dtypes that support it.\n\n## Changelog\n\n[See the changelog here.](CHANGELOG.md)\n\n## API\n\nThe behave-pandas api is extremely simple, and consists in two functions:\n\n```python\nfrom behave_pandas import table_to_dataframe, dataframe_to_table\n```\n\n## Example\n\n```gherkin\nFeature: Table printer\n\n  as a tester\n  I want to be able to create gherkin tables from existing data frames\n\n  Scenario: simple index\n    Given a gherkin table as input\n      | str       | float     | str                 |\n      | index_col | float_col | str_col             |\n      | egg       | 3.0       | silly walks         |\n      | spam      | 4.1       | spanish inquisition |\n      | bacon     | 5.2       | dead parrot         |\n    When converted to a data frame using 1 row as column names and 1 column as index\n    And printed using data_frame_to_table\n    Then it prints a valid string copy pasteable into gherkin files\n    \"\"\"\n    | object    | float64   | object              |\n    | index_col | float_col | str_col             |\n    | egg       | 3.0       | silly walks         |\n    | spam      | 4.1       | spanish inquisition |\n    | bacon     | 5.2       | dead parrot         |\n    \"\"\"\n```\n\nAssociated steps:\n\n```python\nfrom behave import *\nfrom behave_pandas import table_to_dataframe, dataframe_to_table\n\nuse_step_matcher(\"parse\")\n\n@given(\"a gherkin table as input\")\ndef step_impl(context,):\n    context.input = context.table\n\n@when('converted to a data frame using {column_levels:d} row as column names and {index_levels:d} column as index')\ndef step_impl(context, column_levels, index_levels):\n    context.parsed = table_to_dataframe(context.input, column_levels=column_levels, index_levels=index_levels)\n\n\n@then(\"it prints a valid string copy pasteable into gherkin files\")\ndef step_impl(context):\n    assert context.result == context.text\n\n\n@step(\"printed using data_frame_to_table\")\ndef step_impl(context):\n    context.result = dataframe_to_table(context.parsed)\n```\n\nParsed dataframe:\n\n```\n\u003e\u003e\u003e context.parsed\n           float_col              str_col\nindex_col\negg              3.0          silly walks\nspam             4.1  spanish inquisition\nbacon            5.2          dead parrot\n\n\u003e\u003e\u003e context.parsed.info()\n\u003cclass 'pandas.core.frame.DataFrame'\u003e\nIndex: 3 entries, egg to bacon\nData columns (total 2 columns):\nfloat_col    3 non-null float64\nstr_col      3 non-null object\ndtypes: float64(1), object(1)\nmemory usage: 72.0+ bytes\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclembou%2Fbehave-pandas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclembou%2Fbehave-pandas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclembou%2Fbehave-pandas/lists"}