count_dict
This is a Python package for count dictionaries.
Installation
Installation can be done through pip. You must have python version >= 3.7
pip install count-dict
Usage
The statement to import the package:
from count_dict_package import count_dict
Example:
>>> accumulated = count_dict()
>>> accumulated['x'] += 9
>>> accumulated.items()
dict_items([('x', 9)])
>>> accumulated = count_dict(10)
>>> accumulated['x'] += 9
>>> accumulated.items()
dict_items([('x', 19)])
>>> accumulated = defaultdict(count_dict)
>>> accumulated['x']['y'] += 9
>>> {'x': dict(accumulated['x'])}
{'x': {'y': 9}}
>>> accumulated = defaultdict(count_dict(10))
>>> accumulated['x']['y'] += 9
>>> {'x': dict(accumulated['x'])}
{'x': {'y': 19}}
Release files for count-dict 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| count_dict-1.1.1.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| count_dict-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / count_dict-1.1.1.tar.gz
| Download URL | count_dict-1.1.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9571156e9700705da017244905db6d9a54f7fc55584e04c331d5d8621a67dd5a
|
|
BLAKE2b-256 checksum How to use checksums |
e793cf3e16525e660f8b1e7473825933e8a3f2039e1b321d95e85cc89a689755
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
|
Release files / count_dict-1.1.1-py3-none-any.whl
| Download URL | count_dict-1.1.1-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ce3e141e2930d77a7f4040a4cee6d895fa4832fe6039fd630d71f66a043c257
|
|
BLAKE2b-256 checksum How to use checksums |
b499e46091f8f5f09ec4346e9b59da4f31838345878b54da0c102ac0be9c6757
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
|