# pip install justindex
# >>> from justindex import index
>>> index((len(s), s) for s in 'a b'.split())
defaultdict(<class 'list'>, {1: ['a', 'b']})
>>> index((len(s), s) for s in ''.split())
defaultdict(<class 'list'>, {})
>>> sorted(index((len(s), s) for s in 'a b cc'.split()).items())
[(1, ['a', 'b']), (2, ['cc'])]
Metadata
Release files for justindex 0.1.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 | |
|---|---|---|---|
| justindex-0.1.0.tar.gz | 903 Bytes | Details |
Release files / justindex-0.1.0.tar.gz
| Download URL | justindex-0.1.0.tar.gz |
|---|---|
| Size | 903 Bytes |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b98ab83a2ca9f2d545e4ba711099a076ff0385de9ccfcdad93a4731a5bbdbffa
|
|
BLAKE2b-256 checksum How to use checksums |
8dbbc95ce49f269972d07a55eb2e2f19c78eee285f75828e2a5210296847bb24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |