- Open new Python project by building the structure and prepare initial files automatically via simple command line command
startnew
. - Prepare github repository
# 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
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.
└── 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.
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'
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.
Any help is appriciated.
Feel free to contribute and register yourself in AUTHORS.md
For more information see CONTRIBUTING.md