A chainable stack-based utility library
Project description
StackLib
A chainable, stack-based utility library for Python.
Installation
pip install StackLib
Basic usage
from stacklib import Stack
stack = Stack()
stack.push(10).push(5).add()
print(f'stack: {stack}')
Features
- Chainable stack operations
- Functional helpers (map, filter, apply-at)
- Logical operations (sand, sor, snot)
- Stack manipulation (dup, swap, rot, over)
- Snapshots and restore
Why it exists
Inspired by stack-based languages (Forth, PostScript) and because i thought it was a fun project.
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
stacklib-0.1.0.tar.gz
(3.6 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 stacklib-0.1.0.tar.gz.
File metadata
- Download URL: stacklib-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
425e1bda22d20299da0af42f61fe8cdd744f3d773cbc71449a2b4b31adaf151e
|
|
| MD5 |
5bf5e333667c315de1049c6b30269183
|
|
| BLAKE2b-256 |
33e14f96c61160a123788c5b76d09cb603235c42e0f9fdc74306879281723a50
|
File details
Details for the file stacklib-0.1.0-py3-none-any.whl.
File metadata
- Download URL: stacklib-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6150294edbce190caf3a0952ba714bd86cd34f5550a1d8e2eecd0fb453b672e7
|
|
| MD5 |
e55fd3b4a0e1d53bbe3048dc0c0ea2cb
|
|
| BLAKE2b-256 |
d93f42d6a331ab1e2b4315d6b338f4ebd315b60cce393aa6936401046f08901a
|