A Cookiecutter (project template) for creating a Pyramid project using SQLAlchemy for an ORM, URL dispatch for routing, and pyramid-restful-framewor for creating RESTful APIs.
Uses Docker for local development.
- Python 2.7 or 3.4+
- cookiecutter
- Generate a Pyramid project, following the prompts from the command.
$ cookiecutter https://github.com/danpoland/pyramid-cookiecutter-restful
- Finish configuring the project by creating a virtual environment and installing your new project. These steps are output as part of the cookiecutter command above and are slightly different for Windows.
# Change directory into your newly created project.
$ cd myproj
# Create a virtual environment...
$ python3 -m venv venv
# ...where we upgrade packaging tools...
$ env/bin/pip install --upgrade pip setuptools
# ...and into which we install our project and its testing requirements.
$ env/bin/pip install -e ".[testing]"