# newcli
Utility to create a new Python CLI.
## Quickstart
```bash
pipenv install newcli
newcli init
```
## Install
```bash
# Command(s)
pipenv install newcli
pip3 install --user newcli
```
## Commands
### `init`
```bash
# Command
newcli init
```
`newci` will then prompt you for basic information about your project!
The output creates this folder structure:
```bash
{{project}}/
├── LICENSE
├── MANIFEST.in
├── Pipfile
├── README.md
├── setup.py
├── tox.ini
└── {{project}}
├── __init__.py
├── __version__.py
├── cli.py
└── core.py
```
## Template CLI Project
### Testing CLI
`cd` into the directory and install to your current virtualenv
```bash
# Command
pipenv isntall -e .
```
Now run the new tool!
```
{{project}}
Usage: {{project}} [OPTIONS] COMMAND [ARGS]...
{{project}}
Options:
--help Show this message and exit.
```
Now you can begin adding new functions!
### Versioning
The project will be date versioned with as today's `YEAR.MONTH.DAY.SUBVERSION`. This handles most project updates great, and required the user to update the subversion manually in `__version__.py`.
### Publish to PyPy
- Creating a new repository on [PyPi](https://pypi.org/) is quick and easy. Quickly build and upload a new project or update an existing one with:
```bash
# Command
python setup.py upload
```
## TODO
- 100% unit tests and run on TravisCI
- populate GitHub information from .gitconfig
- init a new GitHub repository
- add .travis.yml configuration
- add template tox configuration
- add template test files and folder structure
- add template README.md
- ability to create, register, and share new templates
Metadata
Release files for newcli 2018.6.24.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| newcli-2018.6.24.3.tar.gz | 9.8 kB | Without provenance | Details for newcli-2018.6.24.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| newcli-2018.6.24.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for newcli-2018.6.24.3-py2.py3-none-any.whl |
Total release size: 20.2 kB
Release files / newcli-2018.6.24.3.tar.gz
| Download URL | newcli-2018.6.24.3.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7c1310200ae3c319ba347fff0625afe722038fd45a80c995964d286d2e21d12
|
|
BLAKE2b-256 checksum How to use checksums |
2472b23040971d28b9ec133778d00fb186776731254e12b11e380d28861b6339
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / newcli-2018.6.24.3-py2.py3-none-any.whl
| Download URL | newcli-2018.6.24.3-py2.py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
601ef5af675440913b9923ad5ec8c67350d01f44b18ccc87c4e11ab56e734993
|
|
BLAKE2b-256 checksum How to use checksums |
dfa692bdcf90d97c0fead82699b5673215844e703635b3667b5b6054d7b8669f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for newcli 2018.6.24.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.