Py-veo

Latest version: v1.5.0

Safety actively analyzes 621239 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.5.0

In this release the license was changed to BSD-2-Clause, and code developed inside the NLCPY project was merged, thus adding that repository's BSD-3-Clause license. Thanks to xpress.ai for stripping py-veo out of NLCPY in https://github.com/XpressAI/py-veo.

Some more comfort on python3 string vs. bytes handling is included, and the build is fixed for "many" python versions.
The wheels have been uploaded to PyPi, you should be able to install them with `pip install py-veo==1.5.0`.

1.4.0

1.3.8

The current version support building VE kernels inside the Python program. It is simple to use for simple things:

py
from veo import *

b=VeBuild()

b.set_c_source("_test", r"""
double mysum(double *a, int n)
{
int i; double sum;
for (i = 0; i < n; i++)
sum += a[i];
return sum;
}
""")

veo_name = b.build_so()

p = VeoProc(0)
lib = p.load_library(os.getcwd() + "/" + veo_name)
lib.mysum.args_type("double *", "int")
lib.mysum.ret_type("double")


Rather new is also the implicit function search. Instead of
python
f = lib.find_function("myfunc")
f.args_type("char *", "int")
req = f(ctxt, "abc", 15)

now you can do:
python
lib.myfunc.args_type("char *", "int")
req = lib.myfunc(ctxt, "abc", 15)


OnStack() now works with any variables that support the buffer protocol, so now numpy arrays can be passed on stack (IN, INOUT, OUT) to fortran VE function.

This release can also be installed from PYPI:
sh
pip install --upgrade py-veo

1.3.4

This version supports implicit function search. Instead of
python
f = lib.find_function("myfunc")
f.args_type("char *", "int")
req = f(ctxt, "abc", 15)

now you can do:
python
lib.myfunc.args_type("char *", "int")
req = lib.myfunc(ctxt, "abc", 15)


OnStack() now works with any variables that support the buffer protocol, so now numpy arrays can be passed on stack (IN, INOUT, OUT) to fortran VE function.

The module can be installed from PYPI, also in virtualenvs:
sh
pip install py-veo

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.