Skip to main content

PyPI Page: https://pypi.python.org/pypi/pycsvschema

Github Page: https://github.com/crowdskout/PyCSVSchema

Introduction

PyCSVSchema is an implementation of CSV Schema in Python.

This project is under heavy development.

>>> from pycsvschema.checker import Validator
>>>
>>> # demo.csv:
... # id,name,value
... # 1,Ann,"5"
... # 2,Ben,"10"
... # 3,Tom,"14"
...
>>>
>>> schema = {
...     'fields': [
...         {
...             'name': 'value',
...             'type': 'number',
...             'multipleOf': 5
...         }
...     ]
... }
>>>
>>> v = Validator(filename='demo.csv', schema=schema)
>>> v.validate()

Traceback (most recent call last):
...
<ValidationError: 'Value 14.0 is not multiple of 5'; column: value; row: 3>

Installation

pip install pycsvschema

License

PyCSVSchema uses the MIT license, see LICENSE file for the details.

Metadata

Release files for pycsvschema 0.0.6

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

Source distribution (sdist)

Source distribution for pycsvschema 0.0.6
File Size Uploaded
pycsvschema-0.0.6.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycsvschema 0.0.6
File Interpreter ABI Platform
pycsvschema-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 22.3 kB

Release files / pycsvschema-0.0.6.tar.gz

Download URL pycsvschema-0.0.6.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
aaec9dc65cb43ac3cfe8de78c95f3ac29ae4af8975571dff66c0c74cf7ec22d0
BLAKE2b-256 checksum
How to use checksums
5bf174386d0613364fd58eff8267dc1792ae6ab0bc990b62a9452f45de5252f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release files / pycsvschema-0.0.6-py3-none-any.whl

Download URL pycsvschema-0.0.6-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8092000f8c7b086a565f76e0fbbf91d66d93576dbb539db6637801e5c16ddf2
BLAKE2b-256 checksum
How to use checksums
4ffde0686cd9273c08d9df1f7cc0bd7c8bae4920521d0b0fa610528b0cd91224
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

1 release file

0.0.2

1 release file

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