Releases: mmomtchev/pymport
Releases · mmomtchev/pymport
v1.3.0
New Features
- Builtin Python 3.10.9
- Multithreading safety
callAsync
method allowing asynchronous calling of Python functions- On Linux and macOS, the builtin Python interpreter includes static versions of OpenSSL and libffi, this ensures better compatibility at the price of disabling the OpenSSL extensions supporting dedicated crypto hardware - this restriction does not apply if
pymport
is rebuilt from source - Named ES6 exports
- Add
PyObject.with
implementing Pythonwith
- Return the Python exception object and its constructor in
PythonError.pythonValue
andPythonError.pythonType
Bug Fixes
v1.3.0-rc.3
New Features
- Builtin Python 3.10.9
- Multithreading safety
callAsync
method allowing asynchronous calling of Python functions- On Linux and macOS, the builtin Python interpreter includes static versions of OpenSSL and libffi, this ensures better compatiblity at the price of disabling the OpenSSL extensions supporting dedicated crypto hardware - this restriction does not apply if
pymport
is rebuilt from source - Named ES6 exports
- Add
PyObject.with
implementing Pythonwith
- Return the Python exception object and its constructor in
PythonError.pythonValue
andPythonError.pythonType
Bug Fixes
v1.3.0-rc.2
New Features
- Builtin Python 3.11.1
- Multithreading safety
callAsync
method allowing asynchronous calling of Python functions- On Linux, builtin Python interpreter includes static versions of OpenSSL and libffi
- Named ES6 exports
- Add
PyObject.with
implementing Pythonwith
- Return the Python exception object and its constructor in
PythonError.pythonValue
andPythonError.pythonType
Bug Fixes
- Fix #33,
PyObject.prototype.constr
has wrong TypeScript type
v1.3.0-rc.1
New Features
- Builtin Python 3.11.1
- Multithreading safety
callAsync
method allowing asynchronous calling of Python functions- On Linux, builtin Python interpreter includes static versions of OpenSSL and libffi
- Named ES6 exports
- Add
PyObject.with
implementing Pythonwith
- Return the Python exception object and its constructor in
PythonError.pythonValue
andPythonError.pythonType
Bug Fixes
- Fix #33,
PyObject.prototype.constr
has wrong TypeScript type
v1.3.0-rc.0
New Features
- Builtin Python 3.11.1
- Multithreading safety
callAsync
method allowing asynchronous calling of Python functions- Named ES6 exports
- Add
PyObject.with
implementing Pythonwith
- Return the Python exception object and its constructor in
PythonError.pythonValue
andPythonError.pythonType
Bug Fixes
- Fix #33,
PyObject.prototype.constr
has wrong TypeScript type
v1.2.0
New Features
- Automatically proxified methods in
pymport/proxified
- Proxified objects also proxify the input arguments of passed JS callbacks
- (BREAKING) Conversion of arguments in JS callbacks of Python code is now automatic only if it can be correctly deduced from the context,
toJS()
must be called in all other cases - Implement Python type coercion
- Support Python sets
Bug Fixes
- Fix #25, type-ahead provokes a crash in Node.js 14.x REPL
v1.2.0-rc.1
New Features
- Automatically proxified methods in
pymport/proxified
- Proxified objects also proxify the input arguments of passed JS callbacks
- (BREAKING) Conversion of arguments in JS callbacks of Python code is now automatic only if it can be correctly deduced from the context,
toJS()
must be called in all other cases - Implement Python type coercion
- Support Python sets
Bug Fixes
- Fix #25, type-ahead provokes a crash in Node.js 14.x REPL
v1.2.0-rc.0
New Features
- Automatically proxified methods in
pymport/proxified
- Proxified objects also proxify the input arguments of passed JS callbacks
- (BREAKING) Conversion of arguments in JS callbacks of Python code is now automatic only if it can be correctly deduced from the context,
toJS()
must be called in all other cases - Implement Python type coercion
- Support Python sets
Bug Fixes
- Fix #25, type-ahead provokes a crash in Node.js 14.x REPL
v1.1.1
v1.1.0
New Features
- Converting JS functions to Python callables
- Expiring of function objects
- Converting of
bytes
andbytearray
toBuffer
andBuffer
tobytearray
- Converting between
TypedArray
andarray
- Convert Python iterators and generators to JavaScript
Symbol.iterator
- Basic tracking of the memory held by Python objects referenced in JS by the V8 GC
proxify
ed object do not intercept and redirect calls toPyObject
methods if the Python object has a method with the same name - ie. callingitem()
on a non-proxified PyObject invokesPyObject.item()
but if the underlying Python object of a proxified object also has anitem()
function, callingitem()
on the proxified object will invoke the Python methodprofixy
always return the same reference if called with a previously seenPyObject
reference- Support
BigInt
PyObject.slice
accepts named arguments- Return the Python traceback in
pythonTrace
and add aPythonError
TypeScript type - Do not allow
PYTHONPATH
to overridePYTHONHOME
when using the builtin - Ignore the last argument of a Python function call if it is
undefined
- this allows to pass a last argument as a dictionary by callingfn(obj, undefined)
instead offn(obj)
which will transformobj
into named kw arguments - Support
PyObject.keys
andPyObject.values
onprofixy
ed objects - Support building against a prebuilt Python tree in a non-standard location
- (internals) New automatic reference counting