1.0.2 • Published 5 years ago

js-to-py v1.0.2

Weekly downloads
1
License
MIT
Repository
github
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.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago