{ "info": { "author": "Nikita Kouevda", "author_email": "nkouevda@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# capital-gains\n\nCapital gains calculator.\n\nThis transforms transaction histories into a format suitable for [IRS form\n8949](https://www.irs.gov/pub/irs-pdf/f8949.pdf), taking care of wash sale\nadjustments.\n\nNote: The logic is ignorant of share type, and cannot account for e.g. bargain\nelements for ESPP, ISO, and NSO. You must enter the appropriate cost basis\ndepending on your situation, e.g. the fair market value on exercise date for\nESPP disqualifying dispositions.\n\nSee also\n[nkouevda/estimated-taxes](https://github.com/nkouevda/estimated-taxes).\n\n## Installation\n\n pip install capital-gains\n\n## Usage\n\n```\nusage: capital-gains [] [--] \n\nCapital gains calculator\n\noptional arguments:\n -h, --help show this help message and exit\n -d , --decimal-places \n round $ to decimal places; default: 0\n -s , --shares-decimal-places \n round shares to decimal places; default: 0\n -t, --totals output totals\n -v, --verbose verbose output\n -V, --version show program's version number and exit\n```\n\n## Input Format\n\nSee [example/input.csv](example/input.csv).\n\nEach entry has the following format:\n\n date,symbol,name,shares,price,fee\n\nBuys have positive `shares`; sells have negative `shares`. `price` and `fee` are\nalways positive. `fee` and `name` are optional. A sell without a `name` will\nsell all open lots FIFO; a sell with a `name` will only sell lots with the same\n`name`. Thus `name` can be used to specify sell orders other than FIFO.\n\n## Examples\n\n capital-gains -t example/input.csv > example/output.txt\n\n## TODO\n\n- STCG vs. LTCG\n\n## License\n\n[MIT License](LICENSE.txt)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nkouevda/capital-gains", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "capital-gains", "package_url": "https://pypi.org/project/capital-gains/", "platform": "", "project_url": "https://pypi.org/project/capital-gains/", "project_urls": { "Homepage": "https://github.com/nkouevda/capital-gains" }, "release_url": "https://pypi.org/project/capital-gains/1.0.4/", "requires_dist": null, "requires_python": "", "summary": "Capital gains calculator", "version": "1.0.4" }, "last_serial": 4986581, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "e8ffa2b5dd61b19a11b8bcd08e2239e1", "sha256": "9299f5e7554742d67e3f2e8769b8d0147e1c74c2923a5360e6816fe81f43e44e" }, "downloads": -1, "filename": "capital_gains-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e8ffa2b5dd61b19a11b8bcd08e2239e1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5532, "upload_time": "2018-05-21T05:49:53", "url": "https://files.pythonhosted.org/packages/e6/35/396b8b82d44cdf7053ad5ae4373233f7c89e93f4ee5d1d4cb4c934e7223b/capital_gains-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "985455cf3b1ceaf985f2f7d5f4cbef46", "sha256": "20ff47c6bf1dfba5f2c7b097f8c1e523fa859ea497760a03ddef89b10b565991" }, "downloads": -1, "filename": "capital-gains-1.0.0.tar.gz", "has_sig": false, "md5_digest": "985455cf3b1ceaf985f2f7d5f4cbef46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4003, "upload_time": "2018-05-21T05:49:54", "url": "https://files.pythonhosted.org/packages/0f/5b/c1edc9e3ed88c737434387873c0fe3f9a95212543a235b5df6e8fbea2cfd/capital-gains-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "30bf482eeb911a9970273c0c0198fa58", "sha256": "770fa8f20cacf29d1581ddf655ccc2fd93fe99a3cda5b92159833de01bd53c06" }, "downloads": -1, "filename": "capital_gains-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "30bf482eeb911a9970273c0c0198fa58", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5731, "upload_time": "2018-05-22T02:28:29", "url": "https://files.pythonhosted.org/packages/8e/43/f36a28c621a271abce9bb07eb28c653250f455dc377b8e4634aaa68516c2/capital_gains-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c498f32499c675a1205bbd593a1ac751", "sha256": "76eab78669f04063bccf5efbd079b17569cff995319901f1de1e6bf1dd2c5792" }, "downloads": -1, "filename": "capital-gains-1.0.1.tar.gz", "has_sig": false, "md5_digest": "c498f32499c675a1205bbd593a1ac751", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4181, "upload_time": "2018-05-22T02:28:30", "url": "https://files.pythonhosted.org/packages/be/12/88ff27e6f5c8f1d4324840702e92e09584e0d2680d8172aeeb4448d7de29/capital-gains-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "11d0611acbe056ca676a455410d5da46", "sha256": "c1d4f2543880658146ed393af4bde98cf0a93c1aa581a985ccd8dcf72eea07ae" }, "downloads": -1, "filename": "capital_gains-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "11d0611acbe056ca676a455410d5da46", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6122, "upload_time": "2018-09-15T23:44:55", "url": "https://files.pythonhosted.org/packages/ba/5c/529bf65a32751edfc872ab7e4d625cd236dd0ec76daa5bf5b915b2972607/capital_gains-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dffd6fb1b4e9f1d88e2200a64fdbc8f3", "sha256": "39db5de86889dc23dcc9b54f9d47138440fd8603dec03cd89cd7eea372ad648f" }, "downloads": -1, "filename": "capital-gains-1.0.2.tar.gz", "has_sig": false, "md5_digest": "dffd6fb1b4e9f1d88e2200a64fdbc8f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4598, "upload_time": "2018-09-15T23:44:57", "url": "https://files.pythonhosted.org/packages/ed/4a/9f62e7097576692fe57060f5fbe416012d4c1c7590e1e14edee39b8df0be/capital-gains-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "2ec7240f54d6bf2954f15cbed5bbf1f3", "sha256": "ddc88ce065a0ae79ca4758f75f4892694318cdc36487d4d923bb8b10401fb870" }, "downloads": -1, "filename": "capital_gains-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "2ec7240f54d6bf2954f15cbed5bbf1f3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7757, "upload_time": "2019-03-26T07:32:34", "url": "https://files.pythonhosted.org/packages/72/66/0b0303a53c1bf7becd79847c348f289e7fd3c0f9f48f2fde91df01b7166a/capital_gains-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c72403d47277578edd62fe229a4697ce", "sha256": "03867775763f764126da2d9035f7aaff52784f06d43b9dc1ee025489f553ee3c" }, "downloads": -1, "filename": "capital-gains-1.0.3.tar.gz", "has_sig": false, "md5_digest": "c72403d47277578edd62fe229a4697ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4960, "upload_time": "2019-03-26T07:32:35", "url": "https://files.pythonhosted.org/packages/09/7b/456ff5b50d249023ff893344b8b70ed95d655898252499ae61fa8f64e1cc/capital-gains-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "b4793b7cb8c3efb0a606929b13526b56", "sha256": "5c85e007b706e85d52dc9e2984ae489a97d0792d7925b8b8efed1d34434ebcd2" }, "downloads": -1, "filename": "capital_gains-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "b4793b7cb8c3efb0a606929b13526b56", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7903, "upload_time": "2019-03-26T08:43:00", "url": "https://files.pythonhosted.org/packages/30/c6/b50e59d61317c2b5a52c9f0ae657920b8bb41705891b9ba3bcae42286acc/capital_gains-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "202191d7aa50b7366e6e6259ed66dc22", "sha256": "8d7d2341a78618efc5d95596dc61341170377bea66c6573b3cf125f2b0cf59c8" }, "downloads": -1, "filename": "capital-gains-1.0.4.tar.gz", "has_sig": false, "md5_digest": "202191d7aa50b7366e6e6259ed66dc22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5136, "upload_time": "2019-03-26T08:43:02", "url": "https://files.pythonhosted.org/packages/76/51/3760049041fc005cf36d7c78ce5e4a6875174ba71f7235e03d074c0e93d7/capital-gains-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b4793b7cb8c3efb0a606929b13526b56", "sha256": "5c85e007b706e85d52dc9e2984ae489a97d0792d7925b8b8efed1d34434ebcd2" }, "downloads": -1, "filename": "capital_gains-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "b4793b7cb8c3efb0a606929b13526b56", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7903, "upload_time": "2019-03-26T08:43:00", "url": "https://files.pythonhosted.org/packages/30/c6/b50e59d61317c2b5a52c9f0ae657920b8bb41705891b9ba3bcae42286acc/capital_gains-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "202191d7aa50b7366e6e6259ed66dc22", "sha256": "8d7d2341a78618efc5d95596dc61341170377bea66c6573b3cf125f2b0cf59c8" }, "downloads": -1, "filename": "capital-gains-1.0.4.tar.gz", "has_sig": false, "md5_digest": "202191d7aa50b7366e6e6259ed66dc22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5136, "upload_time": "2019-03-26T08:43:02", "url": "https://files.pythonhosted.org/packages/76/51/3760049041fc005cf36d7c78ce5e4a6875174ba71f7235e03d074c0e93d7/capital-gains-1.0.4.tar.gz" } ] }