### Navigation

- index
- modules |
- next |
- previous |
- CCHR 1.0 documentation »

# `New Project`

`src.cmd.new.``new_project`(cmd)

  Creates a new project.

  @param args: The command line parameters.

  As listed under cchrrrd.py new_project -h the following command line parameters are accepted by new_project.

  name: The name of the project.

  project_dir: The path to the top level directory for the BJSConvert output.

  in_dir: The path to the directory containing the NLETS raw bar delimited
    segment files and the spss sample file (required).
  meta_dir: The path to the directory containing the project metadata files.
    Default: root_dir/bjs_rules/metadata.
  rule_dir: The path to the directory containing the project rules.
    Default: root_dir/bjs_rules/rules.
  follow_period: The number of years after the date of release arrest
    to include in the recidivism database and flat files.
  threads: The number of threads to use when running the recidivism
    transform phase. Default: 50

  cores: The number of cores the system has available to use. Default: 4

  verbose: A debug option to set debug logging to verbose. Default: False

  host: Name of database host to connect to. Default: localhost.

  port: TCP port of MySQL server. Default: standard port (3306).

  db_stand_name: Name of standardized database. Default: project name

  db_stand_user: The user to authenticate as. Default: root.

  db_stand_pass: The password to authenticate with. Default: pass.

  db_recid_name: Name of recidivism database. Default: **project name**_recid

  db_recid_user: The user to authenticate as. Default: root.

  db_recid_pass: The password to authenticate with. Default: pass.

### Navigation

- index
- modules |
- next |
- previous |
- CCHR 1.0 documentation »