Skip to content
 
 

Repository files navigation

Fable Python

Python bindings for Fable. This library will eventually contain Python (stdlib) bindings for Fable based on Python typeshed.

It will also contain type binding for many other libraries as well such as Flask, MicroBit and many more

Installation

dotnet package add Fable.Python

Usage

open Fable.Python.Json

let object = {| A=10; B=20 |}
let result = json.dumps object

Auto-generation

Parts of this library could benefit from code-generation based on the type annotations in Python typeshed similar to ts2fable. Even so we should keep this library manually updated based on PRs to ensure the quality of the code.

Current plan:

  1. Add bindings for Python ast module (in progress)
  2. Use ast module to parse Python typeshed annotations
  3. Generate F# bindings

About

Python bindings for Fable

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages