A demo command line tool for displaying information from a comma or pipe delimited file from a fictional Company named Outdoor.sy
Project description
Outdoorsy Command-Line Tool
Introduction
A demo command line tool for displaying information from a comma or pipe delimited file.
Features
- Use as command-line tool interactively or by passing arguments
- Creates a local SQL Lite Database for storing files
- Database is created from the running directory or optionally a specified flag
- View database in a table format from the command-line
- Sort by "Name" or "Vehicle Type" columns (from sample files)
Installation
Grab a copy of the code with pip:
pip install outdoorsy
Usage
outdoorsy can be used to extract info from a Comma or Pipe delimited file in two ways:
- Command line/Terminal tool ran interactively
outdoorsy - Command line/Terminal tool ran with arguments
outdoorsy -h
1. Command Line/Terminal tool
outdoorsy
Run outdoorsy -h to see the help output:
outdoorsy -h
usage:
usage: outdoorsy [-h] [-f FILE] [-d {comma,pipe}] [-db DBPATH] [-v] [-s {name,vehicle_type}] [--version]
Outdoorsy Command Line tool for displaying Outdoorsy user information.
Arguments
options:
-h, --help show this help message and exit
--version show program's version number and exit
options - Upload a new file.:
-f FILE, --file FILE Full path to file
-d {comma,pipe}, --delimiter {comma,pipe}
File's delimiter
-db DBPATH, --dbpath DBPATH
Path to create database. Defaults to current directory
options - View and Sort data:
-v, --view View the Outdoorsy Customer Table.
-s {name,vehicle_type}, --sort {name,vehicle_type}
Sort the database table by the Outdoorsy Customer's Fullname or Vehicle Type
Examples
Upload CSV file to database
outdoorsy -f C:\folder\file.csv -d comma
Upload Pipe delimited file to database
outdoorsy -f C:\folder\pipes.text -d pipe
Upload Pipe delimited file to database created at specified path
outdoorsy -f C:\folder\pipes.text -d pipe -db C:\database\
View data that has previously been uploaded to the database
outdoorsy -v
View data that has previously been uploaded to the database at specified path
outdoorsy -v -db C:\database\
View data sorted by Vehicle Type
outdoorsy -v -s vehicle_type
View data sorted by name
outdoorsy -v -s name
License
This program is licensed with an MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file outdoorsy-0.0.19.tar.gz.
File metadata
- Download URL: outdoorsy-0.0.19.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ceddc8a642539f42b9fadbced222329649179b0682e622ee8aa641aa3f5b76e
|
|
| MD5 |
0aababd00b984536ef45d692cecdfb74
|
|
| BLAKE2b-256 |
bcbd901cb100f6c754c0405b386f71dec819928c0b573760411e608b589f8e7e
|
File details
Details for the file outdoorsy-0.0.19-py3-none-any.whl.
File metadata
- Download URL: outdoorsy-0.0.19-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11f5ad6c16a4610d1ed974a67e78e0fca9b7c83574f364d2d4f87bd74dbd25a4
|
|
| MD5 |
11dfaf2ae9eb1f3d9bec5613eb0d4e71
|
|
| BLAKE2b-256 |
d152f7a63e0e2f7603ab70f429c72486e307fcb4552feb4687723239f1e9ffd8
|