def create(name, description):
"""Create a new project.
Example:
polyaxon project create --name=cats-vs-dogs --description=Image Classification with Deep Learning
```
"""
try:
project_config = ProjectConfig.from_dict(dict(name=name, description=description))
except ValidationError:
Printer.print_error('Project name should contain only alpha numerical, "-", and "_".')
sys.exit(1)
try:
project = PolyaxonClients().project.create_project(project_config)
except (PolyaxonHTTPError, PolyaxonShouldExitError) as e:
Printer.print_error('Could not create project `{}`.'.format(name))
Printer.print_error('Error message `{}`.'.format(e))
sys.exit(1)
Printer.print_success("Project `{}` was created successfully with uuid `{}`.".format(
project.name, project.uuid.hex))
```