Skip to main content

Soroban Abacus

A simple Soroban abacus supporting positive integers.

Installation

uv venv --pytnon=3.14
uv pip install soroban-abacus

Usage

from soroban import Soroban

abacus = Soroban(ncolumns=5)
print(abacus)

0: ●○ | ○○○○
1: ●○ | ○○○○
2: ●○ | ○○○○
3: ●○ | ○○○○
4: ●○ | ○○○○

abacus.from_decimal(17)
print(abacus)

0: ○● | ●●○○
1: ●○ | ●○○○
2: ●○ | ○○○○
3: ●○ | ○○○○
4: ●○ | ○○○○

abacus.to_svg("soroban1.svg")

from soroban import Soroban

s = Soroban(12)
s.from_decimal(1234567890)
s.to_svg("soroban2.svg")

Metadata

Release files for soroban-abacus 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for soroban-abacus 0.1.0
File Size Uploaded
soroban_abacus-0.1.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for soroban-abacus 0.1.0
File Interpreter ABI Platform
soroban_abacus-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / soroban_abacus-0.1.0.tar.gz

Download URL soroban_abacus-0.1.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
506bf891e69b44db97586a0a322c4892018211a05a386b34baf8abd2dcf61add
BLAKE2b-256 checksum
How to use checksums
10a89c5672630b87195c027316377e6e6f961fc664ac99018b4e4980a6625ebe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.3 cpython/3.12.8 HTTPX/0.28.1

Release files / soroban_abacus-0.1.0-py3-none-any.whl

Download URL soroban_abacus-0.1.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e42a658975468ea6256e7aff578246a40fe8af223fcb63a7cec30e6cb944494f
BLAKE2b-256 checksum
How to use checksums
21624c9336dd0405d47bb8b362600229ea3289564dba6cafcbaf1bcacd600f5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.3 cpython/3.12.8 HTTPX/0.28.1

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page