Skip to content

Commit 20b8453

Browse files
committed
Update README
1 parent 96742be commit 20b8453

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,28 @@ bindings for Fable based on Python
66

77
## Installation
88

9-
TBW
9+
TBD
1010

1111
## Usage
1212

13-
TBW
13+
```fs
14+
open Fable.Python.Json
15+
16+
let object = {| A=10; B=20 |}
17+
let result = json.dumps object
18+
```
1419

1520
## Auto-generation
1621

1722
Parts of this library could benefit from code-generation based on the type
1823
annotations in Python [typeshed](https://github.com/python/typeshed) similar to
19-
ts2fable. Even so we should keep this library manually updated based on PRs to
20-
ensure the quality of the code.
24+
[ts2fable](https://github.com/fable-compiler/ts2fable). Even so we should keep
25+
this library manually updated based on PRs to ensure the quality of the code.
26+
27+
Current plan:
28+
29+
1. Add bindings for Python `ast` module (in progress)
30+
2. Use `ast` module to parse Python typeshed annotations
31+
3. Generate F# bindings
2132

2233

0 commit comments

Comments
 (0)