rain1024 / gVim-Pathogen

My Coding Life
http://rain1024.github.io/gVim-Pathogen
2 stars 0 forks source link

Python #1

Open rain1024 opened 10 years ago

rain1024 commented 10 years ago

I: Make amazing Python happen

Project Structure

├── LICENSE
├── README.md    .
├── module
│   ├── xxx.py
│   ├── yyy.py
│   └── zzz.py
├── requirements.txt
├── docs
│   ├── xxx.rs
│   ├── yyy.rs
│   └── zzz.rs
└── tests
    ├── test-xxx.py
    ├── test-yyy.js
    └── test-zzz.js

II. Do Python right

image
Documentation
image
Testing
image
Package Management
image
Scaffolding
ReadTheDocs py.test pip Cookiecutter

Package Management:

pip

Install

$ pip $ pip install -r requirements.txt $ cat requirements.txt BeautifulSoup==3.2.0 Django==1.3 Fabric==1.2.0 Jinja2==2.5.5 PyYAML==3.09

Virtual Environments

virtualenv, http://docs.python-guide.org/en/latest/dev/virtualenvs/ A Virtual Environment, put simply, is an isolated working copy of Python which allows you to work on a specific project without worry of affecting other projects. Python Power Tools: virtualenv

Testing

py.test

Runner up

# -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# Name:        Connect to machine and return connector
# Purpose:
#
# Author:      Brother Rain
#
# Created:     11/04/2014
# Copyright:   (c) Brother Rain 2014
# Licence:     MIT
#-------------------------------------------------------------------------------

Scaffoding

Cookie Cutter, https://github.com/audreyr/cookiecutter-pypackage

Similar

NodeJS

References

rain1024 commented 10 years ago

Documentation

sphinx http://sphinx-doc.org/tutorial.html

Runner up

pydoc

Get it

References