2021-02-25 07:37:23 +08:00
|
|
|
# NumPy-iOS
|
|
|
|
|
2021-02-25 15:10:43 +08:00
|
|
|
This swift package enables you to use NumPy in your iOS apps.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
```
|
|
|
|
.package(url: "https://github.com/kewlbear/NumPy-iOS.git", .branch("main"))
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
import NumPySupport
|
|
|
|
import PythonSupport
|
|
|
|
import PythonKit
|
|
|
|
|
|
|
|
PythonSupport.initialize()
|
|
|
|
NumPySupport.sitePackageUrl.insertPythonPath()
|
|
|
|
let np = Python.import("numpy")
|
|
|
|
...
|
|
|
|
```
|
|
|
|
|
2021-03-02 16:03:20 +08:00
|
|
|
If you want to build XCFrameworks yourself, see https://github.com/kewlbear/kivy-ios.
|
|
|
|
|
2021-02-25 15:10:43 +08:00
|
|
|
## License
|
|
|
|
|
|
|
|
MIT
|