LIBrary to convert integers into Spreadsheet COLumn names, and vice versa
Project description
INSTALLATION
$ pip3 install libscol
HELP
$ pydoc libscol
NAME
libscol - LIBrary to convert integers into Spreadsheet COLumn names, and vice versa
PACKAGE CONTENTS
FUNCTIONS
int2scol(num)
convert integer num into spreadsheet column name
>>> for n in [-2, -1, 0, 1, 2, 25, 26, 27, 28, 701, 702, 703, 704]: print((n, int2scol(n)))
(-2, '-C')
(-1, '-B')
(0, 'A')
(1, 'B')
(2, 'C')
(25, 'Z')
(26, 'AA')
(27, 'AB')
(28, 'AC')
(701, 'ZZ')
(702, 'AAA')
(703, 'AAB')
(704, 'AAC')
scol2int(scol)
convert spreadsheet column name scol into integer
>>> all(n == scol2int(int2scol(n)) for n in range(-100000, 100000))
True
VERSION
0.9.1
FILE
/home/xxxx/Documents/pypi/libscol/libscol/__init__.py
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
libscol-0.9.1.tar.gz
(1.9 kB
view details)
Built Distribution
File details
Details for the file libscol-0.9.1.tar.gz
.
File metadata
- Download URL: libscol-0.9.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0841b2ad8b993e01d1e24680c50be88d2d311a81f1aebcd166a9fa4864e5e5ab |
|
MD5 | 0194ce46aad2e3d0ee4d90064f5850c2 |
|
BLAKE2b-256 | 9b1fa0d120d4ae622914e3615ac9190cb54ab22ef48572a858ffba34b6538212 |
File details
Details for the file libscol-0.9.1-py3-none-any.whl
.
File metadata
- Download URL: libscol-0.9.1-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f1bf276ef6b4a487847e9fc8993d426163381482b4d5aabf57054d53e61cb74 |
|
MD5 | b37b2fd19a9e62561f0c610fd5434eda |
|
BLAKE2b-256 | c40f243aec35eb1bb1c1b7052432aad86b2d5ebe9b4b4881c79569c4f8f02742 |