Correctly capitalize and sort the titles and authors of books.
Basic Usage
To capitalize the title of a book:
>>> from book_cataloguing import capitalize_title
>>> capitalize_title("the lord of the rings")
'The Lord of the Rings'
>>> capitalize_title("the hobbit: or, there and back again")
'The Hobbit: Or, There and Back Again'
To capitalize the author of a book:
>>> from book_cataloguing import capitalize_author
>>> capitalize_author("HILDA VAN STOCKUM")
'Hilda van Stockum'
>>> capitalize_author("pope john paul ii")
'Pope John Paul II'
To sort some book titles case-insensitively:
>>> from book_cataloguing import title_sort >>> titles = [ ... "the restaurant at the end of the universe", ... "so long, and thanks for all the fish", ... "Mostly Harmless" ... ] >>> title_sort(titles) ['Mostly Harmless', 'the restaurant at the end of the universe', 'so long, and thanks for all the fish'] >>> title_sort(titles, reverse=True) ['so long, and thanks for all the fish', 'the restaurant at the end of the universe', 'Mostly Harmless']
Please see the online documentation at http://book-cataloguing.readthedocs.io for complete details on these functions and many others.
Metadata
Release files for book-cataloguing 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| book_cataloguing-1.0.0.tar.gz | 19.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| book_cataloguing-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.5 kB
Release files / book_cataloguing-1.0.0.tar.gz
| Download URL | book_cataloguing-1.0.0.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d55c5f8a6cb5c08cbf1b509a5be20099e2ec6cf1a684c6cbaf883407ca02b35
|
|
BLAKE2b-256 checksum How to use checksums |
44da7d0b016038b56675cce08e30feb001859e29ea5ba1669c37f64260da1ca4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / book_cataloguing-1.0.0-py3-none-any.whl
| Download URL | book_cataloguing-1.0.0-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17ec97946af15dec5b1f7f556e649b158456c87867bc34c05e57f034d19169b5
|
|
BLAKE2b-256 checksum How to use checksums |
820c4dc860fa2a1dac7cf5ff279212678a54705ab8a36efad7507a4515aac845
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|