Skip to main content

A CSV data storage and management engine.

Project description

Syphon

A CSV data storage and management engine.

build codecov CodeFactor PyPI PyPI - License

Checked with mypy Code style: black

Keithley

Syphon is a Python package that provides a simple interface to perform common tasks on labelled data. Its aim is to fit seamlessly into any automation pipeline that requires organization and collation of large datasets.

Features

  • Archive file(s) into a data storage directory.
    • Automatic archive organization based on the value of a data column (if a .schema.json file is present).
    • Quickly append new archive files onto a previously built data file.
  • Build a single data file from the contents of the archive directory.
  • Initialize new archive directories by creating a storage schema (.schema.json) file.

Basic Usage

Initialize an archive directory:

python -m syphon init ./storage/folder some_column_header "another column header"

Archive one or more files with direct paths, wildcard patterns, or a combination of both:

python -m syphon archive /path/to/data.csv ./storage/folder

python -m syphon archive /path/to/data.csv /path/to/more/*.csv ./storage/folder

Build a single data file from an archive directory:

python -m syphon build ./storage/folder all_data.csv

Archive additional data and append it to a previously built data file:

python -m syphon archive /path/to/still/more/*.csv ./storage/folder -i all_data.csv

General command line documentation and subcommand documentation can be accessed via

 python -m syphon --help

 python -m syphon SUBCOMMAND --help

Contribute

See a typo? Know how to fix an issue? Implement a requested feature?

We'd love to accept your patches and contributions! The Contributing document guides you through checkout, unit testing, and building.

Maintainer

Disclaimer

This is not an officially supported Tektronix product. It is maintained by a small group of employees in their spare time. We lack the resources typical of most Tektronix products, so please bear with us! We will do our best to address your issues and answer any questions directly related to this extension in a timely manner.

License

Copyright Keithley Instruments, LLC. All rights reserved.

Licensed under the MIT License.


Made with ❤ at Keithley Instruments

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

syphon-2.0.0.tar.gz (55.1 kB view details)

Uploaded Source

Built Distribution

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

syphon-2.0.0-py3-none-any.whl (56.9 kB view details)

Uploaded Python 3

File details

Details for the file syphon-2.0.0.tar.gz.

File metadata

  • Download URL: syphon-2.0.0.tar.gz
  • Upload date:
  • Size: 55.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1

File hashes

Hashes for syphon-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d3e41f42119cb0c1e467d5be8f8a9f179303662fad14d00f59754fc8ce65af48
MD5 38117f6c0b19cb3b527169d731cce9f0
BLAKE2b-256 7893950dd6e88393165fe34c956429bd0e9f515b785e7326d8a4be47abb9242f

See more details on using hashes here.

File details

Details for the file syphon-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: syphon-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 56.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1

File hashes

Hashes for syphon-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2a4fd4da9b6c83197b728bad2fd82c38035ede167b03197693e250e338b6228
MD5 36738986af5adbf5f0e86140c1381d83
BLAKE2b-256 1a8b8fd9a789c15ca6e5277b6b8ea2e43cb67df76438618d1508548573b40fe9

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