https://github.com/metatensor/dlpk
https://github.com/metatensor/dlpk
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/metatensor/dlpk
- Owner: metatensor
- License: apache-2.0
- Created: 2025-06-17T13:49:22.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-28T16:59:34.000Z (7 months ago)
- Last Synced: 2025-11-30T21:44:37.080Z (7 months ago)
- Language: Rust
- Homepage: http://docs.metatensor.org/dlpk/
- Size: 36.1 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# `dlpk`: DLPack integration for Rust
This crate contains a direct translation of the C header for
[DLPack](https://github.com/dmlc/dlpack), which is intended to be used inside
Rust projects that want to offer a C API.
We also provide some tools to convert to and from other types, through the
following cargo features:
- `ndarray` to convert from and to `ndarray::Array`
- `pyo3` to convert from and to Python data, following the [python specification
for dlpack](https://dmlc.github.io/dlpack/latest/python_spec.html)
### License
This crate is distributed under the terms of both the MIT license and the Apache
License (Version 2.0).