Skip to main content

Simple collection of wrappers around Python's builtin 'array' module

Project description

hurray

PyPI release Python supported versions License

hurray is a simple package containing a collection of wrappers around Python's builtin 'array' module.

from hurray import ShortArray, UIntArray, ULongArray

arr1 = ShortArray([-4, -3, -2, -1, 0, 1, 2, 3, 4])
arr2 = UIntArray([100_000, 100_001, 100_002, 100_003, 100_004])
empty = ULongArray()

print(arr1)  # array('h', [-4, -3, -2, -1, 0, 1, 2, 3, 4])
print(arr2)  # array('I', [100000, 100001, 100002, 100003, 100004])
print(empty.itemsize)  # 4

Special thanks to trag1c, CircuitSacul, Micael Jarniac, bswck for helping to make this silly package.

Project details


Download files

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

Source Distribution

hurray-1.1.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

hurray-1.1.1-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page