Skip to main content

Python implementation of the NSV (Newline-Separated Values) format

Project description

NSV Python

Python implementation of the NSV (Newline-Separated Values) format.

Installation

From PyPI

pip install nsv

From Source

git clone https://github.com/nsv-format/nsv-python.git
cd nsv-python
pip install -e .

Usage

Basic Reading and Writing

import nsv

with open('input.nsv', 'r') as f:
    # load/dump are non-resumable
    reader = nsv.load(f)
    for row in reader:
        print(row)

with open('output.nsv', 'w') as f:
    # Reader/Writer are resumable, intended for streaming
    writer = nsv.Writer(f)
    writer.write_row(['row1cell1', 'row1cell2', 'row1cell3'])
    writer.write_row(['row2cell1', 'row2cell2', 'row2cell3'])

Vendor

The core NSV format is frozen by-design.
Unless you rely on ENSV features or are performance-aware, copying the naive implementation directly to your codebase may be the better way to handle NSV files.
Controllable code, controllable interfaces, zero chance of a supply-chain attack.

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

nsv-0.2.4.tar.gz (14.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

nsv-0.2.4-cp38-abi3-win_amd64.whl (148.9 kB view details)

Uploaded CPython 3.8+Windows x86-64

nsv-0.2.4-cp38-abi3-win32.whl (139.6 kB view details)

Uploaded CPython 3.8+Windows x86

nsv-0.2.4-cp38-abi3-musllinux_1_2_x86_64.whl (366.0 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ x86-64

nsv-0.2.4-cp38-abi3-musllinux_1_2_aarch64.whl (348.5 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

nsv-0.2.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (312.3 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

nsv-0.2.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (299.6 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

nsv-0.2.4-cp38-abi3-macosx_11_0_arm64.whl (261.7 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

nsv-0.2.4-cp38-abi3-macosx_10_13_x86_64.whl (267.7 kB view details)

Uploaded CPython 3.8+macOS 10.13+ x86-64

File details

Details for the file nsv-0.2.4.tar.gz.

File metadata

  • Download URL: nsv-0.2.4.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for nsv-0.2.4.tar.gz
Algorithm Hash digest
SHA256 fcc133f7d4a1356b0a6c2d19139549d7ddd1ac938fe7131eba4e295bd1c02029
MD5 a5def48af90a1ff037819c26dc6deee6
BLAKE2b-256 6379fb138facc612e242f0e4ce4ecaf84ba19a82eef306f164a93f5816cb36c3

See more details on using hashes here.

File details

Details for the file nsv-0.2.4-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: nsv-0.2.4-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 148.9 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for nsv-0.2.4-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 eb34be838344a07d4aa8b9044ed3fe7de971422c0dd8b77669bc84310df9beb8
MD5 74f5645683d2514f54e50d3a0c000a41
BLAKE2b-256 8d9fe8934cfdcaea942e2457ac812f3282f4c4f38c155345e84586ac103c391b

See more details on using hashes here.

File details

Details for the file nsv-0.2.4-cp38-abi3-win32.whl.

File metadata

  • Download URL: nsv-0.2.4-cp38-abi3-win32.whl
  • Upload date:
  • Size: 139.6 kB
  • Tags: CPython 3.8+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for nsv-0.2.4-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 818d8f8886a4508bcd12eb00da0014d787a63625dee78758a0bba18f84b3180c
MD5 2eef69adcbe8d53bfdf7960e6c5c8a6d
BLAKE2b-256 fb6afb68331dbaa9d6245e1bcbc0bcae8078699a5eb2d0226baaa08500de9a4a

See more details on using hashes here.

File details

Details for the file nsv-0.2.4-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: nsv-0.2.4-cp38-abi3-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 366.0 kB
  • Tags: CPython 3.8+, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for nsv-0.2.4-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 57724e7d4d4208fcc380757d29d8baff048899bcd51313409b0795fbfe508028
MD5 4cfd77a6058f5f04eb8383d6e129107c
BLAKE2b-256 cf03c0d227a57f15f29882e8b2eaca4ecf4f0c9810bd498598a2d50bd7872986

See more details on using hashes here.

File details

Details for the file nsv-0.2.4-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

  • Download URL: nsv-0.2.4-cp38-abi3-musllinux_1_2_aarch64.whl
  • Upload date:
  • Size: 348.5 kB
  • Tags: CPython 3.8+, musllinux: musl 1.2+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for nsv-0.2.4-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 317d1e7b3a7155caf2218622080d64ca0b43d0da91007649609ddde6a985a58f
MD5 8e0e161ad76d230debee81f03bc1906d
BLAKE2b-256 a1493a48d3d4e9dc3974ba412c1d884fa234edd7874ebf54424887cee87697a5

See more details on using hashes here.

File details

Details for the file nsv-0.2.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for nsv-0.2.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 91f88d94f1e4ce85d697e1c7310ff21f72096108e6ef8fc5bee3248909864b5a
MD5 1431eec1fc4927be80fe44df9417d4f3
BLAKE2b-256 c257bd165971181c58d2be701b3af591a4b0e70105f3e3d00278aa1ca787ee08

See more details on using hashes here.

File details

Details for the file nsv-0.2.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for nsv-0.2.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9e764d4c9649cde2356e1fe81c1191f1da6fb90366eab63fa9eb9aeee267ee6f
MD5 8e7daef625e065cfe39231e6226bb473
BLAKE2b-256 fbc7efa06f921490a7f387a80c8e62ec7d84caafbf780b58fd2318068d039016

See more details on using hashes here.

File details

Details for the file nsv-0.2.4-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: nsv-0.2.4-cp38-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 261.7 kB
  • Tags: CPython 3.8+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for nsv-0.2.4-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33e7b2fb469725ea37424928e09afd7bcfccb9bda1878845fd204764a5a23cec
MD5 588d1afe1561ea84041f9a0ecdb2faf5
BLAKE2b-256 37a85d86f34455e6b2e86d81ff89d82895ff5359662f18056e9f23e197799e57

See more details on using hashes here.

File details

Details for the file nsv-0.2.4-cp38-abi3-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: nsv-0.2.4-cp38-abi3-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 267.7 kB
  • Tags: CPython 3.8+, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for nsv-0.2.4-cp38-abi3-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 5bb616d7dd653a68d3536d6cb47e46cc5f93959cf90ca6ecdd1aa02f35e7463a
MD5 3a6d5dac469f2d269913b119b5fa4353
BLAKE2b-256 9ffc9b4d8885545a5133652f666d7a46a14ec5937648cd7f10356945e9f2c633

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page