CSV library for robotframework written in Python 3
Project description
robotframework-csvlib
CSV library for robotframework written in Python 3
Quick Keyword Overview
Read CSV As Single List
Arguments:
Filepath
Delimiter (optional)
Returns:
A single list with all values.
Read CSV As List
Arguments:
Filepath
Delimiter (optional)
Returns:
A list containing all rows as lists.
Read CSV As Dictionary
Arguments:
Filepath
Name of key column
Name(s) of value column(s)
Delimiter (optional)
Returns:
A dictionary with the key column a key and the value column(s) as value.
If there are multiple value columns the value will be a list containing all values.
Example
*** Settings ***
Library CSVLib
*** Test Cases ***
Test CSV
${singlelist}= Read CSV As Single List test.csv
log to console ${singlelist}
${list}= read csv as list test.csv
log to console ${list}
${dict}= read csv as dictionary test_dict.csv Animal Legs ,
log to console ${dict}
${value}= create list Legs Eyes
${dictWList}= read csv as dictionary test_dict1.csv Animal ${value} ,
log to console ${dictWList}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for robotframework-csvlib-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e82a0828fe2f59d930a5734c7fda3bf8bcba299b5a87ee6ee1b0385536e176bc |
|
MD5 | 740d693689aa8008c9ccce35c100fd60 |
|
BLAKE2b-256 | dfee069c468753d44eec30a702e2e02f19a1cad8a691f271018e132c8f120473 |
Close
Hashes for robotframework_csvlib-1.0.1-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 685a6a44dd3654ddf33a6de194e45daa08028723ef1346fadbfb6e66e5b54215 |
|
MD5 | 56539167bdde1700008f1d0490123602 |
|
BLAKE2b-256 | c368aaa002fc773458988fb99d53b5f76545675f6f3af1dbd9dd175aff2e65e9 |
Close
Hashes for robotframework_csvlib-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c37a487bd8aae8370a2e7d38c0406b4f0dd96210dea2f16e31472e0138eb86a0 |
|
MD5 | 13eadb895cde46ecc5e0894a03df339a |
|
BLAKE2b-256 | d97a561e745c980a56e56bf57c0d5ee444bb145601e93421e4aa63f39ec56ae1 |