...
This commit is contained in:
19
_archive/openrpc/readme.md
Normal file
19
_archive/openrpc/readme.md
Normal file
@@ -0,0 +1,19 @@
|
||||
## example how to use
|
||||
|
||||
```python
|
||||
|
||||
from openrpc import openrpc_spec_write
|
||||
|
||||
#load all the specs and write the result in a dir
|
||||
openrpc_spec = openrpc_spec_write(
|
||||
path="~/code/git.threefold.info/projectmycelium/hero_server/generatorexamples/example1/specs"
|
||||
dest="/tmp/openrpc/example1"
|
||||
)
|
||||
|
||||
```
|
||||
|
||||
## internal process
|
||||
|
||||
- first we clean the code to only have relevant parts
|
||||
- then we find the blocks, can be function, enum or struct
|
||||
- then we parse the blocks
|
Reference in New Issue
Block a user