No project description provided
Project description
BQN↔NumPy bridge
>>> import numpy as np
>>> import bqn
>>> bqn.bqn('{(+´÷≠)˘7↕𝕩}',np.arange(0,10,dtype=np.int32))
array([3, 4, 5, 6], dtype=int8)
>>> bqn.bqn('¯1⊑(1⊸+⥊+)○≠(⌊`⊢⌊⊏⊸»∘⊢-0∾1+⊣)˝=⌜⟜⌽',"kitten","sitting")
3.0
Installation
Install the BQN C library, libcbqn.so (libcbqn.dylib on Mac) to /usr/local/lib, and headers. Then:
pip3 install pybqn
Limitations
- Only supports integer and floating-point types.
- Can't marshal Python integer scalars to BQN.
- Doesn't marshal BQN strings to Python
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pybqn-0.1.0.tar.gz
(15.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pybqn-0.1.0.tar.gz.
File metadata
- Download URL: pybqn-0.1.0.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79eae42a0c4cba9e88f8f33ae76666b4b3c6207ad67c2ef111bf79c35c9adb00
|
|
| MD5 |
2b318196dd78769105367db41f8d6e4d
|
|
| BLAKE2b-256 |
7c5ca96730d8bd0c4f6140ff5e67156728ca495e719bb138104e52ef9a6b3044
|
File details
Details for the file pybqn-0.1.0-cp313-cp313-macosx_10_13_universal2.whl.
File metadata
- Download URL: pybqn-0.1.0-cp313-cp313-macosx_10_13_universal2.whl
- Upload date:
- Size: 23.0 kB
- Tags: CPython 3.13, macOS 10.13+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dd74ee9231cd3316b9f08a9bd60a4714bac0e9df4ce4dcb57d101eb950fe4d5
|
|
| MD5 |
f3cfe3395425c911728584ac7f4b242d
|
|
| BLAKE2b-256 |
84cb46b6d220881c6c93ee022ce18ea68df66f6928cd0a48c46963f62c9c36a0
|