Skip to content

outerpasta/python-cli-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Example CLi project

Development

  • Ensure you have any version of Python greater than 2.5

  • Install tox.

      pip install -U tox
    
  • Create virtualenv

      tox -e dev
    
  • Run example command

      eval "$(./.tox/dev/bin/register-python-argcomplete example)"  # setup shell completion
      ./.tox/dev/bin/example help
    

Distribute

Package as a single pex executable:

tox -e package

PEX_VERBOSE=1 ./dist/example            # test it out
mv dist/example /usr/local/bin/example  # move to usr/local/bin
scp ./dist/example ...                  # copy to remote machine, etc.

Test

Run tests

tox

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages