1.0.3-3 • Published 5 years ago

js2py v1.0.3-3

Weekly downloads
2
License
MIT
Repository
gitlab
Last release
5 years ago

Converts JavaScript to Python

Proof of concept, converting JS to Python, for example:

const BigN = require('bignumber.js')

class Calculator extends MathDevice {
  constructor (args = []) {
    super({})
  }

  static max (a, b) {
    return BigN.max(a, b)
  }
}

into

class Calculator(MathDevice):
  def __init__(self, args = []):
    super().__init__({})

  def add(self, a, b):
    return max(a, b)
1.0.3-3

5 years ago

1.0.3-2

5 years ago

1.0.3-1-1

5 years ago

1.0.3-1

5 years ago

1.0.3

5 years ago