GithubHelp home page GithubHelp logo

stevepiercy / cookiecutter-pyramid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ephraimbuddy/cookiecutter-pyramid

0.0 1.0 0.0 169 KB

A Cookiecutter (project template) for creating a Pyramid starter project with choices for template language (Jinja2, Chameleon, or Mako), persistent backend (none, SQLAlchemy with SQLite, or ZODB), and mapping of URLs to routes (URL dispatch or traversal)

Python 68.03% CSS 0.46% Mako 15.72% HTML 15.78%

cookiecutter-pyramid's Introduction

pyramid-cookiecutter-starter

Master Travis CI Status

A Cookiecutter (project template) for creating a Pyramid starter project.

Customizable options upon install include choice of:

  • template language (Jinja2, Chameleon, or Mako)
  • persistent backend (none, SQLAlchemy with SQLite, or ZODB)
  • mapping of URLs to routes (if selected persistent backend is "none" or "sqlalchemy" then URL dispatch, and if "zodb" then traversal)

Requirements

Versions

This cookiecutter has several branches to support new features in Pyramid or avoid incompatibilities.

  • latest aligns with the latest stable release of Pyramid, and is the default branch on GitHub.
  • master aligns with the master branch of Pyramid, and is where development takes place.
  • x.y-branch aligns with the x.y-branch branch of Pyramid.

Usage

  1. Generate a Pyramid project, following the prompts from the command.

    $ cookiecutter gh:Pylons/pyramid-cookiecutter-starter

    Optionally append a specific branch checkout to the command:

    $ cookiecutter gh:Pylons/pyramid-cookiecutter-starter --checkout master
  2. Create a virtual environment, upgrade packaging tools, and install your new project and its dependencies. These steps are output by the cookiecutter and are written to the file in <my_project>/README.txt, and are slightly different for Windows.

    # Change directory into your newly created project.
    $ cd <my_project>
    # Create a Python virtual environment.
    $ python3 -m venv env
    # Upgrade packaging tools.
    $ env/bin/pip install --upgrade pip setuptools
    # Install the project in editable mode with its testing requirements.
    $ env/bin/pip install -e ".[testing]"
  3. If you selected sqlalchemy as a backend, there will be additional steps in the output and README.txt.
  4. Run your project's tests.

    $ env/bin/pytest
  5. Run your project.

    $ env/bin/pserve development.ini

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.