Skip to main content

Start new python project with this light cli tool

Project description

NewPy

Build Status GitHub PyPI PyPI - Downloads

PERSONAL NEW PYTHON PROJECT AUTOMATION PROGRAM [CLI]


OVERVIEW:

  • Open new Python project by building the structure and prepare initial files automatically via simple command line command startnew.
  • Prepare github repository

DEVELOPMENT

# clone the repo
$ git clone https://github.com/stefangal/newpy

# change the working directory to newpy
$ cd newpy

# install the requirements
$ pip install .

# now you can run it
$ startnew

INSTALLATION

Use startnew to generate the folders and files in current working directory.

$ pip install startnew

For arguments help run:

$ startnew --help

Run:

$ startnew

or

$ startnew --p <project_name> --l <license_type> --g <Github_token>

You'll need a personal access token to open repository on Github you can get one from https://github.com/settings/tokens.

You will be asked several questions as well as you will be able to choose some default settings. Regarding Github repository read the GITHUB section.

GETTING STARTED

Folder structure

MORE ABOUT THE STRUCTURE

└── app
    ├── tests
       └── __init__.py
    ├── docs
        
    ├── app
       └── __init__.py
    ├── .gitignore
    ├── LICENSE
    ├── README.md
    ├── requirements.txt
    └── setup.py

This is the app structure given all the actually available features.

LICENSE

You can choose from the following abbrevations:

afl3', 'agpl3', 'apache', 'bsd2', 'bsd3', 'cc0', 'cc_by', 'cc_by_nc',
'cc_by_nc_nd', 'cc_by_nc_sa', 'cc_by_nd', 'cc_by_sa', 'cddl', 'epl', 
'gpl2', 'gpl3', 'isc', 'lgpl', 'mit', 'mpl', 'wtfpl', 'zlib'

GITHUB

In order to open a new repository for the project via command line, first you will need to get/create the Github access token.

Instructions how to get access token.

HOW TO HELP

Any help is appriciated.

CONTRIBUTORS

Feel free to contribute and register yourself in AUTHORS.md

For more information see CONTRIBUTING.md

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

startnew-1.3.6.tar.gz (9.3 kB view hashes)

Uploaded Source

Built Distribution

startnew-1.3.6-py3-none-any.whl (11.7 kB view hashes)

Uploaded Python 3

Supported by

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