Skip to content

reka/cookiecutter-typer-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cookiecutter Typer CRUD

Generates an application with basic create, read, update, and delete functionality for a model.

Data storage: sqlite

Properties

Besides the usual cookiecutter properties, you also need to provide:

  • the name of the model: preferably a single noun
  • the name of a unique field of the model
  • a realistic test value for this unique field

Fields of the Model

  • ID: int added automatically
  • a unique, short (easy to type) name configured via the unique_field property

Further Fields

You can use the optional further_fields property to add more fields to your model.

An example:

{
    "language": {
        "type": "str",
        "test_value": "Python"
    },
    "number": {
        "type": "int",
        "test_value": 42
    }
}

Note:

further_fields is a dictionary variable

To provide it, you might prefer using the --replay option instead of specifying it via the CLI prompt.

Libraries Used

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published