Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: ruff License: MIT License: PSF-2.0 Maintained: Yes

CircuitPython helper library for working with CSV files

Dependencies

This driver depends on:

You can find which Adafruit boards have the re library here.

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle or individual libraries can be installed using circup.

Installing to a Connected CircuitPython Device with Circup

Make sure that you have circup installed in your Python environment. Install it with the following command if necessary:

pip3 install circup

With circup installed and your CircuitPython device connected use the following command to install:

circup install circuitpython-csv

Or the following command to update an existing version:

circup update

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install circuitpython-csv

To install system-wide (this may be required in some cases):

sudo pip3 install circuitpython-csv

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install circuitpython-csv

Usage Example

import board
import sdcardio
import storage
import circuitpython_csv as csv

# Initialize SD card
spi = board.SPI()
sdcard = sdcardio.SDCard(spi, board.D10)
vfs = storage.VfsFat(sdcard)
storage.mount(vfs, "/sd")

# Write the CSV file!
with open("/sd/testwrite.csv", mode="w", encoding="utf-8") as writablefile:
    csvwriter = csv.writer(writablefile)
    csvwriter.writerow(["I", "love", "CircuitPython", "!"])
    csvwriter.writerow(["Spam"] * 3)

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Documentation

For information on building library documentation, please check out this guide.

Attribution

Some code contained here is ported from CPython, dual licensed by the Python Software Foundation under the PSF License verion 2 and the Zero-Clause BSD license.

Metadata

Release files for circuitpython-csv 2.0.3.post0

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

Source distribution (sdist)

Source distribution for circuitpython-csv 2.0.3.post0
File Size Uploaded
circuitpython_csv-2.0.3.post0.tar.gz 25.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for circuitpython-csv 2.0.3.post0
File Interpreter ABI Platform
circuitpython_csv-2.0.3.post0-py3-none-any.whl Python 3 none any Details

Total release size: 33.6 kB

Release files / circuitpython_csv-2.0.3.post0.tar.gz

Download URL circuitpython_csv-2.0.3.post0.tar.gz
Size 25.1 kB
Tags Source
SHA-256 checksum
How to use checksums
99da21af314bba0ecde6167e7a01e9e8ef719813b872002b0ad035334d16d923
BLAKE2b-256 checksum
How to use checksums
e60c03087906fa31f95505f52c52ab95d3b88aa84decf6a2f22b39ad86b334bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / circuitpython_csv-2.0.3.post0-py3-none-any.whl

Download URL circuitpython_csv-2.0.3.post0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1666d7a075f96e4f44e9a2cdb3209b5d6b9bc5e2b1fce02f22f0bd8f2393f71
BLAKE2b-256 checksum
How to use checksums
bc27dc95ff9c20c0718638b5da3d726930d755fa25f8329cc68d57a626061db5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release history Release notifications | RSS feed

This release

2.0.3.post0 This release

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

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