Skip to main content

A package to allow downstream inter-compatibility for Numpy-compatible array structures

Project description

A library for downstream compatibility of Numpy-compatible arrays.


For an alternative array implementation

import numpy as np
import arrayish as ai

class CustomArray(object):
    """Your custom ``ndarray`` compatible implementation."""

def dot(a, b, out=None)
    """ Your custom implementation of ````. """

# Between your own arrays, CustomArray), dot)

# With Numpy Arrays, if you'd like. Can also pass another function, CustomArray), dot), np.ndarray), dot)

For a downstream library willing to support alternative arrays

import arrayish as ai
import numpy as np

# Instead of this:, b)

# Do this:, b)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for arrayish, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size arrayish-0.0.1-py2.py3-none-any.whl (2.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size arrayish-0.0.1.tar.gz (19.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page