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
WS
->
a
i: str
b: Name
x: str
i: int
join_team
num: str
<-
update
i[]: int
Changelog
0.1.3
- Add compilers to build dataclasses for python and dart
- Add Websocket support
- Allow Communications that are an array instead of an object
0.1.4
Date: 01.05.2020
- Attribute body can be ReferenceType (#c9d8a896cd3653b36315cb31058e616d1296f988)
- ReferenceType resolution after transform (#4f59f43861a0bccf65f20689d87b85962e0ad81e)
- Basic error messages
- Compiler: Add get_native_type method (#6ea36a7353847b064633908cb42cf6e449050e5a)
Metadata
Release files for api-schemas 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| api_schemas-0.1.4.tar.gz | 9.8 kB | Without provenance | Details for api_schemas-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| api_schemas-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for api_schemas-0.1.4-py3-none-any.whl |
Total release size: 21.5 kB
Release files / api_schemas-0.1.4.tar.gz
| Download URL | api_schemas-0.1.4.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf791725e3a51c81f7f825103d32c5cda74e2c6914a3ac6650f0be7246f3b8d2
|
|
BLAKE2b-256 checksum How to use checksums |
7d5eb7d1204960b27b475385f53c78097370e2fed861bf804c05ce9a3bd59298
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.4 Linux/5.4.0-1046-azure
|
Release files / api_schemas-0.1.4-py3-none-any.whl
| Download URL | api_schemas-0.1.4-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a89b6b29425fc7ce4e575e83e0e4abc46998dd5b4bd0d081b4f677cf7de33fb1
|
|
BLAKE2b-256 checksum How to use checksums |
e5d3cae1fce072fe9a71afc68e8a97059dfa1f304f1734b91f7ef7e36ee2cbc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.4 Linux/5.4.0-1046-azure
|
Security for api-schemas 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.