Skip to main content

Table Parser

Intended to be used with pytest_bdd for parsing inline tables from str into dict

Example:

Given I have a thing
When I do stuff:
    | Heading | Other Heading |
    | to do   | Also          |
    | more    | Other         |
Then everything is great
from pytest_bdd import when, parsers
from table_parser.table_parser import table_parser

@when(parsers.cfparse('I do stuff:\n{table}'))
def verify_date_from_request(table):
    table_dict = table_parser(table)

Metadata

Release files for bbd-table-parser 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bbd-table-parser 0.0.1
File Size Uploaded
bbd-table-parser-0.0.1.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bbd-table-parser 0.0.1
File Interpreter ABI Platform
bbd_table_parser-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / bbd-table-parser-0.0.1.tar.gz

Download URL bbd-table-parser-0.0.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d390d3d4c58e6f966bb9a672b3b51fa5cd9a0b5a074845fb9ff73e04c7bb7bb9
BLAKE2b-256 checksum
How to use checksums
a78330e12096a601ee637796f3ac4b08c234b6b701a95f20cc195ea3bf51b8f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.9

Release files / bbd_table_parser-0.0.1-py3-none-any.whl

Download URL bbd_table_parser-0.0.1-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b001230cf8622ebe7c3f4889e70da2a1f18e2db4a9bded5467137b8bc0d33a52
BLAKE2b-256 checksum
How to use checksums
d5b62fa9016d7675724a4f0e00a15c5d8cc64e6b057809b6502cfdd8a28efead
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page