dividendcase 0.2.0__tar.gz → 0.4.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 (277) hide show
  1. dividendcase-0.4.0/CHANGELOG.md +56 -0
  2. {dividendcase-0.2.0 → dividendcase-0.4.0}/CONTRIBUTING.md +5 -3
  3. {dividendcase-0.2.0 → dividendcase-0.4.0}/PKG-INFO +11 -5
  4. {dividendcase-0.2.0 → dividendcase-0.4.0}/README.md +8 -4
  5. {dividendcase-0.2.0 → dividendcase-0.4.0}/SECURITY.md +1 -1
  6. dividendcase-0.4.0/docs/roadmap.md +184 -0
  7. {dividendcase-0.2.0 → dividendcase-0.4.0}/pyproject.toml +4 -1
  8. dividendcase-0.4.0/scripts/demo_server.py +306 -0
  9. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/dividends.py +9 -1
  10. dividendcase-0.4.0/src/dividendcase/api/v1/imports.py +376 -0
  11. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/portfolio.py +58 -1
  12. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/portfolios.py +14 -7
  13. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/router.py +3 -1
  14. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/search.py +20 -50
  15. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/stocks.py +40 -1
  16. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/user.py +8 -0
  17. dividendcase-0.4.0/src/dividendcase/api/v1/withholding.py +73 -0
  18. dividendcase-0.4.0/src/dividendcase/crud/dividend.py +54 -0
  19. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/crud/stock.py +16 -15
  20. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/main.py +19 -1
  21. dividendcase-0.4.0/src/dividendcase/migrations/versions/0004_withholding_overrides.py +27 -0
  22. dividendcase-0.4.0/src/dividendcase/migrations/versions/0005_latest_price_on_stocks.py +26 -0
  23. dividendcase-0.4.0/src/dividendcase/migrations/versions/0006_daily_price_bars.py +52 -0
  24. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/models/__init__.py +2 -0
  25. dividendcase-0.4.0/src/dividendcase/models/price_bar.py +24 -0
  26. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/models/stock.py +4 -0
  27. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/models/user_preferences.py +2 -0
  28. dividendcase-0.4.0/src/dividendcase/schemas/imports.py +99 -0
  29. dividendcase-0.4.0/src/dividendcase/schemas/price.py +25 -0
  30. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/schemas/user_investment.py +11 -0
  31. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/schemas/user_preferences.py +23 -1
  32. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/services/benchmark.py +28 -15
  33. dividendcase-0.4.0/src/dividendcase/services/brokers/__init__.py +114 -0
  34. dividendcase-0.4.0/src/dividendcase/services/brokers/angelone.py +300 -0
  35. dividendcase-0.4.0/src/dividendcase/services/brokers/files.py +66 -0
  36. dividendcase-0.4.0/src/dividendcase/services/brokers/revolut.py +237 -0
  37. dividendcase-0.4.0/src/dividendcase/services/brokers/zerodha.py +109 -0
  38. dividendcase-0.4.0/src/dividendcase/services/isin.py +117 -0
  39. dividendcase-0.4.0/src/dividendcase/services/prices.py +128 -0
  40. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/services/refresh.py +11 -7
  41. dividendcase-0.4.0/src/dividendcase/services/withholding.py +147 -0
  42. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/services/yahoo_fetcher.py +237 -77
  43. {dividendcase-0.2.0/src/dividendcase/web/_not-found → dividendcase-0.4.0/src/dividendcase/web/404}/index.html +1 -1
  44. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/404.html +1 -1
  45. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/__next.__PAGE__.txt +2 -2
  46. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/__next._full.txt +2 -2
  47. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/__next._tree.txt +2 -2
  48. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/03enjl9i8xq1t.js +1 -0
  49. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/08makkef0bu1i.js +1 -0
  50. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/09ywwcrhnx_ri.js +1 -0
  51. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/0_8d3bxeiewoj.js +1 -0
  52. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/1-ift1mtsuqvh.js → dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/0nei72sf3mzvg.js +1 -1
  53. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/0p09y2i4l0d52.js +1 -0
  54. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/0vbmhtu5s7j3s.js +1 -0
  55. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/0y-da-j6v0pm_.js +1 -0
  56. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/12djlf-7x8an3.js +1 -0
  57. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/1639caa05-l57.js +1 -0
  58. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/1gths0u6vj9rg.js +1 -0
  59. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/1ja40m7ilifgv.js +1 -0
  60. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/1kboy5-wday0p.js +1 -0
  61. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/1z1674napa9xo.js +1 -0
  62. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/33-cg7-y-5zm5.js → dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/20675g6ow3ddm.js +1 -1
  63. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/1s5tue3q2i-8b.js → dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/2gzo2ql9bajlu.js +1 -1
  64. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/2rlnd-musgxo0.css +4 -0
  65. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/30dq9wehbl5jw.js +1 -0
  66. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/344xuja9m37ly.js +1 -0
  67. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/36s7ub_lac4fp.js +1 -0
  68. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/37z5hnjc3ccev.js +1 -0
  69. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/3r3-5efqm6ccd.js +1 -0
  70. dividendcase-0.4.0/src/dividendcase/web/_next/static/chunks/3v8yx2clex44s.js +1 -0
  71. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_not-found/__next._full.txt +2 -2
  72. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_not-found/__next._not-found.__PAGE__.txt +2 -2
  73. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_not-found/__next._tree.txt +2 -2
  74. {dividendcase-0.2.0/src/dividendcase/web/404 → dividendcase-0.4.0/src/dividendcase/web/_not-found}/index.html +1 -1
  75. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_not-found/index.txt +2 -2
  76. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/__next._full.txt +4 -4
  77. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/__next._tree.txt +2 -2
  78. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/__next.dashboard.__PAGE__.txt +4 -4
  79. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/about/__next._full.txt +4 -4
  80. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/about/__next._tree.txt +2 -2
  81. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/about/__next.dashboard.about.__PAGE__.txt +4 -4
  82. dividendcase-0.4.0/src/dividendcase/web/dashboard/about/index.html +1 -0
  83. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/about/index.txt +4 -4
  84. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/calendar/__next._full.txt +4 -4
  85. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/calendar/__next._tree.txt +2 -2
  86. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/calendar/__next.dashboard.calendar.__PAGE__.txt +4 -4
  87. dividendcase-0.4.0/src/dividendcase/web/dashboard/calendar/index.html +1 -0
  88. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/calendar/index.txt +4 -4
  89. dividendcase-0.4.0/src/dividendcase/web/dashboard/charts/__next._full.txt +26 -0
  90. dividendcase-0.4.0/src/dividendcase/web/dashboard/charts/__next._tree.txt +5 -0
  91. dividendcase-0.4.0/src/dividendcase/web/dashboard/charts/__next.dashboard.charts.__PAGE__.txt +30 -0
  92. dividendcase-0.4.0/src/dividendcase/web/dashboard/charts/index.html +1 -0
  93. dividendcase-0.4.0/src/dividendcase/web/dashboard/charts/index.txt +26 -0
  94. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/compare/__next._full.txt +4 -4
  95. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/compare/__next._tree.txt +2 -2
  96. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/compare/__next.dashboard.compare.__PAGE__.txt +4 -4
  97. dividendcase-0.4.0/src/dividendcase/web/dashboard/compare/index.html +1 -0
  98. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/compare/index.txt +4 -4
  99. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/data/__next._full.txt +4 -4
  100. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/data/__next._tree.txt +2 -2
  101. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/data/__next.dashboard.data.__PAGE__.txt +4 -4
  102. dividendcase-0.4.0/src/dividendcase/web/dashboard/data/index.html +1 -0
  103. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/data/index.txt +4 -4
  104. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/drip/__next._full.txt +4 -4
  105. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/drip/__next._tree.txt +2 -2
  106. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/drip/__next.dashboard.drip.__PAGE__.txt +4 -4
  107. dividendcase-0.4.0/src/dividendcase/web/dashboard/drip/index.html +1 -0
  108. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/drip/index.txt +4 -4
  109. dividendcase-0.4.0/src/dividendcase/web/dashboard/index.html +1 -0
  110. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/index.txt +4 -4
  111. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/investments/__next._full.txt +4 -4
  112. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/investments/__next._tree.txt +2 -2
  113. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/investments/__next.dashboard.investments.__PAGE__.txt +4 -4
  114. dividendcase-0.4.0/src/dividendcase/web/dashboard/investments/index.html +1 -0
  115. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/investments/index.txt +4 -4
  116. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/investments/portfolio/__next._full.txt +4 -4
  117. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/investments/portfolio/__next._tree.txt +2 -2
  118. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/investments/portfolio/__next.dashboard.investments.portfolio.__PAGE__.txt +4 -4
  119. dividendcase-0.4.0/src/dividendcase/web/dashboard/investments/portfolio/index.html +1 -0
  120. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/investments/portfolio/index.txt +4 -4
  121. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/screener/__next._full.txt +4 -4
  122. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/screener/__next._tree.txt +2 -2
  123. dividendcase-0.4.0/src/dividendcase/web/dashboard/screener/__next.dashboard.screener.__PAGE__.txt +30 -0
  124. dividendcase-0.4.0/src/dividendcase/web/dashboard/screener/index.html +1 -0
  125. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/screener/index.txt +4 -4
  126. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/settings/__next._full.txt +4 -4
  127. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/settings/__next._tree.txt +2 -2
  128. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/settings/__next.dashboard.settings.__PAGE__.txt +4 -4
  129. dividendcase-0.4.0/src/dividendcase/web/dashboard/settings/index.html +1 -0
  130. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/settings/index.txt +4 -4
  131. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/stock/__next._full.txt +4 -4
  132. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/stock/__next._tree.txt +2 -2
  133. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/stock/__next.dashboard.stock.__PAGE__.txt +4 -4
  134. dividendcase-0.4.0/src/dividendcase/web/dashboard/stock/index.html +1 -0
  135. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/stock/index.txt +4 -4
  136. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/watchlist/__next._full.txt +4 -4
  137. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/watchlist/__next._tree.txt +2 -2
  138. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/watchlist/__next.dashboard.watchlist.__PAGE__.txt +4 -4
  139. dividendcase-0.4.0/src/dividendcase/web/dashboard/watchlist/index.html +1 -0
  140. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/dashboard/watchlist/index.txt +4 -4
  141. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/index.html +1 -1
  142. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/index.txt +2 -2
  143. {dividendcase-0.2.0 → dividendcase-0.4.0}/tests/conftest.py +97 -3
  144. dividendcase-0.4.0/tests/documents.py +26 -0
  145. dividendcase-0.4.0/tests/test_angelone_import.py +257 -0
  146. {dividendcase-0.2.0 → dividendcase-0.4.0}/tests/test_api.py +145 -2
  147. {dividendcase-0.2.0 → dividendcase-0.4.0}/tests/test_benchmark.py +29 -0
  148. dividendcase-0.4.0/tests/test_broker_imports.py +155 -0
  149. dividendcase-0.4.0/tests/test_prices.py +341 -0
  150. dividendcase-0.4.0/tests/test_revolut_import.py +162 -0
  151. dividendcase-0.4.0/tests/test_withholding.py +113 -0
  152. dividendcase-0.4.0/tests/test_yahoo_fetcher.py +73 -0
  153. {dividendcase-0.2.0 → dividendcase-0.4.0}/uv.lock +105 -1
  154. dividendcase-0.2.0/CHANGELOG.md +0 -31
  155. dividendcase-0.2.0/src/dividendcase/crud/dividend.py +0 -57
  156. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/0c87cux8r1ss5.js +0 -1
  157. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/0g-bslilw6tiu.js +0 -1
  158. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/0lfebwmsk92ym.js +0 -1
  159. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/0ozczpntpufql.js +0 -1
  160. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/0vm7tw6itjxih.js +0 -1
  161. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/10oy-ed_zrrd9.js +0 -1
  162. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/1g926afh71co9.css +0 -4
  163. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/1q2bxv0xj7vse.js +0 -1
  164. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/1xrz4-jij46i_.js +0 -1
  165. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/24f36pdyspt8c.js +0 -1
  166. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/2_gbzm-n4fs0v.js +0 -1
  167. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/2aqpz6z087bo4.js +0 -1
  168. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/2ft48jvqut7tm.js +0 -1
  169. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/2hixbsi924bp7.js +0 -2
  170. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/2hoqsdgpu5ma3.js +0 -1
  171. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/2o72ftwupypgx.js +0 -1
  172. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/3cju952ndgmmn.js +0 -1
  173. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/3il2yixgws-43.js +0 -1
  174. dividendcase-0.2.0/src/dividendcase/web/_next/static/chunks/431n5e16l34_0.js +0 -1
  175. dividendcase-0.2.0/src/dividendcase/web/dashboard/about/index.html +0 -1
  176. dividendcase-0.2.0/src/dividendcase/web/dashboard/calendar/index.html +0 -1
  177. dividendcase-0.2.0/src/dividendcase/web/dashboard/compare/index.html +0 -1
  178. dividendcase-0.2.0/src/dividendcase/web/dashboard/data/index.html +0 -1
  179. dividendcase-0.2.0/src/dividendcase/web/dashboard/drip/index.html +0 -1
  180. dividendcase-0.2.0/src/dividendcase/web/dashboard/index.html +0 -1
  181. dividendcase-0.2.0/src/dividendcase/web/dashboard/investments/index.html +0 -1
  182. dividendcase-0.2.0/src/dividendcase/web/dashboard/investments/portfolio/index.html +0 -1
  183. dividendcase-0.2.0/src/dividendcase/web/dashboard/screener/__next.dashboard.screener.__PAGE__.txt +0 -30
  184. dividendcase-0.2.0/src/dividendcase/web/dashboard/screener/index.html +0 -1
  185. dividendcase-0.2.0/src/dividendcase/web/dashboard/settings/index.html +0 -1
  186. dividendcase-0.2.0/src/dividendcase/web/dashboard/stock/index.html +0 -1
  187. dividendcase-0.2.0/src/dividendcase/web/dashboard/watchlist/index.html +0 -1
  188. {dividendcase-0.2.0 → dividendcase-0.4.0}/.dockerignore +0 -0
  189. {dividendcase-0.2.0 → dividendcase-0.4.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  190. {dividendcase-0.2.0 → dividendcase-0.4.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  191. {dividendcase-0.2.0 → dividendcase-0.4.0}/.github/ISSUE_TEMPLATE/idea.yml +0 -0
  192. {dividendcase-0.2.0 → dividendcase-0.4.0}/.github/workflows/build.yml +0 -0
  193. {dividendcase-0.2.0 → dividendcase-0.4.0}/.github/workflows/release.yml +0 -0
  194. {dividendcase-0.2.0 → dividendcase-0.4.0}/.github/workflows/tests.yml +0 -0
  195. {dividendcase-0.2.0 → dividendcase-0.4.0}/.gitignore +0 -0
  196. {dividendcase-0.2.0 → dividendcase-0.4.0}/.python-version +0 -0
  197. {dividendcase-0.2.0 → dividendcase-0.4.0}/Dockerfile +0 -0
  198. {dividendcase-0.2.0 → dividendcase-0.4.0}/LICENSE +0 -0
  199. {dividendcase-0.2.0 → dividendcase-0.4.0}/scripts/build_web.py +0 -0
  200. {dividendcase-0.2.0 → dividendcase-0.4.0}/scripts/check_dist.py +0 -0
  201. {dividendcase-0.2.0 → dividendcase-0.4.0}/scripts/smoke_test.py +0 -0
  202. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/__init__.py +0 -0
  203. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/__main__.py +0 -0
  204. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/__init__.py +0 -0
  205. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/__init__.py +0 -0
  206. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/data.py +0 -0
  207. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/deps.py +0 -0
  208. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/excel_io.py +0 -0
  209. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/fx.py +0 -0
  210. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/health.py +0 -0
  211. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/investment.py +0 -0
  212. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/api/v1/watchlist.py +0 -0
  213. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/cli.py +0 -0
  214. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/config.py +0 -0
  215. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/crud/__init__.py +0 -0
  216. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/database.py +0 -0
  217. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/migrate.py +0 -0
  218. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/migrations/env.py +0 -0
  219. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/migrations/script.py.mako +0 -0
  220. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/migrations/versions/0001_baseline.py +0 -0
  221. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/migrations/versions/0002_check_for_updates.py +0 -0
  222. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/migrations/versions/0003_fx_rates_and_setup.py +0 -0
  223. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/models/dividend.py +0 -0
  224. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/models/fx_rate.py +0 -0
  225. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/models/scheduler_run.py +0 -0
  226. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/models/user_investment.py +0 -0
  227. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/models/user_portfolio.py +0 -0
  228. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/models/user_watchlist.py +0 -0
  229. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/models/user_watchlist_group.py +0 -0
  230. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/scheduler/__init__.py +0 -0
  231. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/scheduler/tasks.py +0 -0
  232. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/schemas/__init__.py +0 -0
  233. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/schemas/dividend.py +0 -0
  234. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/schemas/investment.py +0 -0
  235. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/schemas/stock.py +0 -0
  236. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/schemas/watchlist.py +0 -0
  237. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/services/__init__.py +0 -0
  238. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/services/derived.py +0 -0
  239. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/services/fx.py +0 -0
  240. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/services/universe.py +0 -0
  241. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/services/updates.py +0 -0
  242. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/.gitkeep +0 -0
  243. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/chunks/0cz1d0mv5g_q7.js +0 -0
  244. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/chunks/0nmuijbkm3ipd.js +0 -0
  245. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/chunks/13-u82nfffhrp.js +0 -0
  246. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/chunks/138wmfea-yk08.js +0 -0
  247. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/chunks/14jt62gawmtd9.js +0 -0
  248. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/chunks/1l-w55cdq629z.js +0 -0
  249. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/chunks/2i51e627rllld.js +0 -0
  250. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/chunks/3mc6dra1m0098.js +0 -0
  251. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/chunks/453cd1tlxz5wi.js +0 -0
  252. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/chunks/turbopack-1che7mqzsn0nh.js +0 -0
  253. {dividendcase-0.2.0/src/dividendcase/web/_next/static/jykyXrPtkR3XGdQ9oSYUT → dividendcase-0.4.0/src/dividendcase/web/_next/static/e3q66JpAxrxWST71Rbp6T}/_buildManifest.js +0 -0
  254. {dividendcase-0.2.0/src/dividendcase/web/_next/static/jykyXrPtkR3XGdQ9oSYUT → dividendcase-0.4.0/src/dividendcase/web/_next/static/e3q66JpAxrxWST71Rbp6T}/_clientMiddlewareManifest.js +0 -0
  255. {dividendcase-0.2.0/src/dividendcase/web/_next/static/jykyXrPtkR3XGdQ9oSYUT → dividendcase-0.4.0/src/dividendcase/web/_next/static/e3q66JpAxrxWST71Rbp6T}/_ssgManifest.js +0 -0
  256. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2 +0 -0
  257. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/53b9e256198e5412-s.390ncx5urfkfu.woff2 +0 -0
  258. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/5ce348bf30bf5439-s.31988l_ccedte.woff2 +0 -0
  259. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2 +0 -0
  260. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/7178b3e590c64307-s.21jp631_3pja2.woff2 +0 -0
  261. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2 +0 -0
  262. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2 +0 -0
  263. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/7ebf22b5a21034f8-s.p.3j3877k49yy0l.woff2 +0 -0
  264. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2 +0 -0
  265. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2 +0 -0
  266. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2 +0 -0
  267. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/fc0a7394b875fa43-s.2ytmazkdrg7t9.woff2 +0 -0
  268. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2 +0 -0
  269. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/_next/static/media/icon.0kxjuvpgwz_c6.svg +0 -0
  270. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/icon.svg +0 -0
  271. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/logo-full.svg +0 -0
  272. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/logo-icon.svg +0 -0
  273. {dividendcase-0.2.0 → dividendcase-0.4.0}/src/dividendcase/web/tickers.json +0 -0
  274. {dividendcase-0.2.0 → dividendcase-0.4.0}/tests/test_cli.py +0 -0
  275. {dividendcase-0.2.0 → dividendcase-0.4.0}/tests/test_derived_and_updates.py +0 -0
  276. {dividendcase-0.2.0 → dividendcase-0.4.0}/tests/test_fx_and_setup.py +0 -0
  277. {dividendcase-0.2.0 → dividendcase-0.4.0}/tests/test_migrations.py +0 -0
@@ -0,0 +1,56 @@
1
+ # Changelog
2
+
3
+ All notable changes to DividendCase. Versions follow [semantic versioning](https://semver.org/);
4
+ while the version starts with 0, a minor release (0.2, 0.3…) may change things.
5
+
6
+ ## 0.4.0
7
+
8
+ - **Import from Zerodha:** in Import, choose Zerodha and add the tradebooks you download from Console (Reports, Tradebook; CSV or Excel, one per year). The app matches each sale with the earliest buy of the same stock, combines buys made on the same day, and shows the holdings it worked out before adding anything. Lots already in the app are skipped, so importing again adds only what's new. DividendCase never connects to Zerodha: the files are read on your computer and not kept.
9
+ - **Import from Angel One:** in Import, choose Angel One and pick the holdings file you download from Angel One ("Your Holding Details"). It's protected with a password, which you type in the app; the file and the password aren't kept. CSV and PDF copies of the file work too. The file names holdings by ISIN, so the app looks each one up in NSE's public lists of securities (then Yahoo, for BSE-only companies); anything unlisted or delisted is shown so you can type a ticker or leave it out. The file has no purchase dates, only how much of each holding you've had for more than a year, so those shares are dated a year back and recent ones on the file's date, and you can change any date before adding.
10
+ - **Import from Revolut:** in Import, choose Revolut and add the account statement for your stocks account (PDF, or the Excel/CSV version), covering the time since you opened it. Buys and sells become holdings, matched first in, first out like the Zerodha import; cash top-ups, dividends and fees are listed but not imported. The app checks what the trades add up to against the holdings Revolut lists in the statement, and says so when they differ (a split or a transfer, say) or when the statement starts after you already held shares.
11
+ - Imports from a broker can go into a new portfolio, named in the import (the broker's name to start with); a portfolio already named after the broker is suggested first.
12
+ - **Price charts in the screener:** choose a row to open the stock's price under it, as a line, an area, candles or OHLC bars, over a month to ten years, with the volume below. Stock pages have the same chart, with ex-dividend dates marked. Prices are downloaded from Yahoo Finance the first time a stock is charted and again when they're more than 12 hours old; if Yahoo doesn't answer, the stored prices are shown and labelled with their age.
13
+ - **Advanced charts** (after Screener in the sidebar): one stock's price with simple and exponential moving averages, Bollinger bands, yield bands and ex-dividend dates, and panes for volume, trailing yield, RSI, MACD and drawdown; daily, weekly or monthly bars and a log scale. Under it: price change, total return, the part from dividends, the yearly rate, volatility and the deepest fall over the range, and three looks at dividends against the price: what the price did on ex-dividend dates, dividend growth against the price year by year, and the yield on a date against the return over the following year. Your choice of indicators is remembered on this computer.
14
+ - **A new look:** the toolbar, sidebar, menus and dialogs are glass that floats over the page, buttons are capsules, and each row of key numbers sits on one panel. Labels are in plain sentence case instead of small capitals, and the ticker tiles that repeated each ticker are gone.
15
+ - **Holdings that pay no dividends now have a value.** Index funds, gold ETFs and growth stocks are stored with their price and company profile, so Holdings shows their price, value and total return, and "Current value" counts every stock. Before, they showed "—" and the Income page said they were still waiting for data. The diversification charts show them as "No dividends" under payment frequency. The screener still lists dividend payers only.
16
+ - Current value uses each stock's latest close, not the price on its last dividend date.
17
+ - The dividends-by-year chart shows this year and the first year on record as partial, instead of calling an unfinished year a cut.
18
+ - The yield-over-time chart shows each payment as a yearly yield, so it lines up with the TTM yield above it (it showed the yield of a single payment).
19
+ - The comparison with the index uses the app's own controls and explains itself in plain words.
20
+ - After an upgrade the new version shows straight away: the browser checks each page with the app instead of showing the copy it kept.
21
+ - Adding a holding no longer fails with an error when the same stock is being downloaded in the background at that moment (just added to a watchlist, say): saving a stock and its dividends is now one step, so two downloads can't clash.
22
+ - The "Beat their index" comparison reads the stocks after downloading the indices, so a stock updated during the download is judged on its new data.
23
+ - "Report a problem" fills in Docker, not uv, as the install method when you run the Docker image.
24
+ - CONTRIBUTING.md: DividendCase takes ideas and bug reports as issues and writes every change itself, so pull requests are open to the maintainers only.
25
+
26
+ ## 0.3.0
27
+
28
+ - **Income after tax:** the Income and Calendar pages show dividends after the tax the paying country withholds (switch to "Before tax" any time). Rates for residents of Ireland, the UK, India, Canada, Australia and the US, by treaty where one applies, with the paperwork each assumes (a W-8BEN for US dividends, for example). Countries it doesn't cover yet are shown before tax and named. Settings lists every rate and lets you set the one your broker actually uses; stock pages show what's withheld for you.
29
+ - Stock suggestions (Compare, Watchlists, DRIP, Add holding) no longer get cut off by the card or dialog they're in.
30
+
31
+ ## 0.2.0
32
+
33
+ - **Screener:** a "Beat their index" filter and a "Vs index" column: price change plus dividends over the last ten years (or since the first stored payment, if at least three years ago) against the stock's local index over the same period, recomputed weekly and after each screener refresh.
34
+ - **Docker image** at `ghcr.io/dividendcase/dividendcase`, for Intel and ARM.
35
+ - **Update notices:** the terminal now says when a new version is out, with the command to run, and "What's new" opens that version's release notes. Docker installs get Docker instructions.
36
+ - **Feedback:** a Send feedback link in the sidebar and "Report a problem" / "Suggest an idea" in the ⌘K palette open GitHub forms with your version filled in. CONTRIBUTING.md and SECURITY.md.
37
+
38
+ ## 0.1.1
39
+
40
+ - The browser now opens once DividendCase is ready. On the first start after installing or updating, which can take up to a minute while Python prepares its libraries, it used to open too early and show "This site can't be reached". The terminal now says it's starting and when it's ready.
41
+ - The website's install steps no longer say "coming soon".
42
+
43
+ ## 0.1.0
44
+
45
+ The first release of DividendCase as an app that runs on your own computer.
46
+
47
+ - **Income home:** what your holdings should pay over the next 12 months, month by month, with upcoming payments, where the income comes from and a few plain-English notes.
48
+ - **One currency:** totals across USD, GBP, EUR, INR, CAD, AUD and more are converted into your home currency with the European Central Bank's daily reference rates. Past amounts use the rate on their date, future income the latest rate.
49
+ - **First-run setup:** tax residence, home currency and which markets the screener downloads.
50
+ - **Stock pages:** 10 years of dividend history, TTM and forward yield, a safety score, dividend growth and growth streaks.
51
+ - **Screener:** index members of the S&P 500, NIFTY 50, TSX 60, FTSE 100, ISEQ 20 and ASX 200, plus high-yield groups, filtered by market, yield and how often they pay.
52
+ - **Portfolios:** up to four, with individual purchase lots in any currency, performance against a benchmark and diversification charts.
53
+ - **Income calendar, watchlists, side-by-side comparison and a DRIP calculator.**
54
+ - **Excel import and export** of portfolios, holdings and watchlists, and an Excel report.
55
+ - **⌘K search** for any stock, page or action.
56
+ - **Your data stays on your computer:** one SQLite file, market data fetched by your computer from Yahoo Finance for your own use, a copy saved before every upgrade, and a daily check for new versions that you can turn off.
@@ -4,7 +4,7 @@ Thanks for helping. DividendCase is young, and the most useful thing right now i
4
4
 
5
5
  ## Reporting a problem or an idea
6
6
 
7
- - **Something isn't working:** [open a bug report](https://github.com/dividendcase/dividendcase/issues/new?template=bug_report.yml). The app's **Send feedback** link (in the sidebar) fills in your version for you.
7
+ - **Something isn't working:** [open a bug report](https://github.com/dividendcase/dividendcase/issues/new?template=bug_report.yml). **Report a problem** in the app's ⌘K menu fills in your version and system for you.
8
8
  - **An idea:** [describe what you're trying to do](https://github.com/dividendcase/dividendcase/issues/new?template=idea.yml).
9
9
  - **A security problem:** please don't open a public issue; see [SECURITY.md](SECURITY.md).
10
10
 
@@ -12,7 +12,9 @@ Please leave out anything private: no portfolio files, account numbers or unblur
12
12
 
13
13
  ## Code
14
14
 
15
- Before writing code, **open an issue** to talk it through, so your time isn't spent on something that clashes with work in progress. The terms for outside code contributions are still being settled, so pull requests from outside contributors may have to wait for them.
15
+ DividendCase is open source, but not open to outside code: we write every change ourselves, so pull requests are open to the maintainers only. If you'd like something built or fixed, **open an issue** describing what you need and why, and we'll pick it up from there. Please describe the change in words rather than pasting code; we write it from the description.
16
+
17
+ You're free to run, study and change the code for yourself under the [licence](LICENSE). The notes below are how we build and check it.
16
18
 
17
19
  ### Setting up
18
20
 
@@ -29,7 +31,7 @@ uv run dividendcase # http://127.0.0.1:8765/dashboard/
29
31
 
30
32
  For interface work, run the API with `uv run dividendcase --no-browser` and the interface with hot reload with `npm run dev:app` (http://localhost:3000).
31
33
 
32
- ### Before opening a pull request
34
+ ### Checks before a change
33
35
 
34
36
  ```bash
35
37
  uv run pytest # real SQLite, no network
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: dividendcase
3
- Version: 0.2.0
3
+ Version: 0.4.0
4
4
  Summary: A free, open-source dividend tracker that runs on your own computer. Your data stays with you.
5
5
  Project-URL: Homepage, https://dividendcase.com
6
6
  Project-URL: Source, https://github.com/dividendcase/dividendcase
@@ -32,6 +32,7 @@ Requires-Dist: curl-cffi>=0.7
32
32
  Requires-Dist: fastapi>=0.115
33
33
  Requires-Dist: html5lib>=1.1
34
34
  Requires-Dist: lxml>=5.2
35
+ Requires-Dist: msoffcrypto-tool>=5.4
35
36
  Requires-Dist: numpy>=1.26
36
37
  Requires-Dist: openpyxl>=3.1.3
37
38
  Requires-Dist: packaging>=24
@@ -39,6 +40,7 @@ Requires-Dist: pandas>=2.2
39
40
  Requires-Dist: platformdirs>=4.2
40
41
  Requires-Dist: pydantic-settings>=2.2
41
42
  Requires-Dist: pydantic>=2.7
43
+ Requires-Dist: pypdf>=5.0
42
44
  Requires-Dist: python-multipart>=0.0.9
43
45
  Requires-Dist: requests>=2.31
44
46
  Requires-Dist: sqlalchemy[asyncio]>=2.0.30
@@ -99,11 +101,13 @@ Then open <http://127.0.0.1:8765/dashboard/>. Keep `127.0.0.1:` in the port mapp
99
101
  ## What it does
100
102
 
101
103
  - **Income home:** what your holdings should pay over the next 12 months, month by month, all in your home currency or one currency at a time, with upcoming payments and where the income comes from.
102
- - **Stock pages:** 10 years of dividend history, TTM yield, a safety score, dividend growth (CAGR) and growth streaks.
103
- - **Screener:** index members from six markets, filtered by market, yield, how often they pay and whether they beat their local index over ten years.
104
+ - **After tax:** what's left once the paying country withholds its tax, for residents of Ireland, the UK, India, Canada, Australia and the US (treaty rates, with the paperwork each assumes); set your broker's actual rate for any country in Settings.
105
+ - **Stock pages:** 10 years of dividend history, the price with its ex-dividend dates, TTM yield, a safety score, dividend growth (CAGR) and growth streaks.
106
+ - **Screener:** index members from six markets, filtered by market, yield, how often they pay and whether they beat their local index over ten years; each row opens the stock's price as a line, area, candles or OHLC bars.
107
+ - **Advanced charts:** moving averages, Bollinger and yield bands, volume, RSI, MACD, drawdown and trailing yield for one stock, its returns over a range, and how its dividends have lined up with its price.
104
108
  - **Portfolios:** individual purchase lots in any currency, a 12-month income calendar, diversification charts, a benchmark comparison and a DRIP calculator.
105
109
  - **Watchlists and side-by-side comparison.**
106
- - **Excel import and export** of portfolios, holdings and watchlists.
110
+ - **Imports from Zerodha, Angel One and Revolut** files you download from them (read on your computer, never connected to the broker), and **Excel import and export** of portfolios, holdings and watchlists.
107
111
  - **⌘K search** for any stock, page or action.
108
112
 
109
113
  ## How it works
@@ -127,7 +131,9 @@ Once a day the app asks [PyPI](https://pypi.org/project/dividendcase/) whether a
127
131
  While the app is open it keeps data current in the background: your holdings and watchlist stocks
128
132
  when it starts and every day, and the screener's index members (S&P 500, NIFTY 50, TSX 60,
129
133
  FTSE 100, ISEQ 20, ASX 200 and some high-yield groups) every week. It fetches about one stock a
130
- second and pauses whenever Yahoo Finance asks it to. The **Data** page shows progress.
134
+ second and pauses whenever Yahoo Finance asks it to. The **Data** page shows progress. A stock's
135
+ daily prices are downloaded the first time you open its chart, and again when they are more than
136
+ 12 hours old.
131
137
 
132
138
  ## Run from source
133
139
 
@@ -51,11 +51,13 @@ Then open <http://127.0.0.1:8765/dashboard/>. Keep `127.0.0.1:` in the port mapp
51
51
  ## What it does
52
52
 
53
53
  - **Income home:** what your holdings should pay over the next 12 months, month by month, all in your home currency or one currency at a time, with upcoming payments and where the income comes from.
54
- - **Stock pages:** 10 years of dividend history, TTM yield, a safety score, dividend growth (CAGR) and growth streaks.
55
- - **Screener:** index members from six markets, filtered by market, yield, how often they pay and whether they beat their local index over ten years.
54
+ - **After tax:** what's left once the paying country withholds its tax, for residents of Ireland, the UK, India, Canada, Australia and the US (treaty rates, with the paperwork each assumes); set your broker's actual rate for any country in Settings.
55
+ - **Stock pages:** 10 years of dividend history, the price with its ex-dividend dates, TTM yield, a safety score, dividend growth (CAGR) and growth streaks.
56
+ - **Screener:** index members from six markets, filtered by market, yield, how often they pay and whether they beat their local index over ten years; each row opens the stock's price as a line, area, candles or OHLC bars.
57
+ - **Advanced charts:** moving averages, Bollinger and yield bands, volume, RSI, MACD, drawdown and trailing yield for one stock, its returns over a range, and how its dividends have lined up with its price.
56
58
  - **Portfolios:** individual purchase lots in any currency, a 12-month income calendar, diversification charts, a benchmark comparison and a DRIP calculator.
57
59
  - **Watchlists and side-by-side comparison.**
58
- - **Excel import and export** of portfolios, holdings and watchlists.
60
+ - **Imports from Zerodha, Angel One and Revolut** files you download from them (read on your computer, never connected to the broker), and **Excel import and export** of portfolios, holdings and watchlists.
59
61
  - **⌘K search** for any stock, page or action.
60
62
 
61
63
  ## How it works
@@ -79,7 +81,9 @@ Once a day the app asks [PyPI](https://pypi.org/project/dividendcase/) whether a
79
81
  While the app is open it keeps data current in the background: your holdings and watchlist stocks
80
82
  when it starts and every day, and the screener's index members (S&P 500, NIFTY 50, TSX 60,
81
83
  FTSE 100, ISEQ 20, ASX 200 and some high-yield groups) every week. It fetches about one stock a
82
- second and pauses whenever Yahoo Finance asks it to. The **Data** page shows progress.
84
+ second and pauses whenever Yahoo Finance asks it to. The **Data** page shows progress. A stock's
85
+ daily prices are downloaded the first time you open its chart, and again when they are more than
86
+ 12 hours old.
83
87
 
84
88
  ## Run from source
85
89
 
@@ -15,4 +15,4 @@ Only the latest release gets security fixes. The app tells you when a new versio
15
15
  - The app serves on **127.0.0.1** only, so other computers can't reach it, and answers only requests addressed to `127.0.0.1` or `localhost` (which blocks DNS-rebinding attacks from web pages you visit).
16
16
  - The Docker image listens inside the container; publish its port on the host's loopback address only (`-p 127.0.0.1:8765:8765`).
17
17
  - There is no login: anyone who can use your computer's browser can use the app. Your data is one SQLite file in your data folder.
18
- - The app contacts only Yahoo Finance (market data), the European Central Bank (exchange rates), Wikipedia (the S&P 500 member list) and PyPI (the daily version check, which can be turned off). Nothing is sent to DividendCase.
18
+ - The app contacts only Yahoo Finance (market data), the European Central Bank (exchange rates), Wikipedia (the S&P 500 member list), PyPI (the daily version check, which can be turned off) and, when you import a file that names holdings only by ISIN, NSE's public lists of securities. Nothing is sent to DividendCase.
@@ -0,0 +1,184 @@
1
+ # Roadmap
2
+
3
+ Last updated 30 September 2026. Work happens in this order; each item starts only when Pratik says so.
4
+
5
+ ## Until 1 November 2026
6
+
7
+ - dividendcase.com keeps serving the old hosted app until closure day. We decided (29 Sep) not to switch
8
+ earlier, so nothing that works today breaks. The new website goes live on 1 November as part of the
9
+ closure-day checklist.
10
+ - Pratik installs Vercel's GitHub app on the `dividendcase` org (Vercel → Add New → Project → Import from
11
+ GitHub), so a preview project can build `site/`.
12
+
13
+ ## 1. Landing page redesign (October 2026)
14
+
15
+ **Goal:** a landing page that shows, in motion, what DividendCase does. It should feel modern, technical
16
+ and fluid from top to bottom, use the whole screen, and avoid anything that looks generated or templated.
17
+
18
+ ### What's wrong today
19
+
20
+ - Only the Story section moves with the scroll. The dial turns, then the door and the calendar appear
21
+ as separate pieces, so the dial never resolves into the whole vault.
22
+ - Everything else is static cards with fade-ins: Markets, Features, Privacy, Install, Open source and
23
+ the FAQ.
24
+ - The text predates income after tax, home currency and the Docker image.
25
+
26
+ ### Direction: one continuous scroll film
27
+
28
+ The page tells one story: your dividends, from everywhere, kept safe on your own computer. Each scene
29
+ hands over to the next without a cut.
30
+
31
+ | Scene | What it shows | How |
32
+ |---|---|---|
33
+ | 1. Hero, full screen | The vault dial from the logo as a real 3D object. Dividend payments (green points) drift towards it from around the world. Headline revealed word by word. Reacts to the pointer. | Three.js via react-three-fiber; GSAP SplitText |
34
+ | 2. Unlock, pinned | Scrolling turns the dial. It clicks through its ticks, the door swings open in 3D and the camera moves inside: one continuous move. This fixes today's break. | One GSAP ScrollTrigger timeline, pinned and scrubbed |
35
+ | 3. Holdings | Inside the vault, holdings from many markets fly in as cards (ticker, exchange, currency) and settle into a portfolio. | Same timeline; Motion layout for the cards |
36
+ | 4. Income calendar | The cards resolve into the 12-month income calendar; month bars grow in. | GSAP, bars in SVG or WebGL |
37
+ | 5. After tax | The bars shrink by what each country withholds, labelled (US 15%, Canada 15%…). Totals convert to the home currency and tick down to the net figure. | GSAP counters in Geist Mono |
38
+ | 6. Markets | A globe with arcs from the exchanges (NYSE, LSE, TSX, NSE, ASX, Euronext Dublin) to "your computer"; arcs light up as payments arrive. | Three.js globe (ThreeUI or Originkit as reference) |
39
+ | 7. Privacy | Data flows in (prices from Yahoo, rates from the ECB), but nothing flows out: outbound lines stop at the edge of the machine. | SVG + GSAP DrawSVG |
40
+ | 8. Features | A bento grid of live mini-screens from the app: screener filter, DRIP projection, withholding table, Excel import. Each one animates on hover. | 21st.dev bento patterns, Motion |
41
+ | 9. Install | A terminal types `uv tool install dividendcase`, then "Ready at http://127.0.0.1:8765", with tabs for macOS, Windows, Linux and Docker, and a copy button. | GSAP text, Motion tabs |
42
+ | 10. Open source and FAQ | The AGPL, GitHub and the release feed; a quiet FAQ. | Motion |
43
+ | 11. Footer | A large animated wordmark. | Originkit Vector Wordmark as reference |
44
+
45
+ ### Tools and what each one is for
46
+
47
+ - **taste-skill** (tasteskill.dev, open source, `Leonxlnx/taste-skill`): the design-review gate. Read
48
+ it before building; apply its brief inference, redesign rules and pre-flight check to every section.
49
+ Review the repo before installing; Pratik runs the install.
50
+ - **GSAP** (gsap.com, free including every plugin): owns everything tied to the scroll.
51
+ - ScrollTrigger for pinning and scrubbing;
52
+ - SplitText for the headlines;
53
+ - DrawSVG and MorphSVG for the lines and shapes;
54
+ - `@gsap/react` (`useGSAP`) for cleanup.
55
+ - **Motion** (motion.dev, already in `site/`): owns interactions, meaning hover, layout, tabs and things
56
+ appearing. Rule: GSAP drives scroll timelines, Motion drives interaction, never both on the same element.
57
+ - **Lenis**: smooth scrolling, synced to ScrollTrigger through the GSAP ticker.
58
+ - **Three.js with react-three-fiber and drei**: the vault and the globe. Loaded after first paint, paused
59
+ when off screen, pixel ratio capped.
60
+ - **Originkit** (originkit.dev, free tier plus a paid plan; MCP at mcp.originkit.dev): animated WebGL
61
+ and shader components to start from, recoloured to the brand. Candidates: Particle Drift, Globe
62
+ Study, Scroll Wave Field, Light Cables, Vector Wordmark.
63
+ - **ThreeUI** (threeui.com, paid Pro): WebGL heroes and globes (Betawise Globe, Meridian). Use only if
64
+ a free option can't do the job.
65
+ - **21st.dev** (shadcn registry, 2 free copies a day, paid membership; MCP): section patterns such as
66
+ the bento grid, terminal, accordion and call to action.
67
+
68
+ ### Guardrails
69
+
70
+ - **Brand:**
71
+ - Colours:
72
+ - dark first;
73
+ - sprout green for money and primary actions only;
74
+ - lavender only for Keeper;
75
+ - amber and red only for risk.
76
+ - Type:
77
+ - Geist for text;
78
+ - Geist Mono for every number;
79
+ - Instrument Serif italic for at most one word in a headline.
80
+ - No emoji. Sentence-case labels.
81
+ - **No AI slop:** avoid the looks that give generated pages away.
82
+ - no purple-blue gradients, glass cards everywhere, sparkles, generic 3D blobs or stock icons;
83
+ - no "Unlock the power of" copy;
84
+ - every animation has to explain something about the product.
85
+ - **Licences:** `site/` is in the public AGPL repo. Code from paid libraries (ThreeUI Pro, Originkit Pro,
86
+ 21st premium) usually can't be published as source. Check each licence before copying. If it isn't
87
+ allowed, either rebuild the effect ourselves, or move the website into its own private repo.
88
+ **Decide this before building.**
89
+ - **Honest content:** example portfolios use invented numbers, labelled as examples, and never Yahoo data.
90
+ - **Performance and access:**
91
+ - Speed and scores:
92
+ - the largest element on screen appears within 2.5 s on a mid-range phone;
93
+ - a steady 60 fps;
94
+ - Lighthouse at least 90 for performance and 100 for accessibility.
95
+ - Fallbacks:
96
+ - with `prefers-reduced-motion`, every scene is a still frame;
97
+ - phones get lighter scenes;
98
+ - the page works without WebGL.
99
+ - The page stays a static export.
100
+
101
+ ### Progress
102
+
103
+ - 2 Oct 2026: storyboard reviewed (a private Design canvas; the link is in Claude's project memory).
104
+ - Decisions:
105
+ - headline emphasis in green, no serif on the website;
106
+ - Phosphor icons;
107
+ - real screenshots of the app for product previews, taken with an example portfolio of invented numbers;
108
+ - the site stays in this public repo, so we write our own scenes.
109
+ - Frames 1 to 6 (hero and the pinned film) are built in `site/components/film/`. The vault and dial are
110
+ SVG with CSS 3D rather than WebGL, so they match the logo exactly and work on phones; three.js draws
111
+ the payment particles on desktop. After review the hero gained labelled payment trails, a smaller
112
+ dial with numbers 0 to 90, and a slower, smoother hand-over to the vault.
113
+ - Frames 7 to 12 are built too: a dotted globe (2D canvas), the privacy wires, research tiles and the
114
+ install frame with real screenshots, open source with the FAQ, and the footer. The screenshots come
115
+ from `scripts/demo_server.py` (an invented example portfolio, network blocked), and the film uses the
116
+ same figures. The hosted site's export imports into the app as is (same Excel layout).
117
+ - The privacy page (`/privacy/`), a 404 page and redirects for the hosted app's old addresses
118
+ (`site/vercel.json`) are built. The redirects were checked with Vercel's own routing code
119
+ (`@vercel/routing-utils`); check them again on the Vercel preview.
120
+
121
+ ### Steps
122
+
123
+ 1. **Set up** (Pratik approves each step):
124
+ - install taste-skill;
125
+ - connect the Originkit and 21st MCP servers;
126
+ - add GSAP, `@gsap/react`, Lenis, three and Phosphor to `site/` (done; react-three-fiber wasn't needed).
127
+ 2. **Storyboard for review before any code:** a frame and the copy for each scene, published as a
128
+ private page for Pratik.
129
+ 3. **Build in this order:**
130
+ 1. the hero and unlock sequence (scenes 1–5, the core);
131
+ 2. the globe;
132
+ 3. privacy;
133
+ 4. the bento grid;
134
+ 5. install;
135
+ 6. open source, the FAQ and the footer.
136
+ 4. **Check** performance, accessibility, phones and reduced motion.
137
+ 5. **Preview** on Vercel. Pratik reviews it, and it goes live on 1 November.
138
+
139
+ ## 2. Broker imports
140
+
141
+ **Order:** Zerodha → Angel One (India), then Trading 212 → Revolut → Degiro.
142
+ **Releases:** 0.4.0 for Zerodha and Angel One; 0.5.0 for Trading 212, Revolut and Degiro.
143
+
144
+ **For each broker:**
145
+
146
+ - Pratik provides one real export, anonymised and kept outside the repo.
147
+ - Tests use invented rows in the same column layout; real exports are never committed.
148
+ - The import:
149
+ 1. reads the file;
150
+ 2. shows a preview of the holdings and purchase lots it will add;
151
+ 3. then saves.
152
+ - Importing the same file twice adds nothing new.
153
+ - It opens from the existing Import dialog, with a choice of broker.
154
+
155
+ | Broker | Likely export (to confirm with a real file) | Identifies stocks by | Notes |
156
+ |---|---|---|---|
157
+ | Zerodha | Console tradebook and holdings (CSV/XLSX) | NSE/BSE symbol + ISIN | Map to Yahoo `.NS` / `.BO` |
158
+ | Angel One | Holdings file "Your Holding Details" (password-protected XLSX); the trade history only covers recent months | Company name + ISIN | ISIN → NSE list, then Yahoo; no purchase dates, only long-term (over a year) and short-term quantities |
159
+ | Trading 212 | History export (CSV) | Ticker + ISIN | Includes dividends and the tax withheld |
160
+ | Revolut | Account statement (PDF, or Excel/CSV), a section per currency | Symbol (+ ISIN in the Portfolio breakdown) | Buys and sells → lots; top-ups, dividends and fees listed; checked against the breakdown |
161
+ | Degiro | Transactions and account statement (CSV) | ISIN + exchange | Dividends and dividend tax are separate rows |
162
+
163
+ **Progress:** Zerodha tradebooks import (October 2026), tested on invented trades; waiting for a real,
164
+ anonymised export to check the format before 0.4.0. Angel One's holdings file imports too (3 Oct 2026),
165
+ checked against a real file (read locally, never committed): all 15 listed holdings found by ISIN.
166
+ Angel One has no full trade history (its trade export covers about 90 days), so purchase dates are
167
+ estimates the user confirms. Later: a CDSL/NSDL CAS import, which has the real dates for any Indian
168
+ broker (no prices; combine with the average prices).
169
+ Revolut's account statement imports too (7 Oct 2026), checked against a real statement with a single
170
+ buy (read locally, never committed). Sells, dividends, splits and non-USD stocks are tested only on
171
+ invented statements, and the CSV/Excel reader follows column names other tools document: check both
172
+ with a longer real statement before 0.5.0.
173
+
174
+ **Follow-up once imports work:** import the dividends actually received and the tax withheld, then
175
+ compare them with what the app expected. When a broker withheld a different rate from our estimate,
176
+ offer to use the broker's rate for that country.
177
+
178
+ ## 3. Other open items
179
+
180
+ - Pratik: check the Irish withholding rates. A tax professional reviews the whole table before 1.0.
181
+ - Decide on a private feedback address for people without a GitHub account (feedback@dividendcase.com).
182
+ - Later:
183
+ - more withholding source countries (DE, FR, NL, CH, ES, JP);
184
+ - the Cloud prototype (no billing yet).
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dividendcase"
3
- version = "0.2.0"
3
+ version = "0.4.0"
4
4
  description = "A free, open-source dividend tracker that runs on your own computer. Your data stays with you."
5
5
  readme = "README.md"
6
6
  license = "AGPL-3.0-or-later"
@@ -49,6 +49,9 @@ dependencies = [
49
49
  "openpyxl>=3.1.3",
50
50
  "alembic>=1.13",
51
51
  "packaging>=24",
52
+ # Broker files: Angel One's password-protected Excel download, and holdings saved as PDF
53
+ "msoffcrypto-tool>=5.4",
54
+ "pypdf>=5.0",
52
55
  ]
53
56
 
54
57
  [project.scripts]