Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syberiak/hurray
Simple collection of wrappers around Python's builtin 'array' module
https://github.com/syberiak/hurray
Last synced: about 2 months ago
JSON representation
Simple collection of wrappers around Python's builtin 'array' module
- Host: GitHub
- URL: https://github.com/syberiak/hurray
- Owner: SyberiaK
- License: mit
- Created: 2023-08-31T09:07:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-30T16:40:39.000Z (7 months ago)
- Last Synced: 2024-11-08T07:44:36.518Z (2 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hurray
[![PyPI release]][pypi]
[![Python supported versions]][pypi]
[![License]](./LICENSE)hurray is a simple package containing a collection of wrappers around Python's builtin 'array' module.
```python
from hurray import ShortArray, UIntArray, ULongArrayarr1 = 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.*
[pypi]: https://pypi.org/project/hurray/
[PyPI Release]: https://img.shields.io/pypi/v/hurray.svg?label=pypi&color=green
[Python supported versions]: https://img.shields.io/pypi/pyversions/hurray.svg?label=%20&logo=python&logoColor=white
[License]: https://img.shields.io/pypi/l/hurray.svg?style=flat&label=license[trag1c]: https://github.com/trag1c
[CircuitSacul]: https://github.com/CircuitSacul
[Micael Jarniac]: https://github.com/MicaelJarniac
[bswck]: https://github.com/bswck