Skip to content

Latest commit

 

History

History
72 lines (40 loc) · 1.85 KB

README.md

File metadata and controls

72 lines (40 loc) · 1.85 KB

Data Processing Tools

This is intended to grow into a library of useful data processing tools scripted in Python.

Index

Add header to any file

This script will populate a copyright header accross all files in a directory.

Image processing

General file processing

Map data processing

Prerequisites

Setup

Clone this repo

git clone https://github.com/VidiHawk/python-scripts

cd <your project's file>

Create a virtual environment:

pip install virtualenv python3 -m venv /path/to/new/virtual/environment

Activate it: source /path/to/new/virtual/environment/bin/activate

Then install dependencies

pip install -r requirements.txt

Adding your own tools

If you want to add packages to the requirement.txt file, I recommand using the pipreqs package. To install it:

pip install pipreqs

To build automatically your requirements.txt, just run the following command in the project directory:

pipreqs . --force

The --force flag will overwrite the existing requirements.txt file.

Notes

These scripts have been created and tested on the Ubuntu 20.04.4 LTS operating system and Python 3.8.10

Acknoledgements