Skip to main content

Springlabs Prints

Project description

SpringLabs-Django ACTUALIZACION

N|Solid

Springlabs-Django is a CLI Application to manage Django projects with a defined structure to springlabs.

  • Create version
  • Create group
  • Create api
    • Model
    • Open
  • Create graph
    • Model
    • Open

Primero resuelve el problema, despues escribe el código. — John Johnson

Tech

Springlabs-Django 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.
  • Graphene-Django - provides some additional abstractions that make it easy to add GraphQL functionality to your Django project

Installation

Springlabs-Django requires Python v3.6+ to run.

Install and update using pip.

$ pip install -U springlabs-django

Install latest version

$ pip install springlabs-django

Install specific version

$ pip install springlabs-django==[version]

Usage

Helpers

After install the library Open your favorite Terminal and run these commands.

Help:

$ springlabs_django --help

Console output

Usage: springlabs_django [OPTIONS] COMMAND [ARGS]...

  Springlabs Django Manager.

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  create-api      Create a new api for django project
  create-graph    Create a new graph for django project
  create-group    Create a new group for django project
  create-version  Create a new version for django project

Version:

$ springlabs_django --version

Console output

Springlabs Django Manager, v[version]

Create Version Help:

$ springlabs_django create-version --help

Console output

Usage: springlabs_django create-version [OPTIONS]

  Create a new version for django project

Options:
  -ve, --version TEXT  New version for the application
  --help               Show this message and exit.

Create Group Help:

$ springlabs_django create-group --help

Console output

Usage: springlabs_django create-group [OPTIONS]

  Create a new group for django project

Options:
  -ve, --version [1]  Version to which the group will be added
  -gr, --group TEXT   New group for the application
  --help              Show this message and exit.

Create API Help:

$ springlabs_django create-api --help

Console output

Usage: springlabs_django create-api [OPTIONS]

  Create a new api for django project

Options:
  -ve, --version [1]              Version to use
  -g, --group [options]           Group to use
  -n, --name TEXT                 API name
  -http, --http_verb [POST|PUT|DELETE]
                                  HTTP verb to use in the api  [default: POST]
  -t, --type_api [model|open]     API type  [default: open]
  -u, --url TEXT                  API url
  -a, --availability [public|private]
                                  API availability  [default: public]
  --help                          Show this message and exit.

Create GraphQL Help:

$ springlabs_django create-graph --help

Console output

Usage: springlabs_django create-graph [OPTIONS]

  Create a new graph for django project

Options:
  -ve, --version [1]             Version to use
  -g, --group [options]          Group to use
  -n, --name TEXT                GraphQL name
  -t, --type_graph [model|open]  Graph type  [default: open]
  --help                         Show this message and exit

Create Version

Create version with interactive CLI

$ springlabs_django create-version

Console output

Insert the version number: 4
Version '4' was created successfully

Create version shortcut To create a version simple shortcut use the options --flag send the value after flag Example:

$ springlabs_django create-version --version 2

Console output

Version '2' was created successfully

Alternative use -flag instead of --flag send the value after flag Example:

$ springlabs_django create-version -ve 2

Console output

Version '2' was created successfully

Create Group

Create group with interactive CLI

$ springlabs_django create-group

Console output

Insert version (1, 2, 3, 4): 4
Insert group name: groupname
Group 'groupname' was created successfully

Create group shortcut To create a group simple shortcut use the options --flag send the value after flag Example:

$ springlabs_django create-group --version 4 --group groupname

Console output

Group 'groupname' was created successfully

Alternative use -flag instead of --flag send the value after flag Example:

$ springlabs_django create-group -ve 2 -gr groupname

Console output

Group 'groupname' was created successfully

Create API

Create API with interactive CLI

$ springlabs_django create-api

Console output

Insert version (1, 2, 3, 4): 4
Insert group (users, groupname): groupname
Insert api name: apiname
Insert http verb (POST, PUT, DELETE) [POST]: POST
Insert api type (model, open) [open]: open
Insert api url: apiname/parameter
Insert api availability (public, private) [public]: public
The api 'apiname' was created successfully

Create API shortcut To create a API simple shortcut use the options --flag send the value after flag Example:

$ springlabs_django create-api --version 4 --group groupname --name apiname --http_verb POST --type_api open --url apiname/parameter --availability public

Console output

The api 'apiname' was created successfully

Alternative use -flag instead of --flag send the value after flag Example:

$ springlabs_django create-api -ve 4 -g groupname -n apiname -http POST -t open -u apiname/parameter -a public

Console output

The api 'apiname' was created successfully

Create Graph

Create Graph with interactive CLI

$ springlabs_django create-graph

Console output

Insert version (1, 2, 3, 4): 4
Insert group (users, groupname): groupname
Insert graph name: graphname
Insert graph type (model, open) [open]: open
Graph 'graphname' was successfully created

Create Graph shortcut To create a Graph simple shortcut use the options --flag send the value after flag Example:

$ springlabs_django create-graph --version 4 --group groupname --name graphname --type_graph open

Console output

Graph 'graphname' was successfully created

Alternative use -flag instead of --flag send the value after flag Example:

$ springlabs_django create-graph -ve 4 -g groupname -n graphname -t open

Console output

Graph 'graphname' was successfully created

Commands

springlabs_python

Command Short Long
Help --help
Version --version

springlabs_python create-version

Command Short Long
Help --help
Version -ve --version

springlabs_python create-group

Command Short Long
Help --help
Version -ve --version
Group -gr --group

springlabs_python create-api

Command Short Long
Help --help
Version -ve --version
Group -g --group
Name -n --name
HTTP Verb -http --http_verb
Type API -t --type_api
URL -u --url
Availability -a --availability

springlabs_python create-graph

Command Short Long
Help --help
Version -ve --version
Group -g --group
Name -n --name
Type Graph -t --type_graph

Links

License

MIT

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

springlabs_cc_alexis-0.1.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

springlabs_cc_alexis-0.1.1-py3.6.egg (5.5 kB view details)

Uploaded Egg

springlabs_cc_alexis-0.1.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file springlabs_cc_alexis-0.1.1.tar.gz.

File metadata

  • Download URL: springlabs_cc_alexis-0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

File hashes

Hashes for springlabs_cc_alexis-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dd0bc393b4d38b0d15e98d242b531690d137e1cf9908a301a8027a146ef81aa6
MD5 37188b511a0abd8aac9036ab23ae23ea
BLAKE2b-256 7cfd0ad9a4a92ac44d2212f1b6485ec82b95c5928c1320735cf1946e20210762

See more details on using hashes here.

File details

Details for the file springlabs_cc_alexis-0.1.1-py3.6.egg.

File metadata

  • Download URL: springlabs_cc_alexis-0.1.1-py3.6.egg
  • Upload date:
  • Size: 5.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

File hashes

Hashes for springlabs_cc_alexis-0.1.1-py3.6.egg
Algorithm Hash digest
SHA256 b3b7a9b8663c73b336f77b838ab5edc07066f79cab33495aa3f687c8bc129313
MD5 127b31bd11fff0477c184c188554661e
BLAKE2b-256 f65b3ada086f2de1e2091f1b2c5b8dcb379ce665f41a547287798fee59ca4b50

See more details on using hashes here.

File details

Details for the file springlabs_cc_alexis-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: springlabs_cc_alexis-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

File hashes

Hashes for springlabs_cc_alexis-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7405038fb972eaca4b0a65fc7567df55c397c50c0e70023f68126c1646e7a9c
MD5 fbb065f846649367f791cd62a7cc02dd
BLAKE2b-256 1a9eca9550c2331ce8ad5ab880afda3f1a1261e3794f295a9c9361f67fb4a889

See more details on using hashes here.

Supported by

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