Pure Python scientific computing — replaces NumPy, Pandas, Matplotlib & TensorFlow
Project description
Maten
A lightweight, dependency-free Python toolkit that provides NumPy-, Pandas-, Matplotlib-, and TensorFlow-like APIs for learning and prototyping.
Features
- maten.core — N-dimensional tensors, element-wise math, and linear algebra
- maten.frame — Series, DataFrame, groupby, and CSV/JSON I/O
- maten.plot — SVG charts (line, bar, scatter, hist, pie, heatmap)
- maten.neural — Scalar autograd, layers, optimizers, and a simple trainer
Installation
From the project root:
pip install .
Editable install for development:
pip install -e ".[dev]"
Quick start
import maten
from maten.core import Tensor, zeros
from maten.frame import DataFrame
from maten.plot import subplots, line
from maten.neural import Value
print(maten.__version__)
print(zeros(3))
print(DataFrame({"x": [1, 2, 3]}))
_, ax = subplots()
line(ax, [0, 1, 2], [0, 1, 4])
ax.save("demo.svg")
x = Value(2.0)
y = x * x
y.backward()
print(x.grad) # 4.0
Examples
python examples/core_demo.py
python examples/frame_demo.py
python examples/plot_demo.py
python examples/neural_demo.py
Tests
pytest
Documentation
License
MIT — see LICENSE.
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
maten-0.1.0.tar.gz
(31.9 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
maten-0.1.0-py3-none-any.whl
(33.2 kB
view details)
File details
Details for the file maten-0.1.0.tar.gz.
File metadata
- Download URL: maten-0.1.0.tar.gz
- Upload date:
- Size: 31.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84b88dfda6c16cf1057ab9cb51cf23c69378792b076e0fa0672df288ae6084c8
|
|
| MD5 |
642de4c8d27be695d5e89eff85e80d78
|
|
| BLAKE2b-256 |
e6c0dfa8f621fce65043cb331118eca8b417252e0cec7189ac49932e599df873
|
File details
Details for the file maten-0.1.0-py3-none-any.whl.
File metadata
- Download URL: maten-0.1.0-py3-none-any.whl
- Upload date:
- Size: 33.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79bae234c0c615e74e64449a96a703fe4d9121708b8783a785b1f015183eeed0
|
|
| MD5 |
c8050582fb47ac746fdebeb5a04a370a
|
|
| BLAKE2b-256 |
6b3d46e5edd84e65e541a43c69fd895bb1c1c0336e114c84739b8d261ff06885
|