Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for newpyfile, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size newpyfile-0.0.2-py3.8.egg (4.7 kB) File type Egg Python version 3.8 Upload date Hashes View
Filename, size newpyfile-0.0.2.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page