Package Information |
Summary |
A library for inter-calling Python and PHP |
Maintainers |
Han Tianfeng <
rango at swoole dot com >
(lead)
[details]
|
License |
Apache2.0 |
Description |
This extension allows PHP to directly use Python modules and functions without RPC.
Including Pytorch, transformer, numpy, tensorflow and other Python AI libraries, which can be used like calling
PHP functions. |
Homepage |
https://github.com/swoole/phpy
|
Release notes
Version 1.0.11
(stable)
|
- Added PyCore::raise() to throw exceptions to the Python layer. - Added PyNamedFn function, which converts PHP functions into Python functions, complete with annotations, parameters, and return type information. - Added the PyEnum function to transform PHP classes containing only constants into Python Enums. - Added the bin/phpy tool. - Added the argument_as_object option - Fixed a bug in PyTuple::offsetExists where it returned false for negative input parameters. - Added a PyClass::__init() callback, which is invoked within the init method of Python classes. |