Skip to content

kranz912/IT_Utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IT Utilities

A set of IT utilities to help my daily life as a programmer, and a system administrator. It includes tools for converting csv to json and zipping directories.

Getting Started

These instructions will get you a copy of the project and running on your local machine for development and testing purposes.

git clone https://github.com/kranz912/IT_Utilities.git

cd IT_Utilities

Prerequisites

Python is required for some tools to work.

You can download and install python from:

Python.org

Pipenv is required to install the dependencies. It creates a virtual environment for you.

To install Pipenv:

pip install pipenv

Installing

Run the following command to install all the dependencies.

pipenv install

Usage

In order to use you must be on pipenv shell.

Run the following command on your terminal.

pipenv shell

Converting CSV file to JSON file

A tool for converting a CSV file to JSON file

usage: CsvToJson.py [-h] <source> <destination>

A utility to convert csv file to json file

positional arguments:
  <source>       source csv file
  <destination>  destination json file

optional arguments:
  -h, --help     show this help message and exit

example:

python CsvToJson.py ../test.csv ../test.json

Zipping a directory

A tool for zipping a directory

usage: Zipdir.py [-h] <source> <destination>

a utility that will convert a directory into a ZipFile

positional arguments:
  <source>       source directory directory path
  <destination>  destination directory path

optional arguments:
  -h, --help     show this help message and exit

example:

#zipping the current directory
python Zipdir.py . ../test.zip


#zipping another directory

python Zipdir.py D:\example D:\example.zip

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages