Skip to content

CaiJingLong/codable-generator-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

codable-generator-python

coable generator python3

{"name":"bens","color":"#fff","price":1300000,"size":{"width":2.8,"height":1.7,"length":4.9}}
struct Size: Codable{

    var width : Float = 0.0
    var height : Float = 0.0
    var length : Float = 0.0

}
struct Outer: Codable{

    var name : String = ""
    var color : String = ""
    var price : Int = 0
    var size : Size

}

use

  1. download py to your mac
  2. open term
  3. input python3 codable-genertor.py -f src2.json -o Outer -t struct

params

-f pathname
-o className
-t struct/class
-c copy to clipboard
-np not print the text in console

LICENSE

BSD v3

About

coable generator python3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages