Skip to main content

Package manager and developer toolkit for Casio Prizm calculators

Project description

PanCalc Tools

Package manager, file converter, and developer toolkit for Casio Prizm calculators (fx-CG50, fx-CG100, and compatible models).

Part of the Pan Devs project.


๐Ÿ“– Quick Start (for Windows only)

Download the PanCalc-Tools-Installer.zip file in the latest release and click the .exe file to install PanCalc Tools.

Windows may say that it just protected you from the exe file, but click on "learn more" (or similar) and continue the installation. Then, accept that it can change your settings/device (when the pop-up window appear, click "yes"), and continue the installation.

It is highly recomended to click/select every box.

And no worries, it is safe.

๐Ÿ’ก Tips:


Features

  • ๐Ÿ“ฆ Add-in management โ€” Install, remove, and verify add-ins from the pan-devs/pancalc-registry with automatic SHA256 + PGP signature verification.
  • ๐Ÿ–ผ๏ธ File conversion โ€” Convert images (PNG, JPG, BMP, GIF, TIFF, WebP) and documents (PDF, DOCX) to Casio .g3p photo format or plain text.
  • ๐Ÿ“ค Push to calculator โ€” Copy converted files to the calculator's pthings/ directory (sorted into fotos/ for .g3p images and textos/ for .txt files).
  • ๐Ÿ” Calculator browsing โ€” Browse the full calculator filesystem, identify known add-ins, and inspect storage usage.
  • ๐Ÿ” Cryptographic verification โ€” SHA256 checksums on every download and PGP signature verification against the official Pan Devs key (auto-downloaded, no manual setup required).
  • ๐Ÿ–ฅ๏ธ Dual interface โ€” Full-featured Terminal UI (Textual) and a complete CLI (click) for scripting.
  • ๐Ÿ”‘ PGP key management โ€” Import, trust, list, and untrust additional keys for advanced users.

๐Ÿ“ Filename Limitations: The Casio calculator cannot read files with spaces or non-English characters (accents, special symbols) in their names. Files are automatically sanitized when pushed (spaces โ†’ _, accents removed, etc.).

๐Ÿ“„ TXT File Reading: To view TXT files on your calculator, you need to install the "Utilities" add-in from the registry first. This add-in provides a file viewer for text documents on your Casio calculator (and also a JPEG viewer).


Expanded start guide (for other OS and developers/advanced users)

1. Install dependencies

Before installing PanCalc Tools, you need a few things depending on your OS.

๐ŸชŸ Windows

Python 3.10+

  1. Go to python.org and download the latest Python 3 installer.
  2. Important: check the box "Add Python to PATH" at the bottom of the installer screen before clicking Install.
  3. Open Command Prompt (search "cmd" in the Start menu).
  4. Type python --version to confirm.

Microsoft Visual C++ Redistributable โ€” needed for PDF/DOCX conversion (pymupdf):

Download and install, then restart Command Prompt.

Gpg4win โ€” needed for add-in signature verification:

  1. Download from gpg4win.org
  2. Run the installer (default options are fine).
  3. Confirm it works: open Command Prompt and type gpg --version.

๐ŸŽ macOS

Python 3.10+

  1. Go to python.org and download the latest Python 3 installer.
  2. Open the downloaded file and follow the steps.
  3. Open the Terminal app (Cmd+Space โ†’ "Terminal").
  4. Type python3 --version to confirm.

Xcode Command Line Tools โ€” needed for some dependencies (pymupdf):

xcode-select --install

If you see "already installed", you're good.

GnuPG โ€” needed for add-in signature verification. Install one of:

  • GPG Suite (recommended, includes GUI): gpgtools.org
  • Homebrew (if you use it): brew install gnupg

๐Ÿง Linux

Python 3.10+ โ€” open a terminal and check:

python3 --version

If you see Python 3.10 or higher, you're ready. If not:

  • Ubuntu / Debian / Mint:
    sudo apt install python3 python3-pip
    
  • Arch / Manjaro:
    sudo pacman -S python python-pip
    
  • Fedora:
    sudo dnf install python3 python3-pip
    

GnuPG โ€” needed for add-in signature verification. Check if it's installed:

gpg --version

If not found:

  • Ubuntu / Debian / Mint: sudo apt install gnupg
  • Arch / Manjaro: sudo pacman -S gnupg
  • Fedora: sudo dnf install gnupg2

2. Install PanCalc Tools

Open a terminal (search for "cmd" in Windows) and run:

python -m pip install pancalc-tools

On Linux/macOS, use python3 -m pip if python is not found.

Windows only โ€” also install pywin32 for automatic calculator eject:

python -m pip install "pancalc-tools[windows]"

Linux users: if you get an externally-managed-environment error, use:

python -m pip install --user pancalc-tools

3. Launch the program

Open a terminal (or Command Prompt on Windows) and type:

pcalc

The interactive menu will open.

โš ๏ธ Windows โ€” if pcalc is not recognized: Python's Scripts directory may not be in your PATH. Add %APPDATA%\Python\Python3xx\Scripts to your PATH (replace 3xx with your Python version, e.g. Python314), or use the fallback command:

python -m pcalc

4. Connect your calculator

๐ŸชŸ Windows

  1. Turn on your Casio calculator.
  2. Press F1 (USB mass storage mode).
  3. Connect it with a USB cable.
  4. It will appear as a new drive in File Explorer (e.g. D:\ or E:\). PanCalc Tools will detect it automatically.

๐ŸŽ macOS

  1. Turn on your Casio calculator.
  2. Press F1 (USB mass storage mode).
  3. Connect it with a USB cable.
  4. It will appear as a drive in Finder and be detected automatically.

๐Ÿง Linux

  1. Turn on your Casio calculator.
  2. Press F1 (USB mass storage mode).
  3. Connect it with a USB cable.
  4. PanCalc Tools will detect it automatically.

If the calculator is not detected, try running udisksctl mount -b /dev/sdb1 (replace sdb1 with the correct device โ€” check with lsblk).


After connecting your calculator, navigate to the Catch option in the pcalc interface to browse its filesystem.

Installation

Requirements

  • Python 3.10+
  • A Casio Prizm calculator connected via USB in mass storage mode (F1).

From PyPI

python -m pip install pancalc-tools

On Windows, also install pywin32 for automatic drive detection and eject:

python -m pip install pancalc-tools[windows]

Note: PGP signature verification requires gpg (GnuPG) installed on your system. See the Quick Start section above for installation instructions per OS.

From source

git clone https://github.com/pan-devs/pancalc-tools.git
cd pancalc-tools
pip install -e .

Dependencies

Package Purpose
click CLI framework
rich Terminal formatting & progress bars
textual Terminal UI framework
Pillow Image processing
pymupdf PDF & DOCX parsing
requests HTTP downloads
python-gnupg PGP signature verification
questionary Interactive prompts
platformdirs Cross-platform config paths

Quick Start

Terminal UI

pcalc

Opens the interactive TUI with a sidebar for navigation:

Button Action
๐Ÿ  Home Dashboard with calculator info & help
๐Ÿ“‚ Catch Browse calculator filesystem
๐Ÿ“ฅ Install Install add-ins from the registry
๐Ÿ—‘๏ธ Remove Uninstall add-ins or delete pthings/ files
๐Ÿ”„ Convert Convert images/documents to G3P/TXT
๐Ÿ“ค Push Copy converted files to calculator
โœ… Verify Check SHA256 of installed add-ins
๐Ÿ“‹ Registry Browse available add-ins
๐Ÿ”‘ PGP Keys Manage cryptographic keys
๐Ÿ”„ Update Registry Force-refresh add-in list from GitHub
โ๏ธ Eject Safely unmount calculator

CLI

pcalc install khicas
pcalc verify
pcalc convert image.png
pcalc convpush
pcalc catch
pcalc eject

See all commands:

pcalc --help

CLI Reference

pcalc list / search / info

pcalc list                    # List all add-ins in the registry
pcalc search calculator       # Search by keyword
pcalc info khicas             # Show add-in details

pcalc install

pcalc install khicas utilities   # Install multiple add-ins
pcalc install --yes khicas       # Skip confirmation prompts
pcalc install --overwrite khicas # Overwrite existing files

pcalc remove / rm

pcalc remove khicas              # By add-in name
pcalc rm pthings/fotos/photo.g3p # By path (relative to mount)

pcalc verify

pcalc verify                     # Verify ALL add-ins on the calculator
pcalc verify khicas utilities    # Verify specific add-ins

Scans the calculator directly โ€” no local cache needed.

pcalc convert

pcalc convert photo.png          # Image โ†’ G3P
pcalc convert doc.pdf            # PDF โ†’ interactive prompt (G3P/TXT/Both)
pcalc convert --g3p doc.pdf      # PDF โ†’ G3P only
pcalc convert --txt doc.pdf      # PDF โ†’ TXT only
pcalc convert --both doc.pdf     # PDF โ†’ G3P + TXT

pcalc convpush

pcalc convpush                   # Copy all converted files to calculator

Files go to pthings/fotos/ (.g3p) and pthings/textos/ (.txt). Filenames are automatically sanitized (accents stripped, spaces โ†’ _, special characters removed).

pcalc catch / calc

pcalc catch                  # Browse calculator filesystem

pcalc eject

pcalc eject                   # Safely unmount calculator

Registry

pcalc update-registry         # Force-refresh add-in registry from GitHub

PGP Keys

pcalc import-key mykey.asc    # Import a PGP public key
pcalc list-keys               # List all keys and trust status
pcalc trust-key <fingerprint> # Trust a key for signature verification
pcalc untrust-key <fingerprint>

Configuration

Settings are stored via platformdirs and can be managed programmatically:

Key Default Description
registry_url GitHub repo URL Add-in registry source
cache_ttl_hours 6 Registry cache duration
auto_update true Auto-refresh registry on install
confirm_install true Ask before installing
confirm_remove true Ask before removing

Input / Output Layout

pancalc-tools/
โ”œโ”€โ”€ convert/            โ† Drop files here for conversion
โ”‚   โ”œโ”€โ”€ images/         (PNG, JPG, BMP, GIF, TIFF, WebP)
โ”‚   โ””โ”€โ”€ documents/      (PDF, DOCX)
โ”œโ”€โ”€ converted/          โ† Converted files appear here
โ”‚   โ”œโ”€โ”€ g3p/            (.g3p files)
โ”‚   โ””โ”€โ”€ txt/            (.txt files)

Both the TUI Convert and Push views scan these directories automatically.

Security

SHA256 Verification

Every add-in in the registry includes a sha256 field. The installer computes the SHA256 of every downloaded/extracted file and aborts on mismatch.

PGP Signatures

All official registry files are signed with the Pan Devs PGP key. The key is auto-downloaded from the registry on first use โ€” no manual import or trust setup required.

  • Key fingerprint: C7AD 9689 E894 B261 7EAB CFE2 1A37 0E1B 68A1 94A8
  • Algorithm: Ed25519

For zip-type add-ins (e.g., Nesizm), verification downloads the zip, extracts the .g3a, and computes the SHA of the extracted file โ€” no local cache dependency.

Architecture

See ARCHITECTURE.md for a detailed overview of the codebase structure, module responsibilities, and data flow.

License

PAN DEVS NON-COMMERCIAL ATTRIBUTION LICENSE v1.0

  • Non-commercial use is free with attribution required.
  • Commercial use requires a separate paid license. Contact pan.devs@proton.me.
  • AI/ML training on this code is explicitly prohibited.

See LICENSE.md for the full text.

Contributing

Pull requests and issues are welcome. For major changes, please open an issue first to discuss what you'd like to change.

Development setup

git clone https://github.com/pan-devs/pancalc-tools.git
cd pancalc-tools
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

Links

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

pancalc_tools-0.2.2.tar.gz (52.2 kB view details)

Uploaded Source

Built Distribution

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

pancalc_tools-0.2.2-py3-none-any.whl (56.3 kB view details)

Uploaded Python 3

File details

Details for the file pancalc_tools-0.2.2.tar.gz.

File metadata

  • Download URL: pancalc_tools-0.2.2.tar.gz
  • Upload date:
  • Size: 52.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pancalc_tools-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f4b43e2fa0a984765c17fb1338d31a39b260e433e1066d9bb44f8278ee04cf07
MD5 fed9e22670903c3e6ba09d71957960e5
BLAKE2b-256 2488bf9a2e2c7134a6ac7de67ee32b771d1a9f36a0988a4de2a66502593f7c92

See more details on using hashes here.

Provenance

The following attestation bundles were made for pancalc_tools-0.2.2.tar.gz:

Publisher: publish.yml on pan-devs/pancalc-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pancalc_tools-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: pancalc_tools-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 56.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pancalc_tools-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d9e0e15f57b88fa8ef5ae26a663fd82bc10028c89e26e7dbb91280f605df0dd
MD5 9f8097f5688fc3c59db266fd79b5f7c8
BLAKE2b-256 669ffba363bd3bbd86890afc2c8b10f31d46e5e6853d587108eb4b092da2a629

See more details on using hashes here.

Provenance

The following attestation bundles were made for pancalc_tools-0.2.2-py3-none-any.whl:

Publisher: publish.yml on pan-devs/pancalc-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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