newpyfile

Create .py files from your cli.


Keywords
newpyfile, file, python, cli, create
License
MIT
Install
pip install newpyfile==0.0.2

Documentation

NewPyFile

Create one[or more] python files from your CLI.

Installation

>>> pip install newpyfile

Documentation

>>> newpyfile file [file1...]
"""
Creates file.py in the current directory.
"""
>>> newpyfile file --path=path
"""
Creates file.py in the given as path directory.
"""
>>> newpyfile file --imports=a:b:c,d,e
"""
Creates a file in the current directory, importing from package a, subpackages c & d, and
importing packages d & e
"""
>>> newpyfile file --path=path --imports=a:b:c,d,e
"""
Creates a file in the given as path directory, importing from package a, subpackages c & d, and importing packages d & e
"""

Example

>>> newpyfile file1 file2 --imports=datetime:datetime

Your folder now should contain file1.py & file2.py and each file will have from datetime import datetime

LICENSE

MIT License