Springlabs Projects Python Standard
Project description
SpringLabs-Python
Springlabs-Python is a CLI Application to create python projects with a defined struture to springlabs.
- Create projects Django (logical or physical)
- PostgreSQL
- MySQL
- Create projects Flask (logical)
- MongoDB
You can also:
- Import and save files from GitHub, Dropbox, Google Drive and One Drive
- Drag and drop markdown and HTML files into Dillinger
- Export documents as Markdown, HTML and PDF
Primero resuelve el problema, despues escribe el código. — John Johnson
Tech
Springlabs-Python uses a number of open source projects to work properly:
- Django - high-level Python Web framework
- DjangoRestFramework - powerful and flexible toolkit for building Web APIs.
- Flask - powerful and flexible microframework for building Web APIs.
- Click - package for creating beautiful command line interfaces
Installation
Springlabs-Python requires Python v3.6+ to run.
Install and update using pip.
$ pip install -U springlabs-python
Install latest version
$ pip install springlabs-python
Install specific version
$ pip install springlabs-python==[version]
Usage
Helpers
After install the library Open your favorite Terminal and run these commands.
Help:
$ springlabs_python --help
Console output
Usage: springlabs_python [OPTIONS] COMMAND [ARGS]...
Springlabs Manager projects.
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
create-project Create a new Python project
Version:
$ springlabs_python --version
Console output
Springlabs Manager, v[version]
Create Project Help:
$ springlabs_python create-project --help
Console output
Usage: springlabs_python create-project [OPTIONS]
Create a new Python project
Options:
-fw, --framework [Django|Flask]
Python Framework to use [default: Django]
-db, --database [postgres|mysql|mongo]
Database engine to use [default: postgres]
-d, --diseno [logico|fisico] Database design to use [default: logico]
-n, --name TEXT Project Name
--help Show this message and exit.
Create Project
Create project with interactive CLI
$ springlabs_python create-project
Console output
Framework a utilizar (Django, Flask) [Django]: django
Database a utilizar (postgres, mysql, mongo) [postgres]: postgres
Diseño de database a utilizar (logico, fisico) [logico]: logico
Project Name: project_test
Se creó proyecto Django-postgres(logico) [project_test] correctamente
Create project shortcut To create a project simple shortcut use the options --flag send the value after flag Example:
$ springlabs_python create-project --framework django --database mysql --diseno fisico --name project_test
Console output
Se creó proyecto Django-postgres(logico) [project_test] correctamente
Alternative use -flag instead of --flag send the value after flag Example:
$ springlabs_python create-project -fw django -db mysql -d fisico -n project_test
Console output
Se creó proyecto Django-postgres(logico) [project_test] correctamente
Commands
springlabs_python
Command | Short | Long |
---|---|---|
Help | --help | |
Version | --version |
springlabs_python create-project
Command | Short | Long |
---|---|---|
Help | --help | |
Version | --version | |
Framework | -fw | --framework |
Database | -db | --database |
Design | -d | --diseno |
Name | -n | --name |
Links
- Website https://springlabs.ai/
- Code https://gitlab.com/AlejandroBarcenas/springlabs-python-cli
- Releases https://pypi.org/project/springlabs-python/#history
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for springlabs_python-0.8.3-py3.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93fd771e0b2226e428f888dcfbc28ca9ed3dc81d1191a30dcda90513eda61bb4 |
|
MD5 | 6178672cf2fc356f0bc0038676ec1063 |
|
BLAKE2b-256 | dd083c34623587a7504d521be189579bd07db0f09ed7371846cd9d759cf4c308 |
Hashes for springlabs_python-0.8.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97de404a243cfa0fe929cc4e67c358bc0f30933f14b75a3f05b512eac3d7169d |
|
MD5 | e8e240e6bf09c8ace3517ea807b0a39c |
|
BLAKE2b-256 | 699cff215c594e7310e48ae427141f20c82f653390ef266fac20c506bfaab788 |