Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stacklib-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for stacklib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 425e1bda22d20299da0af42f61fe8cdd744f3d773cbc71449a2b4b31adaf151e
MD5 5bf5e333667c315de1049c6b30269183
BLAKE2b-256 33e14f96c61160a123788c5b76d09cb603235c42e0f9fdc74306879281723a50

See more details on using hashes here.

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

Hashes for stacklib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6150294edbce190caf3a0952ba714bd86cd34f5550a1d8e2eecd0fb453b672e7
MD5 e55fd3b4a0e1d53bbe3048dc0c0ea2cb
BLAKE2b-256 d93f42d6a331ab1e2b4315d6b338f4ebd315b60cce393aa6936401046f08901a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page