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.

Source Distribution

newpyfile-0.0.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

newpyfile-0.0.2-py3.8.egg (4.7 kB view details)

Uploaded Egg

File details

Details for the file newpyfile-0.0.2.tar.gz.

File metadata

  • Download URL: newpyfile-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

File hashes

Hashes for newpyfile-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a3c7d70cd56db389c3cc9fe6632aa9a8573494fa1e78bcc5d21f5fc7eb5ed08b
MD5 3399076d8297981b4610e0ae32a0e92f
BLAKE2b-256 699413249e0277cd5ad9d9fca5979eb330a0ad64b298723ac0b79b602f8fec56

See more details on using hashes here.

File details

Details for the file newpyfile-0.0.2-py3.8.egg.

File metadata

  • Download URL: newpyfile-0.0.2-py3.8.egg
  • Upload date:
  • Size: 4.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

File hashes

Hashes for newpyfile-0.0.2-py3.8.egg
Algorithm Hash digest
SHA256 32e690916e9f0dd198dfa41392b897aa7d52a9ebe7ead9f847c88585d6576691
MD5 3d99c0da51f618afffe06d47d533450b
BLAKE2b-256 56c2d657417770c5e726f1d30e12d8640a6c6d49dbc9d41c764c4f08e3af5e79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page