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 Distribution
Close
Hashes for robotframework-csvlib-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c28ad4f2150619c05c3363c5a990856f1c371cbad49d2718299248d7b44a909 |
|
MD5 | e24a037c3954cba8e699b2164410d134 |
|
BLAKE2b-256 | 9658c782f4653aba29be1bfc9e935b77fcc0ea0ed81cb1c199107da22228a668 |
Close
Hashes for robotframework_csvlib-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5849c0aa952cbadc08a4d7268390ee2057555acf9b6219c0db80b98aa0f354e4 |
|
MD5 | 696ed97d81685b481fdaf677d636398f |
|
BLAKE2b-256 | 749a8a9c18db62028f41fdae99e901736cc3f6c5b7b0269755af088e3ee6794f |