Catalog PyPI
Back to packageRELEASE DETAILS

0.1.3

PyPI

abracudabra

Convert Tensors, Arrays and DataFrames Between CPU and CUDA

arraycpucudacudfcupydata-processingdata-sciencedataframedeep-learninggpumachine-learningnumpypandasseriestensortorch
Published13 Mar 2025
Direct dependencies5
Transitive dependenciesNot calculated

README

Version 0.1.3 documentation

Abracudabra logo

Convert Tensors, Arrays and DataFrames Between CPU and CUDA

Pipeline Status Test Coverage License Latest Release PyPI - Version Python Version

📖 Documentation: https://abracudabra.docs.cern.ch/master

Abracudabra simplifies moving data between CPU and CUDA devices, supporting seamless conversions for Torch tensors, NumPy/CuPy arrays, and Pandas/cuDF Series and DataFrames.

Quick Installation

pip install abracudabra

Basic Usage

Here's a quick example demonstrating how to convert a NumPy array to a CUDA-compatible (CuPy) array:

from abracudabra import to_array
import torch

tensor = torch.rand(2, 3, device="cuda:0")
array = to_array(tensor)

print(type(array))  # <class 'cupy.ndarray'>

More Information

Abracudabra also supports conversions for dataframes, series, tensors, and includes utilities for querying and managing device contexts. For comprehensive documentation and additional examples, please visit the official usage guide.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 6

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
numpy
Environment
{
  "extras": "",
  "marker": "extra == \"cpu\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
numpy>=2.0.2; extra == "cpu"runtime
pandas
Environment
{
  "extras": "",
  "marker": "extra == \"cpu\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pandas>=2.2.3; extra == "cpu"runtime
torch
Environment
{
  "extras": "",
  "marker": "extra == \"cpu\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
torch<2.6.0; extra == "cpu"runtime
cudf-cu12
Environment
{
  "extras": "",
  "marker": "extra == \"cuda124\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
cudf-cu12==25.2.*; extra == "cuda124"runtime
cupy-cuda12x
Environment
{
  "extras": "",
  "marker": "extra == \"cuda124\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
cupy-cuda12x>=13.4.0; extra == "cuda124"runtime
torch
Environment
{
  "extras": "",
  "marker": "extra == \"cuda124\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
torch<2.6.0; extra == "cuda124"runtime

Distribution files

1 collected
abracudabra-0.1.3-py3-none-any.whl

bdist_wheel · 21.93 KB · Python py3

Source file

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:34 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:0310cd02fafd035f821d769dee8aa96f2f40087ea58a7e9cd08e179330df9b89

Other collected versions

View all collected versions →