Giter VIP home page Giter VIP logo

pytn2016-click-tutorial's Introduction

PyTennessee 2016 - Writing Command Line Applications that Click

https://travis-ci.org/tylerdave/Click-Tutorial.svg?branch=master https://ci.appveyor.com/api/projects/status/ad58tqwj8rj0bida?svg=true

Tutorial for writing command line applications using click.

About

Abstract: https://www.pytennessee.org/schedule/presentation/117/

Repo: https://github.com/tylerdave/PyTN2016-Click-Tutorial

Slides: https://speakerdeck.com/tylerdave/pytennessee-2016-writing-command-line-applications-that-click

Follow-up: http://daveops.com/pytn2016

Installation: TL;DR

Know all about installing and developing Python packages and don't feel like reading the rest?:

  • Have Git and Python installed
  • Create and activate a virtualenv
  • Clone this repo (or your own fork of it) and cd to it.
  • Install the package in editable mode: pip install -e .

Installation: Detailed Instructions

Prerequisites

In order to make use of this tutorial you will a system with the following installed:

  • Git
  • Python (2.7, 3.3, 3.4, 3.5)

If you do not already have these installed, follow these directions:

Virtualenv

The virtualenv package allows you to create isolated environments for developing Python code.

  • To make sure it is installed, run this command:

    pip install virtualenv

    or on Windows (if the above doesn't work):

    python -m pip install virtualenv

    This will either install the package or let you know it's already installed. If it is already installed, you will see:

    Requirement already satisfied (use --upgrade to upgrade)
  • Create a virtualenv for this tutorial:

    virtualenv click_tutorial
  • Activate the virtualenv:

    source click_tutorial/bin/activate

    or on Windows:

    click_tutorial\Scripts\activate

Get The Tutorial

  • (Optional) Fork this repo on GitHub

  • Clone the repo locally (using either this repo's URL or that of your new fork.)

    git clone https://github.com/tylerdave/PyTN2016-Click-Tutorial.git pytn

Install The Tutorial

The tutorial repo is configured to be a Python package in order to ease installation.

  • In a terminal/console cd to cloned tutorial directory: cd pytn

  • Install the package in editable mode:

    pip install -e .
  • Run tests to verify installation:

    py.test -v tests/
  • Verify that all tests report PASSED

Run The Tutorial

Once installed, the tutorial command should be available.

  • See usage information

    tutorial --help

pytn2016-click-tutorial's People

Contributors

tylerdave avatar wogsland avatar

Stargazers

Jorge Guerra avatar GAURAV avatar  avatar Taha Shabbir Saifuddin avatar  avatar Manny Toledo avatar Karl Schopmeyer avatar Xinpeng Geng avatar Scott Ming avatar RK Aranas avatar Priyank Trivedi avatar Kenneth Durril avatar Cameron Dershem avatar Eric Floehr avatar

Watchers

 avatar James Cloos avatar

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.