GenThemAll is a simple, Pythonic tool for genernate code and whatevery you want.
Project description
This is my first open source software project, and it’s not complete yet.
Script for generate example:
#!/usr/bin/env sh ### install genthemall pip install genthemall # generate project config file genthemall project myProject ii2d.com ### SysUser # add a module name sysUser and add field id type int. genthemall field sysUser id type=int # add field username type string, max length 40, min length 6. genthemall field sysUser username type=string max=40 min=6 # add field password type string, max length 40, min length 8. genthemall field sysUser password type=string max=40 min=8 # add field email type string. genthemall field sysUser email type=string # add field address type string genthemall field sysUser address type=string # add field sex type int genthemall field sysUser sex type=int ### SysRole # add a module name sysRole and add field id type int. genthemall field sysRole id type=int # add field roleName type string. genthemall field sysRole roleName type=string ### Generate create database sql file genthemall generate oracle create_database && cat out/SysUser.sql ### Output #DROP TABLE SYS_USER; #CREATE TABLE SYS_USER ( # ID NUMBER, # USERNAME VARCHAR2(40), # PASSWORD VARCHAR2(40), # EMAIL VARCHAR2(256), # ADDRESS VARCHAR2(256), # SEX NUMBER #); ### Generate java model file genthemall generate java java_base_model && cat out/src/main/java/com/ii2d/model/SysUser.java ### Output #INFO:genthemall.core:Generating [out/src/main/java/com/ii2d/model/SysUser.java] #INFO:genthemall.core:Generating [out/src/main/java/com/ii2d/model/SysRole.java] #package com.ii2d.model; #public class SysUser { # java.lang.Integer id; # java.lang.String username; # java.lang.String password; # java.lang.String email; # java.lang.String address; # java.lang.Integer sex; #}
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
GenThemAll-0.2.0.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for GenThemAll-0.2.0.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3790ec90617016d692a7a5b55f697e3ef3877b7fe3acc76b11119266bb0b3d37 |
|
MD5 | 69f9b118ea6f5875394deb2aedd05abf |
|
BLAKE2b-256 | e04efc7d6d87ef8ad4e4db7157596d19dc9d07b1884383d45831d31c6c3e7fb5 |