# universe_matrix
This package lets developers use BASIC style dynamic arrays within python. This is useful when you’re sending data back to universe and are trying to structure it to how it will be used natively.
Key points here are that indexing starts from 1 and -1 as a position means append, similar to how BASIC handles arrays.
# Requirements
This package requires the Rocket supplied module u2py as this is just a wrapper around it.
- # Installation
pip install universe-matrix
# Examples
>>> from universe_matrix import UniverseMatrix>>> a = UniverseMatrix() >>> a[1] = 'Hello' >>> a[2] = 'World' >>> print(a.u2()) HelloþWorld>>> a = UniverseMatrix() >>> a[-1] = 'Hello' >>> a[-1] = 'World' >>> print(a.u2()) HelloþWorld>>> a = UniverseMatrix() >>> a[1] = 1 >>> a[2] = 2 >>> a[2,1] = 3 >>> a[2,2] = 4 >>> a[2,3] = 5 >>> a[2,3,1] = 6 >>> a[2,3,2] = 7 >>> a[2,3,2,2] = 8 >>> print(a.u2()) 1þ3ý4ý6ü7û8>>> print(a[2,3,1]) 6
Metadata
Release files for universe-matrix 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| universe_matrix-0.0.3-py2-none-any.whl | Python 2 | none | any | Details for universe_matrix-0.0.3-py2-none-any.whl |
Release files / universe_matrix-0.0.3-py2-none-any.whl
| Download URL | universe_matrix-0.0.3-py2-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
cf4559077847b840d2a29a9ab5506e207d8366f6dfac596253365bc3ee4930bc
|
|
BLAKE2b-256 checksum How to use checksums |
e4fce5f931d1952f2578d7fcbab977ffee12e6ce863ded53ad0ffea17c70b5b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.8
|
Security for universe-matrix 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.