Metadata-Version: 2.1
Name: portfolio_allocation
Version: 0.3.2
Summary: Calculates currency, country and industry allocations for portfolio of ETFs and mutual funds
Home-page: https://github.com/fertkir/portfolio-allocation
Author: Kirill Fertikov
Author-email: kirill.fertikov@gmail.com
Project-URL: Bug Reports, https://github.com/fertkir/portfolio-allocation/issues
Project-URL: Source, https://github.com/fertkir/portfolio-allocation
Keywords: etf allocation moex tinkoff finex gnucash
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: Topic :: Office/Business :: Financial :: Investment
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: appdirs==1.4.4
Requires-Dist: banal==1.0.6
Requires-Dist: beautifulsoup4==4.12.2; python_full_version >= "3.6.0"
Requires-Dist: cache-to-disk==2.0.0
Requires-Dist: certifi==2023.11.17; python_version >= "3.6"
Requires-Dist: chardet==5.2.0; python_version >= "3.7"
Requires-Dist: charset-normalizer==3.3.2; python_full_version >= "3.7.0"
Requires-Dist: countrynames==1.15.3
Requires-Dist: frozendict==2.3.10; python_version >= "3.6"
Requires-Dist: html5lib==1.1; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3, 3.4"
Requires-Dist: idna==3.6; python_version >= "3.5"
Requires-Dist: jellyfish==1.0.3; python_version >= "3.7"
Requires-Dist: lxml==4.9.3; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3, 3.4"
Requires-Dist: multitasking==0.0.11
Requires-Dist: normality==2.5.0
Requires-Dist: numpy==1.26.2; python_version >= "3.9"
Requires-Dist: pandas==2.1.4; python_version >= "3.9"
Requires-Dist: peewee==3.17.0
Requires-Dist: pycountry==23.12.7; python_version >= "3.8"
Requires-Dist: python-dateutil==2.8.2; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3"
Requires-Dist: pytz==2023.3.post1
Requires-Dist: pyyaml==6.0.1; python_version >= "3.6"
Requires-Dist: requests==2.31.0; python_version >= "3.7"
Requires-Dist: six==1.16.0; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3"
Requires-Dist: soupsieve==2.5; python_version >= "3.8"
Requires-Dist: text-unidecode==1.3
Requires-Dist: tzdata==2023.3; python_version >= "2"
Requires-Dist: urllib3==2.1.0; python_version >= "3.8"
Requires-Dist: webencodings==0.5.1
Requires-Dist: yfinance==0.2.33
Provides-Extra: dev

# Portfolio Allocation for GnuCash
Currency, country, asset class and industry allocations for portfolio of ETFs and mutual funds

What the program does:
1. Takes instrument allocation from [GnuCash's "Security" pie chart report](https://raw.githack.com/fertkir/portfolio-allocation/master/examples/gnucash.html)
2. Fetches data for each instrument from the Internet:
   1. Finex website
   2. Tinkoff website
   3. Yahoo Finance
3. Generates and opens [portfolio allocation report](https://raw.githack.com/fertkir/portfolio-allocation/master/examples/allocation.html) in your browser.

## Installation
```commandline
pip install portfolio-allocation
```

## Usage
To generate report based on default "Securities" GnuCash report for recently open GnuCash file:
```commandline
portfolio-allocation gnucash
```
But you'd better customize it, since the "Securities" pie chart is limited to 7 instruments:
```commandline
portfolio-allocation gnucash -r MyCustomReport1 MuCustomReport2
```
To select another GnuCash file:
```commandline
portfolio-allocation gnucash -r MyCustomReport -f /home/user/other.gnucash
```

To view all the possible options, check:
```commandline
portfolio-allocation -h
```

