https://github.com/tektronix/syphon
A storage and management engine for CSV data.
https://github.com/tektronix/syphon
csv pandas python python3 storage-engine
Last synced: 2 months ago
JSON representation
A storage and management engine for CSV data.
- Host: GitHub
- URL: https://github.com/tektronix/syphon
- Owner: tektronix
- License: mit
- Archived: true
- Fork: true (ethall/syphon)
- Created: 2019-02-20T17:17:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-12T15:00:47.000Z (over 4 years ago)
- Last Synced: 2025-11-28T02:24:37.190Z (4 months ago)
- Topics: csv, pandas, python, python3, storage-engine
- Language: Python
- Homepage:
- Size: 340 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Syphon
> A CSV data storage and management engine.
[](https://travis-ci.com/tektronix/syphon) [](https://codecov.io/gh/tektronix/syphon) [](https://www.codefactor.io/repository/github/tektronix/syphon) [](https://pypi.org/project/syphon/) [](https://pypi.org/project/syphon/)
[](http://mypy-lang.org/) [](https://github.com/ambv/black)
[](https://github.com/tektronix)
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](CONTRIBUTING.md) document guides you through checkout, unit testing, and building.
## Maintainer
* [Evan Hall](https://github.com/ethall)
## 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) License.
Made with ❤ at Keithley Instruments