growthcharts 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,119 @@
1
+ Metadata-Version: 2.4
2
+ Name: growthcharts
3
+ Version: 0.1.0
4
+ Summary: Pediatric Growth Chart Analyzer
5
+ Home-page: https://drdehghani.ir/
6
+ Author: Javad Dehghani MD
7
+ Author-email: j.dehghani@gmail.com
8
+ Keywords: growth chart pediatric infant child BMI CDC
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Intended Audience :: Healthcare Industry
13
+ Classifier: Topic :: Scientific/Engineering :: Visualization
14
+ Requires-Python: >=3.7
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE.txt
17
+ Requires-Dist: pandas
18
+ Requires-Dist: matplotlib
19
+ Requires-Dist: scipy
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: classifier
23
+ Dynamic: description
24
+ Dynamic: description-content-type
25
+ Dynamic: home-page
26
+ Dynamic: keywords
27
+ Dynamic: license-file
28
+ Dynamic: requires-dist
29
+ Dynamic: requires-python
30
+ Dynamic: summary
31
+
32
+
33
+ **GrowthCharts** is a pediatric growth chart analyzer for infants (0–2 years) and children (2–20 years).
34
+ It provides Z-score calculation, percentiles, and growth chart visualization based on CDC growth standards.
35
+
36
+ ---
37
+
38
+ ## Installation
39
+
40
+ Install from PyPI (once uploaded):
41
+
42
+ ```bash
43
+ pip install growthcharts
44
+ Or install locally for development:
45
+
46
+ pip install -e .
47
+ Requirements:
48
+
49
+ pandas
50
+
51
+ matplotlib
52
+
53
+ scipy
54
+
55
+ Quickstart
56
+ Infant example (0–24 months)
57
+ from growthcharts import Infant
58
+
59
+ # Create an Infant object
60
+ baby = Infant(sex='m', age=6, wt=7.5, length=65.0, hc=42.0)
61
+
62
+ # Plot growth charts
63
+ baby.plot_wtage(title="Weight-for-Age")
64
+ baby.plot_lenageinf(title="Length-for-Age")
65
+ baby.plot_hcageinf(title="Head Circumference-for-Age")
66
+ baby.plot_wtleninf(title="Weight-for-Length")
67
+
68
+ # Calculate Z-scores and percentiles
69
+ print(baby.analyze_wtageinf()) # Example output: {'Z': -0.23, 'Percentile': 41.0}
70
+ print(baby.analyze_lenageinf()) # Example output: {'Z': 0.12, 'Percentile': 55.0}
71
+ print(baby.analyze_hcageinf()) # Example output: {'Z': 0.30, 'Percentile': 62.0}
72
+ print(baby.analyze_wtleninf()) # Example output: {'Z': -0.15, 'Percentile': 44.0}
73
+ Child example (2–20 years)
74
+ from growthcharts import Child
75
+
76
+ # Create a Child object
77
+ child = Child(sex='f', age=36, wt=15.5, length=95.0)
78
+
79
+ # Plot growth charts
80
+ child.plot_wtage(title="Weight-for-Age")
81
+ child.plot_lenage(title="Height-for-Age")
82
+ child.plot_bmiage(title="BMI-for-Age")
83
+
84
+ # Calculate Z-scores and percentiles
85
+ print(child.analyze_wtage()) # Example output: {'Z': 0.12, 'Percentile': 55.0}
86
+ print(child.analyze_lenage()) # Example output: {'Z': -0.08, 'Percentile': 47.0}
87
+ print(child.analyze_bmiage()) # Example output: {'Z': 0.05, 'Percentile': 52.0}
88
+ Classes
89
+ Patient
90
+ Base class storing sex, age, weight, and length.
91
+
92
+ Calculates BMI if both weight and length are provided.
93
+
94
+ Infant(Patient)
95
+ Handles infants 0–24 months:
96
+
97
+ Plotting methods: plot_wtage, plot_lenageinf, plot_hcageinf, plot_wtleninf
98
+
99
+ Analysis methods: analyze_wtageinf, analyze_lenageinf, analyze_hcageinf, analyze_wtleninf
100
+
101
+ Child(Patient)
102
+ Handles children 2–20 years:
103
+
104
+ Plotting methods: plot_wtage, plot_lenage, plot_bmiage
105
+
106
+ Analysis methods: analyze_wtage, analyze_lenage, analyze_bmiage
107
+
108
+ Data
109
+ CSV data files for growth standards are included with the package under the data/ folder.
110
+
111
+ Infant: wtageinf.csv, lenageinf.csv, hcageinf.csv, wtleninf.csv
112
+
113
+ Child: wtage.csv, lenage.csv, bmiage.csv
114
+
115
+ These are loaded automatically by the classes and do not need separate downloading.
116
+
117
+ ## License
118
+
119
+ This project is licensed under the MIT License.
@@ -0,0 +1,16 @@
1
+ growthcharts/__init__.py,sha256=uz86qu7pvRE6d6u9LzvkDEtgIdEIL3uNzg68UkM-qpI,158
2
+ growthcharts/child.py,sha256=tG-ZHsHW9z3o2gSKgAl2efSmT1ZBNTD7TWbAdzfOxuA,8049
3
+ growthcharts/infant.py,sha256=3V-oZMYwdsuXxAKWYKi4JFqStP6uc4El0Mge0vAANBw,10205
4
+ growthcharts/patient.py,sha256=k2YyI40Mqc1LLUeolYc_aErQ_GCsPkSYcw6xpoI04u4,2566
5
+ growthcharts/data/bmiage.csv,sha256=BmguJSxoZX18bEL0Ghm8iCXjtvfKQlxZM-ecSl15IRw,71966
6
+ growthcharts/data/hcageinf.csv,sha256=v34tevj9szbwsVnkgEFIQhNtqWDqanMLfnPRBgtFSek,11486
7
+ growthcharts/data/lenage.csv,sha256=RRMNKp18UMVKR-e6Ymtmxh1FVLwtkBGYzt2UGaU_clE,66087
8
+ growthcharts/data/lenageinf.csv,sha256=KegxT307ygmZYBY5WzSAowDmQcFLfYY-kI2Bu2nVo0U,11180
9
+ growthcharts/data/wtage.csv,sha256=NAbJ0SW8tpwGKp6E64wCCb_pNGVCvcHTCGQ3UNzCQbc,66456
10
+ growthcharts/data/wtageinf.csv,sha256=cyId1N6C65pwwebdRcm54oX6Gj1__0lxw7hcG-bl_u0,11446
11
+ growthcharts/data/wtleninf.csv,sha256=PdYWyNEa2K1UcJKUd2Ceb8RMsuX3uVSUBh4UE6ADQkk,18242
12
+ growthcharts-0.1.0.dist-info/licenses/LICENSE.txt,sha256=tk4TnSD1f1WzXTVNPfWR6fEpRm5hU1mZ0NHok-Rpoho,538
13
+ growthcharts-0.1.0.dist-info/METADATA,sha256=-zydaGS6izH4MSekyBaSz7PMqqi32u6TK4CUMVTrAK0,3586
14
+ growthcharts-0.1.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
15
+ growthcharts-0.1.0.dist-info/top_level.txt,sha256=NrQH8H-pBGbQNfr4ZP_EqjBsMZFiTVkMW5XILdC7xjc,13
16
+ growthcharts-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.10.2)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,12 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dr Dehghani
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ [... continues with full MIT license text ...]
@@ -0,0 +1 @@
1
+ growthcharts