A Soroban abacus implementation
Project description
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")
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
soroban_abacus-0.1.0.tar.gz
(4.0 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 soroban_abacus-0.1.0.tar.gz.
File metadata
- Download URL: soroban_abacus-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.12.8 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
506bf891e69b44db97586a0a322c4892018211a05a386b34baf8abd2dcf61add
|
|
| MD5 |
867d6fe72c06dca1adbafde8854ff69c
|
|
| BLAKE2b-256 |
10a89c5672630b87195c027316377e6e6f961fc664ac99018b4e4980a6625ebe
|
File details
Details for the file soroban_abacus-0.1.0-py3-none-any.whl.
File metadata
- Download URL: soroban_abacus-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.12.8 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e42a658975468ea6256e7aff578246a40fe8af223fcb63a7cec30e6cb944494f
|
|
| MD5 |
9f10a63c3f6c02b4683e65789d2d10fa
|
|
| BLAKE2b-256 |
21624c9336dd0405d47bb8b362600229ea3289564dba6cafcbaf1bcacd600f5f
|