donyriyanto / pentools

Python API Builder with ORM Database and CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pentools (Python Engine Tools)

Build Status codecov

How to Use

$ git clone https://github.com/derymukti/pentools.git
$ cd pentools
$ sudo pip install -r requrements.txt

Config

Update config in config.json

Basic CLI

Create new module

$ python manage.py create:module -n users

Initial db after create new module

$ python manage.py init_db

Run App

$ python manage.py run

Basic api

Create New User

[POST] http://localhost:8383/users/create_user

{
	"username":"pentools",
	"password":"1234",
	"email":"test@email.com"
}

Get Users

[GET] http://localhost:8383/users/get_user

Update User

[POST] http://localhost:8383/users/update_user

{
	"id":"1",
	"username":"updateuser",
	"password":"updatepassword",
	"email":"update@email.com"
}

About

Python API Builder with ORM Database and CLI


Languages

Language:Python 100.0%