@@ -205,12 +205,17 @@ assert.deepEqual(py_array.toJS(), [2, 1, 0]);
205
205
- [ slice] ( #slice )
206
206
- [ fromJS] ( #fromjs )
207
207
- [ Parameters] ( #parameters-10 )
208
+ - [ keys] ( #keys )
209
+ - [ values] ( #values )
208
210
- [ pymport] ( #pymport )
209
211
- [ Parameters] ( #parameters-11 )
210
212
- [ proxify] ( #proxify )
211
213
- [ Parameters] ( #parameters-12 )
212
214
- [ pyval] ( #pyval )
213
215
- [ Parameters] ( #parameters-13 )
216
+ - [ version] ( #version )
217
+ - [ version] ( #version-1 )
218
+ - [ pythonRuntime] ( #pythonruntime )
214
219
215
220
## PyObject
216
221
@@ -236,7 +241,7 @@ Type: (number | undefined)
236
241
237
242
### get
238
243
239
- Get a property from the object
244
+ Get a property from the object, equivalent to Python member operator .
240
245
241
246
Type: function (name: string): [ PyObject] ( #pyobject )
242
247
@@ -398,6 +403,22 @@ Type: function (v: any): [PyObject](#pyobject)
398
403
399
404
Returns ** [ PyObject] ( #pyobject ) **   ;
400
405
406
+ ### keys
407
+
408
+ Retrieve a list with the keys of the dictionary, equivalent to JS Object.keys()
409
+
410
+ Type: function (obj: [ PyObject] ( #pyobject ) ): [ PyObject] ( #pyobject )
411
+
412
+ Returns ** [ PyObject] ( #pyobject ) **   ;
413
+
414
+ ### values
415
+
416
+ Retrieve a list with the values of the dictionary, equivalent to JS Object.values()
417
+
418
+ Type: function (obj: [ PyObject] ( #pyobject ) ): [ PyObject] ( #pyobject )
419
+
420
+ Returns ** [ PyObject] ( #pyobject ) **   ;
421
+
401
422
## pymport
402
423
403
424
Import a Python module
@@ -434,6 +455,24 @@ Eval a Python fragment
434
455
435
456
Returns ** [ PyObject] ( #pyobject ) **   ;
436
457
458
+ ## version
459
+
460
+ Hex number
461
+
462
+ Type: string
463
+
464
+ ## version
465
+
466
+ Version information
467
+
468
+ Type: {pymport: {major: number, minor: number, patch: number, suffix: string}, pythonLibrary: {builtin: boolean, major: number, minor: number, micro: number, release: number, serial: number, version: string}, pythonRuntime: (null | string), pythonPath: string}
469
+
470
+ ### pythonRuntime
471
+
472
+ Supported only on Python 3.11+
473
+
474
+ Type: (null | string)
475
+
437
476
# Alternatives
438
477
439
478
There is an alternative package that is more mature but with slightly different target use called [ ` node-calls-python ` ] ( https://github.com/hmenyus/node-calls-python ) .
0 commit comments