Create an intermediate representation of an api schema, that can be used to generate code.
Project description
API schemas
Create an intermediate representation of an api schema, that can be used to generate code.
In other words: Same what OpenAPI has already but with fewer options.
But why?: Because it is fun 😎
Example API schema
typedef Example
a: str
b: int
c: float
d: any
e: D {A, B, C}
f: E
Z = v v
?g[]: bool
i: str
type = Date
format = yyyy-mm-dd HH:MM:ss.SSS
j: $Week
typedef Date str
type = Datetime
format = yyyy-mm-dd HH:MM:ss.SSS
typedef Week {Monday, Tuesday, Wednesday}
typedef Q
a: $Example
b: $Date
typedef QQ $Q
server = http://localhost:5000/api/v1
people
uri: /people/<name>
GET
->
<-
200
data: $Example
404
err_msg: str
500
err_msg: str
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
api_schemas-0.1.2.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for api_schemas-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7cb72a27be5c500de5fdf82cf0b543e86751f8c611e7d76e6ff5ba36407faf4 |
|
MD5 | 4c52dd5111a8dfc1dc70044a55f800b1 |
|
BLAKE2b-256 | 772cfbdd25193e95048b7f9aea960cd5e9b9e23e0155739a3f3e9809dbf0ebfb |