DRB Driver CSV
drb-driver-csv is a Python plugin for DRB, representing DRB driver allowing to recognize and to browse CSV (Comma-Separated Values) data.
Installation
pip install drb-driver-csv
Quick Started
from drb.drivers.csv import CsvNodeFactory
# generate the CSV node (DRB resolver can be used also)
node = CsvNodeFactory().create('url/to/csv/data.csv')
# select a row first row by index
row = node[0]
# select a row first row by name
row = node['row_0']
# select first value in a row by index
row[0]
# select a value in a row by name
row['header']
# retrieve value from row: 5, column 1
node[5][1].value
Driver
The drb-driver-csv reads a CSV data like it having a header, so the first row is the second line of the CSV data.
Each node defined in this driver represent a unitary part or whole content of a CSV data:
More details in the following section.
Nodes
CsvBaseNode
The CsvBaseNode wraps another DRB node (base_node) representing the
CSV data and allows to provide an entry point to the CSV content.
Attributes
The CsvBaseNode has no attribute.
Children
Each child of the CsvBaseNode repersenting a row of the CSV content. Those
children are accessible via:
- index (int): CSV row index
- name (str): generic name following the pattern
row_N:row_is a string constantNis the row index (int)
Implementations
The CsvBaseNode inherits from the base_node, plus a pandas.DataFrame
implementation to see the data as array.
Learn more about pandas.
CsvRowNode
A CsvRowNode represent a row from a CSV content.
Attributes
The CsvRowNode has no attribute.
Children
A child of a CsvRowNode is a node containing the value for the associate
header. Those children can be accessible via:
- index (int): using header index
- name (str): using the header name
Implementations
The CsvBaseNode has no implementation.
CsvValueNode
A CsvValueNode represent a cell value from a CSV content. The associated
value is accessible via the value property
Attributes
A CsvValueNode has no attribute.
Children
A CsvValueNode has no child.
Implementations
A CsvValueNode has no implementation
Factory
The drb-driver-csv provide a factory csv generating only
CsvBaseNode.
Topic
The drb-driver-csv comes also with a DRB topic allowing to resolve and to recognize CSV data.
graph RL
A([CSV<br/>c03d4f6b-d147-4eeb-8433-72fcdabbef9f])
| uuid | from | label | category | factory |
|---|---|---|---|---|
| c03d4f6b-d147-4eeb-8433-72fcdabbef9f | ∅ | CSV | FORMATTING | csv |
Metadata
Release files for drb-driver-csv 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| drb_driver_csv-1.1.3.tar.gz | 28.0 kB | Without provenance | Details for drb_driver_csv-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| drb_driver_csv-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for drb_driver_csv-1.1.3-py3-none-any.whl |
Total release size: 36.8 kB
Release files / drb_driver_csv-1.1.3.tar.gz
| Download URL | drb_driver_csv-1.1.3.tar.gz |
|---|---|
| Size | 28.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09aaca99cbd41a854123daf160476b2f2256ceae61ca7dd4dd0babf0ad42c0e7
|
|
BLAKE2b-256 checksum How to use checksums |
1abe94e4324c5be016d198298f551ec6eae31d6298cf1dd309b400fd3c70e36b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / drb_driver_csv-1.1.3-py3-none-any.whl
| Download URL | drb_driver_csv-1.1.3-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a303bdd4e958612058db63e3080955708b726b924d3d09dfe20373b7afa6fcaf
|
|
BLAKE2b-256 checksum How to use checksums |
af99c4636779fa83d43162db88f565cd5942e9e714fa003022c7d609192b3a88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for drb-driver-csv 1.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.