Skip to main content

CLI tool that generates a Cutter-Sanborn identifier, given a first and a last name.

Project description

CSAN: Cutter-Sanborn Number Generator

csan is a CLI tool that generates a Cutter-Sanborn identifier, given a first and a last name.

The Cutter-Sanborn identifier, commonly called "Cutter number", is an alphanumeric code used in library classification systems in order to arrange books alphabetically by author. It consists of the first letter of the author's last name followed by three-digit number derived from a predefined table. This system was originally developed by Charles Cutter, and revised by Kate Sanborn.

Installation

You can install this tool using pip or uv:

uv tool install csan
pip install csan

Usage

usage: csan [-h] -f FIRST_NAME -l LAST_NAME [-t TITLE] [-v]

Cutter-Sanborn identifier generator.

options:
  -h, --help            show this help message and exit
  -f FIRST_NAME, --first-name FIRST_NAME
  -l LAST_NAME, --last-name LAST_NAME
  -t TITLE, --title TITLE
  -v, --verbose

Examples

  • csan -f John -l Doe -> D649
  • csan -f John -l Doe -t "My Book" -> D649m
  • csan -f First -l Last -v -> L349, with log output to the console
  • csan -f Jorge -l "De la Cruz" -> D332

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

csan-0.1.0.tar.gz (68.1 kB view details)

Uploaded Source

Built Distribution

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

csan-0.1.0-py3-none-any.whl (67.9 kB view details)

Uploaded Python 3

File details

Details for the file csan-0.1.0.tar.gz.

File metadata

  • Download URL: csan-0.1.0.tar.gz
  • Upload date:
  • Size: 68.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for csan-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c0f55970fb44945b9aacb619ece2b21f2a9e2875ee3a555cd604ea87c514b4e3
MD5 36788b3e2dff5af918cca1c299152015
BLAKE2b-256 1dfaf8daadb48072eaf8e55790130e436c24c65d7e3f94577703526415c3b627

See more details on using hashes here.

File details

Details for the file csan-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: csan-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 67.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for csan-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebc7747daaef059c7d7a4b5d79f07638f6ef2af8dfd54a8b8b48a065afd6c01b
MD5 adc856f8220d137660b6880f71b9890b
BLAKE2b-256 db9ff875cf1281bfb8d649ba462b2e8761868ec677d2b0610eff9285401e5623

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