Package: dctap
Normalize and serialize a Tabular Application Profile.Documentationhttps://dctap-python.readthedocs.io/en/latest/InstallationTo work correctly, “dctap” requires Python 3.7 or higher. Executing the commandpython3should show you if Python 3 is installed on your machine and in which version.As explained below, the command-line utility can be installed either from the online PyPI repository, using thepipcommand, or from a local copy of the project on your own machine.Installation from PyPIInstalling with “pip” pulls the most recently published version of the project from thePyPI repositorywith the following command:python3-mpipinstalldctapor uninstalled with:python3-mpipuninstalldctapInstallation from Github“dctap” can be installed directly from Github with:python3-mpipinstall-Uhttps://github.com/dcmi/dctap-python/archive/main.zipInstalling “dctap” this way, and periodically re-running this command to refresh, is the best way to keep up with the latest version of “dctap”.Installation with pip in virtual environmentFor developers who work alot with Python projects, it is good practice to create and activate a virtual environment so that “dctap”, and its dependencies, will not be installed into the global Python environment on your machine. The virtual environment is held in a directory of your choice; in the example below, a hidden directory.venvis created insome_directory(your current working directory), and the virtual environment is activated by executingsource .venv/bin/activate.$python3-mvenv.venv$source.venv/bin/activate$python3-mpipinstall-Uhttps://github.com/dcmi/dctap-python/archive/main.zipNote that “dctap” will pip-install even without creating and activating a virtual environment, even though this is not considered good practice. If you do install it into a virtual environment, note that the virtual environment must be activated withsource .venv/bin/activateor “dctap” will not work. The activation of a virtual environment can be automated by adding this command to a shell profile where it will be executed when starting the shell, for example by adding the lines to the file “~/.bash_profile”:cd/Users/foo/somedirectorysource.venv/bin/activateInstallation from a local clone of Git repositoryCloning the “dctap-python” repository to your machine and installing it from thedctap-pythondirectory is a good option if you want to keep up-to-date with the latest developments in the project. The following commands install “dctap” for the first time. In order to refresh the project directly from the project repository, you can at any time executegit pull(from within the repository), which will install the latest features and bug fixes in your local copy.$gitclonehttps://github.com/dcmi/dctap-python.git$cddctap-python$python-mvenv.venv$source.venv/bin/activate$python3-mpipinstallflitPygments$flitinstall-sQuick startRun without arguments, “dctap” shows what options and commands are available.$dctapUsage:dctap[OPTIONS]COMMAND[ARGS]...DCTabularApplicationProfiles(DCTAP)-basemoduleExamples:$dctapgeneratemy_profile.csv$dctapgenerate--jsonmy_profile.csv$dctapgenerate--expand-prefixesmy_profile.csv$dctapgenerate--warningsmy_profile.csv$dctapgenerate--warnings--expand-prefixes--jsonmy_profile.csv$dctapinitBuilt-insettingswrittentodctap.yml-editasneeded.$dctapinit/Users/tbaker/dctap.ymlBuilt-insettingswrittento/Users/tbaker/dctap.yml-editasneeded.$dctapgenerate--configfile/Users/tbaker/dctap.ymlOptions:--versionShowversionandexit--helpShowhelpandexitCommands:generateGeneratenormalizedtext,JSON,orYAMLofCSV,withwarnings.initGeneratecustomizableconfigurationfile[default:dctap.yml].For more information, see the documentationon readthedocs.io.