Skip to main content

A package to count categories and tests from a JSON file

Project description

json_category_counter

A Python package to count categories and tests from a JSON file.

Installation

You can install this package using pip:

Usage

from json_category_counter import count_category_and_total

json_file = 'path_to_your_json_file.json'
key_one = 'Mathematicstest'

total, category_dict = count_category_and_total(json_file, key_one)

print("Total count:", total)
print("Category counts:", category_dict)

Project details


Download files

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

Source Distribution

json_category_counter-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

json_category_counter-0.1.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file json_category_counter-0.1.0.tar.gz.

File metadata

  • Download URL: json_category_counter-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for json_category_counter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 86513f9a0e5cba33b7e852266c152849ebcb08953f79bc77a2620372836f4c42
MD5 d7cbb7ce800bcd4cdfd4510a821e9b59
BLAKE2b-256 60a57346cf2991e66ec5e506bf734afe6974c463d0eedaa51fedf157974be9a1

See more details on using hashes here.

File details

Details for the file json_category_counter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for json_category_counter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e0ec2acb9711ab65158c22fb31632a4c326468ca55226763ba96182665d2cb7
MD5 7b04cb22acc32a1bc378c5188925faec
BLAKE2b-256 dde62cd5a2ac607f4b1d2f0b40e488b27639f9ff0ff4c52b17e362543e518880

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page