summaryrefslogtreecommitdiff
path: root/python-fedtools.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 04:45:20 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 04:45:20 +0000
commit90a2d60a147f5aa95db05de64bde29f31d9a5331 (patch)
treed8669144fd81941533d2593db0fdb129fa8ce813 /python-fedtools.spec
parent860b8924c65f66be127985e7dc38ae1274eafed9 (diff)
automatic import of python-fedtoolsopeneuler20.03
Diffstat (limited to 'python-fedtools.spec')
-rw-r--r--python-fedtools.spec447
1 files changed, 447 insertions, 0 deletions
diff --git a/python-fedtools.spec b/python-fedtools.spec
new file mode 100644
index 0000000..c7ae078
--- /dev/null
+++ b/python-fedtools.spec
@@ -0,0 +1,447 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Fedtools
+Version: 0.0.7
+Release: 1
+Summary: An open source library for the extraction of Federal Reserve Data.
+License: MIT
+URL: https://pypi.org/project/Fedtools/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3b/25/dec08164bb5d4e4323793b7af519b51a003d624a6a8e8636051330f6ab25/Fedtools-0.0.7.tar.gz
+BuildArch: noarch
+
+Requires: python3-numpy
+Requires: python3-pandas
+Requires: python3-requests
+Requires: python3-beautifulsoup4
+Requires: python3-fake-useragent
+Requires: python3-dateutil
+Requires: python3-pytz
+Requires: python3-six
+Requires: python3-soupsieve
+
+%description
+# FedTools
+
+[![Downloads](https://static.pepy.tech/personalized-badge/fedtools?period=total&units=international_system&left_color=black&right_color=blue&left_text=Downloads)](https://pepy.tech/project/fedtools) [![Downloads](https://pepy.tech/badge/fedtools/month)](https://pepy.tech/project/fedtools)
+
+An open source Python library for the scraping of Federal Reserve data.
+
+By default, all modules within FedTools use 10 threads to increase scraping speed. By default, the Output is a
+Pandas DataFrame, indexed by release date of the materials. Additional serialised storage methods are optional.
+
+## Installation
+
+```python
+pip install Fedtools
+```
+
+Import the classes:
+
+```python
+from FedTools import MonetaryPolicyCommittee
+from FedTools import BeigeBooks
+from FedTools import FederalReserveMins
+```
+
+## Usage
+
+Returns a Pandas DataFrame ```dataset```, which contains all Meeting Minutes, indexed by Date:
+```python
+from FedTools import MonetaryPolicyCommittee
+
+dataset = MonetaryPolicyCommittee().find_statements()
+MonetaryPolicyCommittee().pickle_data("directory.pkl")
+```
+
+Returns a Pandas DataFrame ```dataset```, which contains all Beige Books, indexed by Date:
+```python
+from FedTools import BeigeBooks
+
+dataset = BeigeBooks().find_beige_books()
+BeigeBooks().pickle_data("directory.pkl")
+```
+
+Returns a Pandas DataFrame ```dataset```, which contains all Federal Reserve Minutes since 1993, indexed by Date:
+```python
+from FedTools import FederalReserveMins
+
+dataset = FederalReserveMins().find_minutes()
+FederalReserveMins().pickle_data("directory.pkl")
+```
+
+## Edit Default Input Arguments
+
+###Monetary Policy Committee
+
+To modify the ```MonetaryPolicyCommittee``` default parameters, each of the below can be adjusted:
+
+```python
+monetary_policy = MonetaryPolicyCommittee(
+ main_url = 'https://www.federalreserve.gov',
+ calendar_url = 'https://www.federalreserve.gov/monetarypolicy/fomccalendars.htm',
+ start_year = 1994,
+ historical_split = 2014,
+ verbose = True,
+ thread_num = 10)
+
+dataset = monetary_policy.find_statements()
+```
+
+### BeigeBooks
+
+To modify the ```BeigeBooks``` default parameters, each of the below can be adjusted:
+
+```python
+beige_books = BeigeBooks(
+ main_url = 'https://www.federalreserve.gov',
+ beige_book_url='https://www.federalreserve.gov/monetarypolicy/beige-book-default.htm',
+ start_year = 1996,
+ historical_split = 2019,
+ verbose = True,
+ thread_num = 10)
+
+dataset = beige_books.find_beige_books()
+```
+
+### FederalReserveMins
+
+To modify the ```FederalReserveMins``` default parameters, each of the below can be adjusted:
+
+```python
+fed_mins = FederalReserveMins(
+ main_url = 'https://www.federalreserve.gov',
+ calendar_url ='https://www.federalreserve.gov/monetarypolicy/fomccalendars.htm',
+ start_year = 1995,
+ historical_split = 2014,
+ verbose = True,
+ thread_num = 10)
+
+dataset = fed_mins.find_minutes()
+```
+
+### Parameter Explanation
+
+
+All parameters within the package have default values which can be overriden, with a short explanation of each parameter outlined below:
+
+| Argument | Description |
+| ------ | --------- |
+| main_url | Federal Reserve Open Monetary Policy (FOMC) website URL. (str) |
+| calendar_url | URL containing a list of FOMC Meeting dates and Minutes release dates. (str) |
+| beige_book_url | URL containing a list of Beige Book release dates. (str) |
+| start_year | first year from which to begin collecting data. (int) |
+| historical_split | first year considered as historical ([Check Here for FOMC and Minutes][hist] or [Check Here for Beige Books][hist1]). (int) |
+| verbose | boolean determining printing during scraping. (bool) |
+| thread_num | the number of threads to use for web scraping. (int) |
+
+
+
+
+
+
+[hist]: <https://www.federalreserve.gov/monetarypolicy/fomc_historical_year.htm>
+[hist1]: <https://www.federalreserve.gov/monetarypolicy/beige-book-archive.htm>
+
+
+
+%package -n python3-Fedtools
+Summary: An open source library for the extraction of Federal Reserve Data.
+Provides: python-Fedtools
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Fedtools
+# FedTools
+
+[![Downloads](https://static.pepy.tech/personalized-badge/fedtools?period=total&units=international_system&left_color=black&right_color=blue&left_text=Downloads)](https://pepy.tech/project/fedtools) [![Downloads](https://pepy.tech/badge/fedtools/month)](https://pepy.tech/project/fedtools)
+
+An open source Python library for the scraping of Federal Reserve data.
+
+By default, all modules within FedTools use 10 threads to increase scraping speed. By default, the Output is a
+Pandas DataFrame, indexed by release date of the materials. Additional serialised storage methods are optional.
+
+## Installation
+
+```python
+pip install Fedtools
+```
+
+Import the classes:
+
+```python
+from FedTools import MonetaryPolicyCommittee
+from FedTools import BeigeBooks
+from FedTools import FederalReserveMins
+```
+
+## Usage
+
+Returns a Pandas DataFrame ```dataset```, which contains all Meeting Minutes, indexed by Date:
+```python
+from FedTools import MonetaryPolicyCommittee
+
+dataset = MonetaryPolicyCommittee().find_statements()
+MonetaryPolicyCommittee().pickle_data("directory.pkl")
+```
+
+Returns a Pandas DataFrame ```dataset```, which contains all Beige Books, indexed by Date:
+```python
+from FedTools import BeigeBooks
+
+dataset = BeigeBooks().find_beige_books()
+BeigeBooks().pickle_data("directory.pkl")
+```
+
+Returns a Pandas DataFrame ```dataset```, which contains all Federal Reserve Minutes since 1993, indexed by Date:
+```python
+from FedTools import FederalReserveMins
+
+dataset = FederalReserveMins().find_minutes()
+FederalReserveMins().pickle_data("directory.pkl")
+```
+
+## Edit Default Input Arguments
+
+###Monetary Policy Committee
+
+To modify the ```MonetaryPolicyCommittee``` default parameters, each of the below can be adjusted:
+
+```python
+monetary_policy = MonetaryPolicyCommittee(
+ main_url = 'https://www.federalreserve.gov',
+ calendar_url = 'https://www.federalreserve.gov/monetarypolicy/fomccalendars.htm',
+ start_year = 1994,
+ historical_split = 2014,
+ verbose = True,
+ thread_num = 10)
+
+dataset = monetary_policy.find_statements()
+```
+
+### BeigeBooks
+
+To modify the ```BeigeBooks``` default parameters, each of the below can be adjusted:
+
+```python
+beige_books = BeigeBooks(
+ main_url = 'https://www.federalreserve.gov',
+ beige_book_url='https://www.federalreserve.gov/monetarypolicy/beige-book-default.htm',
+ start_year = 1996,
+ historical_split = 2019,
+ verbose = True,
+ thread_num = 10)
+
+dataset = beige_books.find_beige_books()
+```
+
+### FederalReserveMins
+
+To modify the ```FederalReserveMins``` default parameters, each of the below can be adjusted:
+
+```python
+fed_mins = FederalReserveMins(
+ main_url = 'https://www.federalreserve.gov',
+ calendar_url ='https://www.federalreserve.gov/monetarypolicy/fomccalendars.htm',
+ start_year = 1995,
+ historical_split = 2014,
+ verbose = True,
+ thread_num = 10)
+
+dataset = fed_mins.find_minutes()
+```
+
+### Parameter Explanation
+
+
+All parameters within the package have default values which can be overriden, with a short explanation of each parameter outlined below:
+
+| Argument | Description |
+| ------ | --------- |
+| main_url | Federal Reserve Open Monetary Policy (FOMC) website URL. (str) |
+| calendar_url | URL containing a list of FOMC Meeting dates and Minutes release dates. (str) |
+| beige_book_url | URL containing a list of Beige Book release dates. (str) |
+| start_year | first year from which to begin collecting data. (int) |
+| historical_split | first year considered as historical ([Check Here for FOMC and Minutes][hist] or [Check Here for Beige Books][hist1]). (int) |
+| verbose | boolean determining printing during scraping. (bool) |
+| thread_num | the number of threads to use for web scraping. (int) |
+
+
+
+
+
+
+[hist]: <https://www.federalreserve.gov/monetarypolicy/fomc_historical_year.htm>
+[hist1]: <https://www.federalreserve.gov/monetarypolicy/beige-book-archive.htm>
+
+
+
+%package help
+Summary: Development documents and examples for Fedtools
+Provides: python3-Fedtools-doc
+%description help
+# FedTools
+
+[![Downloads](https://static.pepy.tech/personalized-badge/fedtools?period=total&units=international_system&left_color=black&right_color=blue&left_text=Downloads)](https://pepy.tech/project/fedtools) [![Downloads](https://pepy.tech/badge/fedtools/month)](https://pepy.tech/project/fedtools)
+
+An open source Python library for the scraping of Federal Reserve data.
+
+By default, all modules within FedTools use 10 threads to increase scraping speed. By default, the Output is a
+Pandas DataFrame, indexed by release date of the materials. Additional serialised storage methods are optional.
+
+## Installation
+
+```python
+pip install Fedtools
+```
+
+Import the classes:
+
+```python
+from FedTools import MonetaryPolicyCommittee
+from FedTools import BeigeBooks
+from FedTools import FederalReserveMins
+```
+
+## Usage
+
+Returns a Pandas DataFrame ```dataset```, which contains all Meeting Minutes, indexed by Date:
+```python
+from FedTools import MonetaryPolicyCommittee
+
+dataset = MonetaryPolicyCommittee().find_statements()
+MonetaryPolicyCommittee().pickle_data("directory.pkl")
+```
+
+Returns a Pandas DataFrame ```dataset```, which contains all Beige Books, indexed by Date:
+```python
+from FedTools import BeigeBooks
+
+dataset = BeigeBooks().find_beige_books()
+BeigeBooks().pickle_data("directory.pkl")
+```
+
+Returns a Pandas DataFrame ```dataset```, which contains all Federal Reserve Minutes since 1993, indexed by Date:
+```python
+from FedTools import FederalReserveMins
+
+dataset = FederalReserveMins().find_minutes()
+FederalReserveMins().pickle_data("directory.pkl")
+```
+
+## Edit Default Input Arguments
+
+###Monetary Policy Committee
+
+To modify the ```MonetaryPolicyCommittee``` default parameters, each of the below can be adjusted:
+
+```python
+monetary_policy = MonetaryPolicyCommittee(
+ main_url = 'https://www.federalreserve.gov',
+ calendar_url = 'https://www.federalreserve.gov/monetarypolicy/fomccalendars.htm',
+ start_year = 1994,
+ historical_split = 2014,
+ verbose = True,
+ thread_num = 10)
+
+dataset = monetary_policy.find_statements()
+```
+
+### BeigeBooks
+
+To modify the ```BeigeBooks``` default parameters, each of the below can be adjusted:
+
+```python
+beige_books = BeigeBooks(
+ main_url = 'https://www.federalreserve.gov',
+ beige_book_url='https://www.federalreserve.gov/monetarypolicy/beige-book-default.htm',
+ start_year = 1996,
+ historical_split = 2019,
+ verbose = True,
+ thread_num = 10)
+
+dataset = beige_books.find_beige_books()
+```
+
+### FederalReserveMins
+
+To modify the ```FederalReserveMins``` default parameters, each of the below can be adjusted:
+
+```python
+fed_mins = FederalReserveMins(
+ main_url = 'https://www.federalreserve.gov',
+ calendar_url ='https://www.federalreserve.gov/monetarypolicy/fomccalendars.htm',
+ start_year = 1995,
+ historical_split = 2014,
+ verbose = True,
+ thread_num = 10)
+
+dataset = fed_mins.find_minutes()
+```
+
+### Parameter Explanation
+
+
+All parameters within the package have default values which can be overriden, with a short explanation of each parameter outlined below:
+
+| Argument | Description |
+| ------ | --------- |
+| main_url | Federal Reserve Open Monetary Policy (FOMC) website URL. (str) |
+| calendar_url | URL containing a list of FOMC Meeting dates and Minutes release dates. (str) |
+| beige_book_url | URL containing a list of Beige Book release dates. (str) |
+| start_year | first year from which to begin collecting data. (int) |
+| historical_split | first year considered as historical ([Check Here for FOMC and Minutes][hist] or [Check Here for Beige Books][hist1]). (int) |
+| verbose | boolean determining printing during scraping. (bool) |
+| thread_num | the number of threads to use for web scraping. (int) |
+
+
+
+
+
+
+[hist]: <https://www.federalreserve.gov/monetarypolicy/fomc_historical_year.htm>
+[hist1]: <https://www.federalreserve.gov/monetarypolicy/beige-book-archive.htm>
+
+
+
+%prep
+%autosetup -n Fedtools-0.0.7
+
+%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-Fedtools -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.7-1
+- Package Spec generated