576b3a3638
csv_metadata_quality/__main__.py: Fix spacing
...
Identified by flake8.
2019-08-01 23:28:16 +03:00
9100efdf50
Re-work as a proper standalone Python package
...
Add a setup.py so that installation is easier and a standalone CLI
script called csv-metadata-quality is provided. Now the user only
needs to run this from a virtual environment inside the project
directory:
$ pip install .
Eventually I could publish this on PyPi when I settle on a more
appropriate package name.
See: https://packaging.python.org/tutorials/packaging-projects/
See: https://chriswarrick.com/blog/2014/09/15/python-apps-the-right-way-entry_points-and-scripts/
2019-07-31 17:34:36 +03:00
a93b5b31c5
Add support for command line arguments
...
Currently only supports specifying input and output files with -i
and -o. Eventually I'll add more options like dry run, debug, and
maybe things like forcing unsafe fixes.
2019-07-28 20:31:57 +03:00
e2bb2d4df9
Main function should be "main()"
2019-07-27 23:09:16 +03:00
232d28e13e
Refactor as package with subpackages
...
This makes it cleaner for introducing checks, fixes, tests, docs,
and tests in the future. Currently can be run like this:
python -m csv_metadata_quality
CSV input and output paths are still hard coded.
See: https://dev.to/codemouse92/dead-simple-python-project-structure-and-imports-38c6
2019-07-26 22:11:10 +03:00