Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Count dictionary package in python.

Project description


PyPI PyPI - Status GitHub Release Date Build Status Code Intelligence Status Language grade: Python Codacy Badge Scrutinizer Code Quality PyPI - Downloads PyPI - Python Version PyPI - License

This is a Python package for count dictionaries.

Welcome to complete the documentation.


Installation can be done through pip. You must have python version >= 3.6.

pip install count-dict


The statement to import the package:

from count_dict_package import count_dict


from count_dict_package import *


>>> 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}}

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for count-dict, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size count_dict-1.0.1-py3-none-any.whl (15.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size count_dict-1.0.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page