collegeplan 0.1.0__tar.gz

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.
Files changed (56) hide show
  1. collegeplan-0.1.0/.github/workflows/ci.yml +36 -0
  2. collegeplan-0.1.0/.github/workflows/docs.yml +39 -0
  3. collegeplan-0.1.0/.github/workflows/publish.yml +35 -0
  4. collegeplan-0.1.0/.gitignore +12 -0
  5. collegeplan-0.1.0/CHANGELOG.md +28 -0
  6. collegeplan-0.1.0/CLAUDE.md +82 -0
  7. collegeplan-0.1.0/LICENSE +201 -0
  8. collegeplan-0.1.0/PKG-INFO +91 -0
  9. collegeplan-0.1.0/README.md +57 -0
  10. collegeplan-0.1.0/SPEC.md +845 -0
  11. collegeplan-0.1.0/docs/api/allocation.md +3 -0
  12. collegeplan-0.1.0/docs/api/assumptions.md +3 -0
  13. collegeplan-0.1.0/docs/api/cost-profiles.md +3 -0
  14. collegeplan-0.1.0/docs/api/engine.md +3 -0
  15. collegeplan-0.1.0/docs/api/exceptions.md +3 -0
  16. collegeplan-0.1.0/docs/api/glide-paths.md +3 -0
  17. collegeplan-0.1.0/docs/api/index.md +17 -0
  18. collegeplan-0.1.0/docs/api/models.md +3 -0
  19. collegeplan-0.1.0/docs/api/reporting.md +3 -0
  20. collegeplan-0.1.0/docs/api/sensitivity.md +3 -0
  21. collegeplan-0.1.0/docs/api/solver.md +3 -0
  22. collegeplan-0.1.0/docs/api/validators.md +3 -0
  23. collegeplan-0.1.0/docs/changelog.md +28 -0
  24. collegeplan-0.1.0/docs/concepts/cost-profiles.md +43 -0
  25. collegeplan-0.1.0/docs/concepts/glide-paths.md +69 -0
  26. collegeplan-0.1.0/docs/concepts/overview.md +53 -0
  27. collegeplan-0.1.0/docs/concepts/sensitivity.md +51 -0
  28. collegeplan-0.1.0/docs/getting-started/installation.md +41 -0
  29. collegeplan-0.1.0/docs/getting-started/quickstart.md +97 -0
  30. collegeplan-0.1.0/docs/index.md +51 -0
  31. collegeplan-0.1.0/mkdocs.yml +74 -0
  32. collegeplan-0.1.0/pyproject.toml +59 -0
  33. collegeplan-0.1.0/src/collegeplan/__init__.py +76 -0
  34. collegeplan-0.1.0/src/collegeplan/allocation.py +58 -0
  35. collegeplan-0.1.0/src/collegeplan/assumptions.py +40 -0
  36. collegeplan-0.1.0/src/collegeplan/cost_profiles.py +42 -0
  37. collegeplan-0.1.0/src/collegeplan/engine.py +278 -0
  38. collegeplan-0.1.0/src/collegeplan/exceptions.py +13 -0
  39. collegeplan-0.1.0/src/collegeplan/glide_path.py +92 -0
  40. collegeplan-0.1.0/src/collegeplan/models.py +175 -0
  41. collegeplan-0.1.0/src/collegeplan/py.typed +0 -0
  42. collegeplan-0.1.0/src/collegeplan/reporting.py +61 -0
  43. collegeplan-0.1.0/src/collegeplan/sensitivity.py +107 -0
  44. collegeplan-0.1.0/src/collegeplan/solver.py +135 -0
  45. collegeplan-0.1.0/src/collegeplan/validators.py +108 -0
  46. collegeplan-0.1.0/tests/__init__.py +0 -0
  47. collegeplan-0.1.0/tests/conftest.py +72 -0
  48. collegeplan-0.1.0/tests/test_allocation.py +39 -0
  49. collegeplan-0.1.0/tests/test_assumptions.py +31 -0
  50. collegeplan-0.1.0/tests/test_engine.py +174 -0
  51. collegeplan-0.1.0/tests/test_glide_path.py +133 -0
  52. collegeplan-0.1.0/tests/test_golden.py +86 -0
  53. collegeplan-0.1.0/tests/test_reporting.py +62 -0
  54. collegeplan-0.1.0/tests/test_sensitivity.py +48 -0
  55. collegeplan-0.1.0/tests/test_solver.py +96 -0
  56. collegeplan-0.1.0/tests/test_validators.py +99 -0
@@ -0,0 +1,36 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ lint:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: actions/setup-python@v5
18
+ with:
19
+ python-version: "3.13"
20
+ - run: pip install -e ".[dev]"
21
+ - run: ruff check src/ tests/
22
+ - run: ruff format --check src/ tests/
23
+ - run: mypy src/collegeplan/
24
+
25
+ test:
26
+ runs-on: ubuntu-latest
27
+ strategy:
28
+ matrix:
29
+ python-version: ["3.11", "3.12", "3.13"]
30
+ steps:
31
+ - uses: actions/checkout@v4
32
+ - uses: actions/setup-python@v5
33
+ with:
34
+ python-version: ${{ matrix.python-version }}
35
+ - run: pip install -e ".[dev]"
36
+ - run: pytest --cov=collegeplan --cov-report=xml --cov-report=term-missing
@@ -0,0 +1,39 @@
1
+ name: Docs
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+ pages: write
11
+ id-token: write
12
+
13
+ concurrency:
14
+ group: pages
15
+ cancel-in-progress: true
16
+
17
+ jobs:
18
+ build:
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ - uses: actions/setup-python@v5
23
+ with:
24
+ python-version: "3.13"
25
+ - run: pip install -e ".[docs]"
26
+ - run: mkdocs build --strict
27
+ - uses: actions/upload-pages-artifact@v3
28
+ with:
29
+ path: site
30
+
31
+ deploy:
32
+ needs: build
33
+ runs-on: ubuntu-latest
34
+ environment:
35
+ name: github-pages
36
+ url: ${{ steps.deployment.outputs.page_url }}
37
+ steps:
38
+ - id: deployment
39
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,35 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ contents: read
9
+ id-token: write
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-python@v5
17
+ with:
18
+ python-version: "3.13"
19
+ - run: pip install build
20
+ - run: python -m build
21
+ - uses: actions/upload-artifact@v4
22
+ with:
23
+ name: dist
24
+ path: dist/
25
+
26
+ publish:
27
+ needs: build
28
+ runs-on: ubuntu-latest
29
+ environment: pypi
30
+ steps:
31
+ - uses: actions/download-artifact@v4
32
+ with:
33
+ name: dist
34
+ path: dist/
35
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,12 @@
1
+ __pycache__/
2
+ *.pyc
3
+ *.egg-info/
4
+ .venv/
5
+ .coverage
6
+ .pytest_cache/
7
+ dist/
8
+ build/
9
+ .mypy_cache/
10
+ .ruff_cache/
11
+ .DS_Store
12
+ site/
@@ -0,0 +1,28 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.0] - 2025-03-18
9
+
10
+ ### Added
11
+
12
+ - Year-by-year college cost projection engine in nominal dollars.
13
+ - Single-child projection via `project_child_plan()`.
14
+ - Multi-child household projection with shared funding pool via `project_household_plan()`.
15
+ - Bisection solver to find required annual savings via `solve_required_savings()`.
16
+ - Sensitivity sweep across assumption grids via `run_sensitivity()`.
17
+ - Three built-in cost profiles: private school, public in-state, public out-of-state.
18
+ - Age-based glide path support with Vanguard Target Enrollment preset.
19
+ - Shared fund allocation policies: EQUAL_SPLIT, OLDEST_FIRST, PROPORTIONAL_TO_NEED.
20
+ - Fisher equation for real/nominal return conversion via `normalize_assumptions()`.
21
+ - `deflate()` helper for converting nominal projections to today's dollars.
22
+ - JSON and dict serialization via `to_dict()` and `to_json()`.
23
+ - Comprehensive input validation with descriptive error messages.
24
+ - Frozen dataclass models with `slots=True` for all domain objects.
25
+ - PEP 561 `py.typed` marker for type checker support.
26
+ - Full test suite (63 tests) with strict mypy and ruff linting.
27
+
28
+ [0.1.0]: https://github.com/engineerinvestor/collegeplan/releases/tag/v0.1.0
@@ -0,0 +1,82 @@
1
+ # CLAUDE.md
2
+
3
+ This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+ ## What This Is
6
+
7
+ A pure-Python, zero-dependency college cost projection and savings planning engine. It projects future college costs, simulates 529/savings account growth, solves for required savings via bisection, and runs sensitivity sweeps. Designed as a standalone library that can later be embedded into the Summitward product.
8
+
9
+ ## Engineering Standards
10
+
11
+ - Python 3.10+
12
+ - Type hints on all functions
13
+ - `ruff` for linting and formatting, `mypy` for type checking
14
+ - `pytest` for testing with coverage
15
+ - Semantic versioning (v0.1 MVP → v0.5 → v1.0)
16
+
17
+ ## Git Configuration
18
+
19
+ - **Remote:** https://github.com/engineerinvestor/collegeplan
20
+ - **Commit as:** Engineer Investor (`egr.investor@gmail.com`)
21
+ - Always use `git -c user.name="Engineer Investor" -c user.email="egr.investor@gmail.com" commit` when committing
22
+
23
+ ## Writing Style
24
+
25
+ - **No em-dashes or double-dashes.** Never use `—` or `--` as punctuation in prose, markdown, or notebooks. Use a comma, period, colon, or semicolon instead.
26
+
27
+ ## Commands
28
+
29
+ ```bash
30
+ pip install -e ".[dev]" # Install package + dev deps (pytest, pytest-cov, ruff, mypy)
31
+ pytest # Run all tests
32
+ pytest tests/test_engine.py # Run one test file
33
+ pytest -k "test_name" # Run a single test by name
34
+ pytest --cov=collegeplan # Run with coverage
35
+ ruff check src/ tests/ # Lint (must pass clean)
36
+ ruff format --check src/ tests/ # Format check
37
+ mypy src/collegeplan/ # Type check (strict mode, must pass clean)
38
+ ```
39
+
40
+ All code must pass `ruff check` and `mypy --strict` before committing. No CI pipeline exists yet.
41
+
42
+ ### Ruff
43
+
44
+ Configured in `pyproject.toml`. Rules: E, F, W, I (isort), UP, B (bugbear), SIM, RUF. Line length 100. Target Python 3.11. `__all__` must be sorted (RUF022). Use `ruff check --fix` for auto-fixable issues.
45
+
46
+ ### Mypy
47
+
48
+ Configured in `pyproject.toml` with `strict = true`. Covers `src/collegeplan/` only (not tests). All public functions need type annotations. Use `Any` sparingly and only where truly needed (e.g., serialization).
49
+
50
+ ## Architecture
51
+
52
+ The package uses a `src/` layout (`src/collegeplan/`). All domain models are **frozen dataclasses** with `slots=True, kw_only=True`. Dollar amounts are `float` internally; rounding happens only at output boundaries. Rates are decimals (0.05, not 5).
53
+
54
+ ### Data flow
55
+
56
+ ```
57
+ Input models (Child, CostProfile, Assumptions, HouseholdFund)
58
+ → validators.py (raises ValidationError on bad input)
59
+ → assumptions.py (normalizes real/nominal returns via Fisher equation)
60
+ → engine.py (year-by-year simulation producing ChildProjectionResult / HouseholdProjectionResult)
61
+ → solver.py (bisection root-finder wrapping engine to solve for required annual savings)
62
+ → sensitivity.py (Cartesian product sweep over assumption grid, calls solver per scenario)
63
+ → reporting.py (dict/JSON serialization with dollar rounding)
64
+ ```
65
+
66
+ ### Key design decisions
67
+
68
+ - **Annual time steps.** The engine simulates year-by-year, not monthly. Monthly savings targets are derived as `annual / 12`.
69
+ - **Nominal dollars internally.** All projections run in nominal terms. Real-dollar conversions use `assumptions.deflate()`. The Fisher equation converts between real and nominal returns.
70
+ - **Immutable models.** Frozen dataclasses everywhere. Modifications use `dataclasses.replace()` to create new instances.
71
+ - **Withdrawal capping.** If a child's account can't cover a year's cost, the withdrawal is capped at available balance. The remainder becomes explicit shortfall (balances never go negative).
72
+ - **Household projection.** Runs per-child projections first (without shared fund), then simulates the shared pool year-by-year, allocating to cover per-child shortfalls via `allocation.py` policies (EQUAL_SPLIT, OLDEST_FIRST, PROPORTIONAL_TO_NEED).
73
+ - **Solver.** Bisection over a monotonic objective (more contribution = higher funding ratio). Upper bound is heuristically set then doubled until sufficient. Converges to $1 tolerance by default.
74
+ - **Assumptions must provide exactly one of** `expected_return_nominal` or `expected_return_real`, not both.
75
+
76
+ ### Modules not yet implemented
77
+
78
+ - `cli.py`: YAML plan file loader and CLI (P1 scope)
79
+
80
+ ## Spec Reference
81
+
82
+ `SPEC.md` is the authoritative requirements document. It defines the domain model fields, validation rules (section 14), calculation framework (section 8), public API signatures (section 9), output schemas (section 10), and MVP scope (section 22, P0/P1/P2).
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025 Engineer Investor
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,91 @@
1
+ Metadata-Version: 2.4
2
+ Name: collegeplan
3
+ Version: 0.1.0
4
+ Summary: A deterministic college cost projection and savings planning engine
5
+ Project-URL: Homepage, https://engineerinvestor.github.io/collegeplan/
6
+ Project-URL: Repository, https://github.com/engineerinvestor/collegeplan
7
+ Project-URL: Documentation, https://engineerinvestor.github.io/collegeplan/
8
+ Project-URL: Issues, https://github.com/engineerinvestor/collegeplan/issues
9
+ Project-URL: Changelog, https://engineerinvestor.github.io/collegeplan/changelog/
10
+ Author-email: Engineer Investor <egr.investor@gmail.com>
11
+ License-Expression: Apache-2.0
12
+ License-File: LICENSE
13
+ Keywords: 529,college,education,financial-planning,savings
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: Financial and Insurance Industry
17
+ Classifier: License :: OSI Approved :: Apache Software License
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Office/Business :: Financial
23
+ Classifier: Typing :: Typed
24
+ Requires-Python: >=3.11
25
+ Provides-Extra: dev
26
+ Requires-Dist: mypy; extra == 'dev'
27
+ Requires-Dist: pytest; extra == 'dev'
28
+ Requires-Dist: pytest-cov; extra == 'dev'
29
+ Requires-Dist: ruff; extra == 'dev'
30
+ Provides-Extra: docs
31
+ Requires-Dist: mkdocs-material; extra == 'docs'
32
+ Requires-Dist: mkdocstrings[python]; extra == 'docs'
33
+ Description-Content-Type: text/markdown
34
+
35
+ # collegeplan
36
+
37
+ [![CI](https://github.com/engineerinvestor/collegeplan/actions/workflows/ci.yml/badge.svg)](https://github.com/engineerinvestor/collegeplan/actions/workflows/ci.yml)
38
+ [![PyPI](https://img.shields.io/pypi/v/collegeplan)](https://pypi.org/project/collegeplan/)
39
+ [![Python](https://img.shields.io/pypi/pyversions/collegeplan)](https://pypi.org/project/collegeplan/)
40
+ [![License](https://img.shields.io/github/license/engineerinvestor/collegeplan)](LICENSE)
41
+ [![Docs](https://img.shields.io/badge/docs-GitHub%20Pages-blue)](https://engineerinvestor.github.io/collegeplan/)
42
+
43
+ A pure-Python, zero-dependency college cost projection and savings planning engine.
44
+
45
+ ## Install
46
+
47
+ ```bash
48
+ pip install collegeplan
49
+ ```
50
+
51
+ ## Quick Start
52
+
53
+ ```python
54
+ from collegeplan import (
55
+ Child, Assumptions, project_child_plan,
56
+ make_private_school_profile,
57
+ )
58
+
59
+ child = Child(
60
+ name="Alice",
61
+ current_age=5,
62
+ cost_profile=make_private_school_profile(), # $65k, 5% growth
63
+ start_age=18,
64
+ attendance_years=4,
65
+ current_529_balance=25_000,
66
+ annual_contribution=6_000,
67
+ )
68
+ assumptions = Assumptions(expected_return_nominal=0.07, general_inflation=0.03)
69
+
70
+ result = project_child_plan(child, assumptions)
71
+ print(f"Total cost: ${result.projected_total_cost:,.0f}")
72
+ print(f"Funded: {result.funded_ratio:.1%}")
73
+ ```
74
+
75
+ ## Documentation
76
+
77
+ Full documentation is available at [engineerinvestor.github.io/collegeplan](https://engineerinvestor.github.io/collegeplan/).
78
+
79
+ ## Development
80
+
81
+ ```bash
82
+ pip install -e ".[dev]"
83
+ pytest
84
+ pytest --cov=collegeplan
85
+ ruff check src/ tests/
86
+ mypy src/collegeplan/
87
+ ```
88
+
89
+ ## License
90
+
91
+ Apache 2.0. See [LICENSE](LICENSE) for details.
@@ -0,0 +1,57 @@
1
+ # collegeplan
2
+
3
+ [![CI](https://github.com/engineerinvestor/collegeplan/actions/workflows/ci.yml/badge.svg)](https://github.com/engineerinvestor/collegeplan/actions/workflows/ci.yml)
4
+ [![PyPI](https://img.shields.io/pypi/v/collegeplan)](https://pypi.org/project/collegeplan/)
5
+ [![Python](https://img.shields.io/pypi/pyversions/collegeplan)](https://pypi.org/project/collegeplan/)
6
+ [![License](https://img.shields.io/github/license/engineerinvestor/collegeplan)](LICENSE)
7
+ [![Docs](https://img.shields.io/badge/docs-GitHub%20Pages-blue)](https://engineerinvestor.github.io/collegeplan/)
8
+
9
+ A pure-Python, zero-dependency college cost projection and savings planning engine.
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ pip install collegeplan
15
+ ```
16
+
17
+ ## Quick Start
18
+
19
+ ```python
20
+ from collegeplan import (
21
+ Child, Assumptions, project_child_plan,
22
+ make_private_school_profile,
23
+ )
24
+
25
+ child = Child(
26
+ name="Alice",
27
+ current_age=5,
28
+ cost_profile=make_private_school_profile(), # $65k, 5% growth
29
+ start_age=18,
30
+ attendance_years=4,
31
+ current_529_balance=25_000,
32
+ annual_contribution=6_000,
33
+ )
34
+ assumptions = Assumptions(expected_return_nominal=0.07, general_inflation=0.03)
35
+
36
+ result = project_child_plan(child, assumptions)
37
+ print(f"Total cost: ${result.projected_total_cost:,.0f}")
38
+ print(f"Funded: {result.funded_ratio:.1%}")
39
+ ```
40
+
41
+ ## Documentation
42
+
43
+ Full documentation is available at [engineerinvestor.github.io/collegeplan](https://engineerinvestor.github.io/collegeplan/).
44
+
45
+ ## Development
46
+
47
+ ```bash
48
+ pip install -e ".[dev]"
49
+ pytest
50
+ pytest --cov=collegeplan
51
+ ruff check src/ tests/
52
+ mypy src/collegeplan/
53
+ ```
54
+
55
+ ## License
56
+
57
+ Apache 2.0. See [LICENSE](LICENSE) for details.