diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:44:34 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:44:34 +0000 |
commit | 058b224d7538da625e2876105511cb4dff68618c (patch) | |
tree | dae8ff1c7ad573a2bbd9f98ccf771645e791c1b1 | |
parent | 3a70b57cd7a9abcfa3b0e57732f912c52736b901 (diff) |
automatic import of python-finvizfinanceopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-finvizfinance.spec | 518 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 520 insertions, 0 deletions
@@ -0,0 +1 @@ +/finvizfinance-0.14.5.tar.gz diff --git a/python-finvizfinance.spec b/python-finvizfinance.spec new file mode 100644 index 0000000..ee14345 --- /dev/null +++ b/python-finvizfinance.spec @@ -0,0 +1,518 @@ +%global _empty_manifest_terminate_build 0 +Name: python-finvizfinance +Version: 0.14.5 +Release: 1 +Summary: Finviz Finance. Information downloader. +License: The MIT License (MIT) +URL: https://github.com/lit26/finvizfinance +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ec/ee/96349d21d2d424f791d188326982a95f71ed933c3384f4b959977fa5a731/finvizfinance-0.14.5.tar.gz +BuildArch: noarch + +Requires: python3-pandas +Requires: python3-datetime +Requires: python3-requests +Requires: python3-bs4 +Requires: python3-lxml + +%description + + + + +[](https://coveralls.io/github/lit26/finvizfinance) + + +[](https://pepy.tech/project/finvizfinance) +[](https://www.codefactor.io/repository/github/lit26/finvizfinance/overview/master) +[](https://www.paypal.me/TIANNINGL/) +[](https://github.com/psf/black) + +# finvizfinance + +finvizfinance is a package which collects financial information from FinViz website. The package provides the information of the following: +* Stock charts, fundamental & technical information, insider information and stock news +* Forex charts and performance +* Crypto charts and performance + +Screener and Group provide dataframes for comparing stocks according to different filters and trading signals. + +Docs: https://finvizfinance.readthedocs.io/en/latest/ + +### Downloads + +To download the latest version from GitHub: + +``` +$ git clone https://github.com/lit26/finvizfinance.git +``` +Or install from PyPi: +``` +$ pip install finvizfinance +``` + + + +### Quote + +Getting information (fundament, description, outer rating, stock news, inside trader) of an individual stock. + +```python +from finvizfinance.quote import finvizfinance + +stock = finvizfinance('tsla') +``` + +#### Chart +```python +stock.ticker_charts() +``` + +#### Fundament +```python +stock_fundament = stock.ticker_fundament() + +# result +# stock_fundament = {'Company': 'Tesla, Inc.', 'Sector': 'Consumer Cyclical', +# 'Industry': 'Auto Manufacturers', 'Country': 'USA', 'Index': '-', 'P/E': '849.57', +# 'EPS (ttm)': '1.94', 'Insider Own': '0.10%', 'Shs Outstand': '186.00M', +# 'Perf Week': '13.63%', 'Market Cap': '302.10B', 'Forward P/E': '106.17', +# ...} +``` + +#### Description +```python +stock_description = stock.ticker_description() + +# stock_description +# stock_description = 'Tesla, Inc. designs, develops, manufactures, ...' +``` + +#### Outer Ratings +```python +outer_ratings_df = stock.ticker_outer_ratings() +``` + +#### Stock News +```python +news_df = stock.ticker_news() +``` + + +#### Inside Trader +```python +inside_trader_df = stock.ticker_inside_trader() +``` + + +### News + +Getting recent financial news from finviz. + +```python +from finvizfinance.news import News + +fnews = News() +all_news = fnews.get_news() +``` +Finviz News include 'news' and 'blogs'. +```python +all_news['news'].head() +``` + +```python +all_news['blogs'].head() +``` + + +### Insider + +Getting insider trading information. + +```python +from finvizfinance.insider import Insider + +finsider = Insider(option='top owner trade') +# option: latest, top week, top owner trade +# default: latest + +insider_trader = finsider.get_insider() +``` + + +### Screener (Overview, Valuation, Financial, Ownership, Performance, Technical) + +Getting multiple tickers' information according to the filters. + +#### Example: Overview + +```python +from finvizfinance.screener.overview import Overview + +foverview = Overview() +filters_dict = {'Index':'S&P 500','Sector':'Basic Materials'} +foverview.set_filter(filters_dict=filters_dict) +df = foverview.screener_view() +df.head() +``` + + +### Screener (Ticker) + +Getting list of tickers according to the filters. + +### Credit +Developed by Tianning Li. Feel free to give comments or suggestions. + + +%package -n python3-finvizfinance +Summary: Finviz Finance. Information downloader. +Provides: python-finvizfinance +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-finvizfinance + + + + +[](https://coveralls.io/github/lit26/finvizfinance) + + +[](https://pepy.tech/project/finvizfinance) +[](https://www.codefactor.io/repository/github/lit26/finvizfinance/overview/master) +[](https://www.paypal.me/TIANNINGL/) +[](https://github.com/psf/black) + +# finvizfinance + +finvizfinance is a package which collects financial information from FinViz website. The package provides the information of the following: +* Stock charts, fundamental & technical information, insider information and stock news +* Forex charts and performance +* Crypto charts and performance + +Screener and Group provide dataframes for comparing stocks according to different filters and trading signals. + +Docs: https://finvizfinance.readthedocs.io/en/latest/ + +### Downloads + +To download the latest version from GitHub: + +``` +$ git clone https://github.com/lit26/finvizfinance.git +``` +Or install from PyPi: +``` +$ pip install finvizfinance +``` + + + +### Quote + +Getting information (fundament, description, outer rating, stock news, inside trader) of an individual stock. + +```python +from finvizfinance.quote import finvizfinance + +stock = finvizfinance('tsla') +``` + +#### Chart +```python +stock.ticker_charts() +``` + +#### Fundament +```python +stock_fundament = stock.ticker_fundament() + +# result +# stock_fundament = {'Company': 'Tesla, Inc.', 'Sector': 'Consumer Cyclical', +# 'Industry': 'Auto Manufacturers', 'Country': 'USA', 'Index': '-', 'P/E': '849.57', +# 'EPS (ttm)': '1.94', 'Insider Own': '0.10%', 'Shs Outstand': '186.00M', +# 'Perf Week': '13.63%', 'Market Cap': '302.10B', 'Forward P/E': '106.17', +# ...} +``` + +#### Description +```python +stock_description = stock.ticker_description() + +# stock_description +# stock_description = 'Tesla, Inc. designs, develops, manufactures, ...' +``` + +#### Outer Ratings +```python +outer_ratings_df = stock.ticker_outer_ratings() +``` + +#### Stock News +```python +news_df = stock.ticker_news() +``` + + +#### Inside Trader +```python +inside_trader_df = stock.ticker_inside_trader() +``` + + +### News + +Getting recent financial news from finviz. + +```python +from finvizfinance.news import News + +fnews = News() +all_news = fnews.get_news() +``` +Finviz News include 'news' and 'blogs'. +```python +all_news['news'].head() +``` + +```python +all_news['blogs'].head() +``` + + +### Insider + +Getting insider trading information. + +```python +from finvizfinance.insider import Insider + +finsider = Insider(option='top owner trade') +# option: latest, top week, top owner trade +# default: latest + +insider_trader = finsider.get_insider() +``` + + +### Screener (Overview, Valuation, Financial, Ownership, Performance, Technical) + +Getting multiple tickers' information according to the filters. + +#### Example: Overview + +```python +from finvizfinance.screener.overview import Overview + +foverview = Overview() +filters_dict = {'Index':'S&P 500','Sector':'Basic Materials'} +foverview.set_filter(filters_dict=filters_dict) +df = foverview.screener_view() +df.head() +``` + + +### Screener (Ticker) + +Getting list of tickers according to the filters. + +### Credit +Developed by Tianning Li. Feel free to give comments or suggestions. + + +%package help +Summary: Development documents and examples for finvizfinance +Provides: python3-finvizfinance-doc +%description help + + + + +[](https://coveralls.io/github/lit26/finvizfinance) + + +[](https://pepy.tech/project/finvizfinance) +[](https://www.codefactor.io/repository/github/lit26/finvizfinance/overview/master) +[](https://www.paypal.me/TIANNINGL/) +[](https://github.com/psf/black) + +# finvizfinance + +finvizfinance is a package which collects financial information from FinViz website. The package provides the information of the following: +* Stock charts, fundamental & technical information, insider information and stock news +* Forex charts and performance +* Crypto charts and performance + +Screener and Group provide dataframes for comparing stocks according to different filters and trading signals. + +Docs: https://finvizfinance.readthedocs.io/en/latest/ + +### Downloads + +To download the latest version from GitHub: + +``` +$ git clone https://github.com/lit26/finvizfinance.git +``` +Or install from PyPi: +``` +$ pip install finvizfinance +``` + + + +### Quote + +Getting information (fundament, description, outer rating, stock news, inside trader) of an individual stock. + +```python +from finvizfinance.quote import finvizfinance + +stock = finvizfinance('tsla') +``` + +#### Chart +```python +stock.ticker_charts() +``` + +#### Fundament +```python +stock_fundament = stock.ticker_fundament() + +# result +# stock_fundament = {'Company': 'Tesla, Inc.', 'Sector': 'Consumer Cyclical', +# 'Industry': 'Auto Manufacturers', 'Country': 'USA', 'Index': '-', 'P/E': '849.57', +# 'EPS (ttm)': '1.94', 'Insider Own': '0.10%', 'Shs Outstand': '186.00M', +# 'Perf Week': '13.63%', 'Market Cap': '302.10B', 'Forward P/E': '106.17', +# ...} +``` + +#### Description +```python +stock_description = stock.ticker_description() + +# stock_description +# stock_description = 'Tesla, Inc. designs, develops, manufactures, ...' +``` + +#### Outer Ratings +```python +outer_ratings_df = stock.ticker_outer_ratings() +``` + +#### Stock News +```python +news_df = stock.ticker_news() +``` + + +#### Inside Trader +```python +inside_trader_df = stock.ticker_inside_trader() +``` + + +### News + +Getting recent financial news from finviz. + +```python +from finvizfinance.news import News + +fnews = News() +all_news = fnews.get_news() +``` +Finviz News include 'news' and 'blogs'. +```python +all_news['news'].head() +``` + +```python +all_news['blogs'].head() +``` + + +### Insider + +Getting insider trading information. + +```python +from finvizfinance.insider import Insider + +finsider = Insider(option='top owner trade') +# option: latest, top week, top owner trade +# default: latest + +insider_trader = finsider.get_insider() +``` + + +### Screener (Overview, Valuation, Financial, Ownership, Performance, Technical) + +Getting multiple tickers' information according to the filters. + +#### Example: Overview + +```python +from finvizfinance.screener.overview import Overview + +foverview = Overview() +filters_dict = {'Index':'S&P 500','Sector':'Basic Materials'} +foverview.set_filter(filters_dict=filters_dict) +df = foverview.screener_view() +df.head() +``` + + +### Screener (Ticker) + +Getting list of tickers according to the filters. + +### Credit +Developed by Tianning Li. Feel free to give comments or suggestions. + + +%prep +%autosetup -n finvizfinance-0.14.5 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-finvizfinance -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.14.5-1 +- Package Spec generated @@ -0,0 +1 @@ +a0d897f547ad65cc3a232aeecfe9e972 finvizfinance-0.14.5.tar.gz |