16 releases (6 breaking)

new 0.8.2 Jan 7, 2025
0.8.1 Dec 7, 2024
0.7.1 Sep 25, 2024
0.6.0 Jun 29, 2024
0.3.1 Nov 12, 2023

#1177 in Machine learning

Download history 190/week @ 2024-09-18 194/week @ 2024-09-25 21/week @ 2024-10-02 9/week @ 2024-10-09 6/week @ 2024-10-16 7/week @ 2024-10-30 11/week @ 2024-11-06 1/week @ 2024-11-13 122/week @ 2024-12-04 28/week @ 2024-12-11

150 downloads per month

MIT/Apache

1.5MB
34K SLoC

Installation

From the candle-pyo3 directory, enable a virtual env where you will want the candle package to be installed then run.

maturin develop -r 
python test.py

Generating Stub Files for Type Hinting

For type hinting support, the candle-pyo3 package requires *.pyi files. You can automatically generate these files using the stub.py script.

Steps:

  1. Install the package using maturin.
  2. Generate the stub files by running:
    python stub.py
    

Validation:

To ensure that the stub files match the current implementation, execute:

python stub.py --check

Dependencies

~10–20MB
~349K SLoC