Registry / data / mo-vector

mo-vector

JSON →
library0.1.13pypypi✓ verified 80d ago

mo-vector is a Python library providing efficient vector operations and support for vector data structures, built on top of mo-libs. The latest version is 0.1.13, with a focus on numerical computing and data manipulation. Development is active, with releases on PyPI.

pip install mo-vector
INSTALL
IMPORT
SIG · MO-VECTOR
M
mo-vector
datapythonv0.1.13
Install
4.6s avg
Import
Disk
95MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.13 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 115MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.6s · import 0.000s · 109MB
95MB installed
● package 95MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DistanceMetric
from mo_vector import DistanceMetric
from mo_vector import vector
VectorDataType
from mo_vector import VectorDataType
constants
from mo_vector import constants

Basic usage of mo-vector: creating vectors and performing operations.

from mo_vector import vector # Create a vector v = vector([1, 2, 3]) print(v) # Output: [1, 2, 3] # Vector operations v2 = vector([4, 5, 6]) print(v + v2) # Addition print(v * 2) # Scalar multiplication # Dot product print(v.dot(v2))
Debug
Known issues
breakingVersion 0.1.0 changed the import structure from dot-separated packages to underscores. Old imports like `from mo.vector import vector` will break.
fix
Use `from mo_vector import vector` instead.
affects: <0.1.0
deprecatedThe `vector` class's `__add__` method previously returned a new list. As of 0.1.10, it returns a `vector` object. Code relying on list output may break.
fix
If you need a list, call `list(result)` explicitly.
affects: <0.1.10
gotchaVector operations (addition, multiplication) are element-wise by default, not matrix multiplication. Use `@` operator for dot product if available, or `.dot()` method.
fix
Use `v1 @ v2` or `v1.dot(v2)` for dot product.
affects: all
Upgrade
Version history
0.1.13latest on PyPI · released Jun 18, 2025
Audit
Dependencies
mo-dotsrequiredCore dependency for data structure operations.
mo-jsonrequiredJSON serialization/deserialization support.
Agent activity
2 hits · last 30 days
node
2
Resources
mo-vector — pip install mo-vector · libregistry