Create file datafunk/subcommands/remove_dat_junk.py which defines how to run given the command line parameters. Alternatively, specify the entrypoint within the main script file.
If you have tests, add the test data to a subdirectory e.g. tests/data/remove_dat_junk, and add the test file
tests/remove_dat_junk_test.py. This file should contain unit tests which have names test_* and ideally be informative about which function they test/the result.
If the script has any new dependencies, update install_requires section of setup.py - this means that it can be pip installed from a conda environment file without a hitch.
datafunk
Miscellaneous data manipulation tools
Install
Either pip install using command
or use
and test with
Adding functions to this suite
Ideally the function name should be used as the filename and the argparse group. In the following example, the function name is
remove_dat_junk.datafunke.g.datafunk/remove_dat_junk.pydatafunk/__init__.pyanddatafunk/subcommands/__init__.pyby adding the command name to thealllistsdatafunk/__main__.pyThis should start by defining a new argparse group, e.g.then include all the arguments, e.g.and end with the entry pointdatafunk/subcommands/remove_dat_junk.pywhich defines how torungiven the command line parameters. Alternatively, specify the entrypoint within the main script file.tests/data/remove_dat_junk, and add the test filetests/remove_dat_junk_test.py. This file should contain unit tests which have namestest_*and ideally be informative about which function they test/the result.install_requiressection ofsetup.py- this means that it can be pip installed from a conda environment file without a hitch.Function List