Create .py files from your cli.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
newpyfile-0.0.2.tar.gz
(3.0 kB
view hashes)
Built Distribution
newpyfile-0.0.2-py3.8.egg
(4.7 kB
view hashes)