Skip to main content

target-csv

Python Versions

A Singer target that generates CSV files.

Built with the Meltano SDK for Singer Taps and Targets.

Capabilities

  • target

Settings

Setting Required Default Description
output_path False None Filesystem path where to store output files. By default, the current working directory will be used. When specified, the output directory will be created automatically.
file_naming_scheme False {stream_name}.csv The scheme with which output files will be named. Naming scheme may leverage any of the following substitutions:
- {stream_name}
- {datestamp}
- {timestamp}
datestamp_format False %Y-%m-%d A python format string to use when outputting the {datestamp} string. For reference, see: https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes
timestamp_format False %Y-%m-%d.T%H%M%S A python format string to use when outputting the {timestamp} string. For reference, see: https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes
timestamp_timezone False UTC The timezone code or name to use when generating {timestamp} and {datestamp}. Defaults to 'UTC'. For a list of possible values, please see: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
stream_maps False None Allows inline stream transformations and aliasing. For more information see: https://sdk.meltano.com/en/latest/stream_maps.html
record_sort_property_name False None A property in the record which will be used as a sort key.

If this property is omitted, records will not be sorted.
overwrite_behavior False replace_file Determines the overwrite behavior if destination file already exists. Must be one of the following string values:

- append_records (default) - append records at the insertion point
- replace_file - replace entire file using default_CSV_template
escape_characters False None A string of characters to escape when writing CSV files.

A full list of supported settings and capabilities is available by running: target-csv --about

Installation

uv tool install --from meltanolabs-target-csv target-csv

Usage

You can easily run target-csv by itself or in a pipeline using Meltano.

Executing the Target Directly

target-csv --version
target-csv --help

# Test using the "Carbon Intensity" sample:
tap-carbon-intensity | target-csv --config /path/to/target-csv-config.json

# Test using the "Smoke Test" tap:
tap-smoke-test --config=tap-smoke-test-config.json | target-csv

Developer Resources

  • Developer TODO: As a first step, scan the entire project for the text "TODO:" and complete any recommended steps, deleting the "TODO" references once completed.

Initialize your Development Environment

uv sync

Create and Run Tests

Create tests within the target_csv/tests subfolder and then run:

uv run pytest

You can also test the target-csv CLI interface directly using uv run:

uv run target-csv --help

Testing with Meltano

Note: This target will work in any Singer environment and does not require Meltano. Examples here are for convenience and to streamline end-to-end orchestration scenarios.

Your project comes with a custom meltano.yml project file already created. Open the meltano.yml and follow any "TODO" items listed in the file.

Next, install Meltano (if you haven't already) and any needed plugins:

uv tool install meltano

Now you can test and orchestrate using Meltano:

# Test invocation:
meltano invoke target-csv --version

# OR run a test `elt` pipeline with the Carbon Intensity sample tap:
meltano run tap-smoke-test target-csv

# Or with debug logging:
meltano --log-level=debug run tap-smoke-test target-csv

SDK Dev Guide

See the dev guide for more instructions on how to use the Meltano SDK to develop your own Singer taps and targets.

Metadata

Release files for meltanolabs-target-csv 0.5.0

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

Source distribution (sdist)

Source distribution for meltanolabs-target-csv 0.5.0
File Size Uploaded
meltanolabs_target_csv-0.5.0.tar.gz 110.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meltanolabs-target-csv 0.5.0
File Interpreter ABI Platform
meltanolabs_target_csv-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 122.7 kB

Release files / meltanolabs_target_csv-0.5.0.tar.gz

Download URL meltanolabs_target_csv-0.5.0.tar.gz
Size 110.9 kB
Tags Source
SHA-256 checksum
How to use checksums
30b5d9ada189517e3ddd8caab6fc460765a291c29dbd22ae7c57d5e44e97ffc6
BLAKE2b-256 checksum
How to use checksums
d4fe2da8ceb7ae732541d1b34a64102f537eb68f6aff079618040f5fb3304581
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / meltanolabs_target_csv-0.5.0-py3-none-any.whl

Download URL meltanolabs_target_csv-0.5.0-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
219bfff1b4314a57d09fe53056e04828fd2aefbf8740417f6856458d96b771a2
BLAKE2b-256 checksum
How to use checksums
0ed6b2ba967c35a00f126406877d98dc81202297b41db03b79101f6736685220
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.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