summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 03:16:25 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 03:16:25 +0000
commitcd649062d3d3898c0965ce7e82c46502e1ecd132 (patch)
tree16fd000ccfd445679e4c68ea7407bb77015eafa4
parent200b04da8794d5a062e63adac76b0a17abc58ff1 (diff)
automatic import of python-refinitiv-dataplatform
-rw-r--r--.gitignore1
-rw-r--r--python-refinitiv-dataplatform.spec521
-rw-r--r--sources1
3 files changed, 523 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..80e1015 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/refinitiv-dataplatform-1.0.0a21.tar.gz
diff --git a/python-refinitiv-dataplatform.spec b/python-refinitiv-dataplatform.spec
new file mode 100644
index 0000000..a029f06
--- /dev/null
+++ b/python-refinitiv-dataplatform.spec
@@ -0,0 +1,521 @@
+%global _empty_manifest_terminate_build 0
+Name: python-refinitiv-dataplatform
+Version: 1.0.0a21
+Release: 1
+Summary: Python package for retrieving data.
+License: Apache 2.0
+URL: https://developers.refinitiv.com/refinitiv-data-platform/refinitiv-data-platform-libraries
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fb/b5/1290ef3524264df50ca42a286af5aec1ff0d771b3a61aa565ddb841d21a5/refinitiv-dataplatform-1.0.0a21.tar.gz
+BuildArch: noarch
+
+Requires: python3-httpx
+Requires: python3-nest-asyncio
+Requires: python3-datetime
+Requires: python3-validators
+Requires: python3-pandas
+Requires: python3-numpy
+Requires: python3-appdirs
+Requires: python3-dateutil
+Requires: python3-websocket-client
+Requires: python3-deprecation
+Requires: python3-configuration
+Requires: python3-eventemitter
+Requires: python3-watchdog
+Requires: python3-scipy
+Requires: python3-certifi
+Requires: python3-chardet
+Requires: python3-h2
+Requires: python3-idna
+Requires: python3-rfc3986
+Requires: python3-requests
+
+%description
+The Refinitiv Data Plaform Library for Python provides a set of ease-of-use
+functions and classes that gives your applications a uniform access to the
+breath and depth of financial data and services available on the Refinitiv
+Data Platform.
+
+Thanks to this library the same Python code can be used to retrieve data
+whatever the access point your application uses to connect to the Refinitiv
+Data Platform (either via a direct connection, via Eikon, via the Refinitiv
+Workspace or even via a deployed Enterprise Platform).
+
+The library provides several abstraction layers enabling different
+programming styles and technics suitable for all developers from Financial
+Coders to Seasoned Developers (synchronous function calls, async/await,
+event driven).
+
+# Some examples
+
+## Import the Refinitiv Data Platform Library
+
+```python
+import refinitiv.dataplatform as rdp
+```
+
+## Chose your platform access point...
+
+### ...either directly to the Refinitiv Data Platform...
+
+```python
+rdp.open_platform_session(
+ '8e9bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1b035d',
+ rdp.GrantPassword(
+ 'my_login',
+ 'my_password'
+ )
+)
+```
+
+### ...or via Eikon/Refinitiv Workspace...
+
+```python
+rdp.open_desktop_session('8e9bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1b035d')
+```
+
+## Fundamental And Reference data retrieval
+
+```python
+rdp.get_data(
+ universe=["TRI.N", "IBM.N"],
+ fields=["TR.Revenue", "TR.GrossProfit"]
+)
+```
+
+| | instrument | date | TR.Revenue | TR.GrossProfit |
+| --- | ---------- | ------------------- | ----------- | -------------- |
+| 0 | TRI.N | 2020-12-31T00:00:00 | 5984000000 | 5656000000 |
+| 1 | IBM.N | 2020-12-31T00:00:00 | 73620000000 | 35574000000 |
+
+
+## Historical data retrieval
+
+```python
+rdp.get_historical_price_summaries(
+ universe = 'VOD.L',
+ interval = rdp.Intervals.DAILY,
+ fields = ['BID','ASK','OPEN_PRC','HIGH_1','LOW_1','TRDPRC_1','NUM_MOVES','TRNOVR_UNS']
+)
+```
+
+| | BID | ASK | OPEN_PRC | HIGH_1 | LOW_1 | TRDPRC_1 | NUM_MOVES | TRNOVR_UNS |
+| --- | --- | --- | -------- | ------ | ----- | -------- | --------- | ---------- |
+| 2019-12-12 | 144.32 | 144.34 | 144.42 | 145.66 | 143.46 | 144.18 | 12631.0 | 8498347218.71154 |
+| 2019-12-11 | 143.58 | 143.6 | 142.72 | 144.8 | 142.62 | 143.58 | 10395.0 | 8815450412.65353 |
+| 2019-12-10 | 142.74 | 142.78 | 143.84 | 143.84 | 141.48 | 142.74 | 10311.0 | 8070285210.45742 |
+| ... | ... | ... | ... | ... | ... | ... | ... | ... |
+| 2019-11-18 | 152.1 | 152.12 | 154.74 | 155.66 | 152.0 | 152.12 | 14606.0 | 19322988639.34 |
+| 2019-11-15 | 154.6 | 154.62 | 160.68 | 160.68 | 154.06 | 154.6326 | 17035.0 | 31993013818.37456 |
+
+## Real-time streaming data retrieval
+
+```python
+streaming_prices = rdp.StreamingPrices(
+ universe = ['EUR=', 'GBP=', 'JPY=', 'CAD='],
+ fields = ['DSPLY_NAME', 'BID', 'ASK'],
+ on_update = lambda streaming_price, instrument_name, fields :
+ print("Update received for {}: {}".format(instrument_name, fields))
+)
+
+streaming_prices.open()
+```
+
+Output:
+
+ <StreamState.Open: 3>
+
+ Update received for JPY=: {'DSPLY_NAME': 'BARCLAYS LON', 'BID': 109.59, 'ASK': 109.62}
+ Update received for GBP=: {'DSPLY_NAME': 'ASANPACIFIBK MOW', 'BID': 1.341, 'ASK': 1.3411}
+ Update received for EUR=: {'DSPLY_NAME': 'UBS ZUR', 'BID': 1.117, 'ASK': 1.1174}
+ Update received for CAD=: {'DSPLY_NAME': 'HSBC LON', 'BID': 1.3165, 'ASK': 1.3167}
+ Update received for JPY=: {'DSPLY_NAME': 'ASANPACIFIBK MOW', 'BID': 109.59, 'ASK': 109.61}
+ Update received for GBP=: {'DSPLY_NAME': 'INTERPROMBAN MOW', 'BID': 1.341, 'ASK': 1.3412}
+ Update received for EUR=: {'DSPLY_NAME': 'RBS LON', 'BID': 1.117, 'ASK': 1.1174}
+ Update received for CAD=: {'DSPLY_NAME': 'CIBC TOR', 'BID': 1.316, 'ASK': 1.3164}
+ Update received for JPY=: {'DSPLY_NAME': 'BARCLAYS LON', 'BID': 109.59, 'ASK': 109.62}
+ Update received for GBP=: {'DSPLY_NAME': 'INTERPROMBAN MOW', 'BID': 1.341, 'ASK': 1.3413}
+ Update received for EUR=: {'DSPLY_NAME': 'BARCLAYS LON', 'BID': 1.117, 'ASK': 1.1174}
+ Update received for CAD=: {'DSPLY_NAME': 'CIBC TOR', 'BID': 1.316, 'ASK': 1.3164}
+ Update received for JPY=: {'DSPLY_NAME': 'ASANPACIFIBK MOW', 'BID': 109.59, 'ASK': 109.61}
+ Update received for GBP=: {'DSPLY_NAME': 'BARCLAYS LON', 'BID': 1.341, 'ASK': 1.3414}
+
+
+## Real-time snapshot data retrieval
+
+```python
+rdp.get_snapshot(
+ universe = ['GBP=','JPY='],
+ fields = ['BID','ASK']
+)
+```
+
+| | Instruments | BID | ASK |
+| --- | ----------- | --- | --- |
+| 0 | GBP= | 1.3211 | 1.3212 |
+| 1 | JPY= | 108.6100 | 108.6200 |
+
+# Learning materials
+
+ To learn more about the Refinitiv Data Platform Library for python just
+ connect to the Refinitiv Developer Community. By
+ [registering](https://developers.refinitiv.com/iam/register) and
+ [login](https://developers.refinitiv.com/content/devportal/en_us/initCookie.html) to the Refinitiv
+ Developer Community portal you will get free access to a number of
+ learning materials like
+ [Quick Start guides](https://developers.refinitiv.com/refinitiv-data-platform/refinitiv-data-platform-libraries/quick-start), [Tutorials](https://developers.refinitiv.com/refinitiv-data-platform/refinitiv-data-platform-libraries/learning), [Documentation](https://developers.refinitiv.com/refinitiv-data-platform/refinitiv-data-platform-libraries/docs)
+ and much more.
+
+# Help and Support
+
+If you have any questions regarding the API usage, please post them on
+the [Refinitiv Data Platform Q&A Forum](https://community.developers.refinitiv.com/spaces/321/index.html).
+The Refinitiv Developer Community will be very pleased to help you.
+
+
+
+
+
+%package -n python3-refinitiv-dataplatform
+Summary: Python package for retrieving data.
+Provides: python-refinitiv-dataplatform
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-refinitiv-dataplatform
+The Refinitiv Data Plaform Library for Python provides a set of ease-of-use
+functions and classes that gives your applications a uniform access to the
+breath and depth of financial data and services available on the Refinitiv
+Data Platform.
+
+Thanks to this library the same Python code can be used to retrieve data
+whatever the access point your application uses to connect to the Refinitiv
+Data Platform (either via a direct connection, via Eikon, via the Refinitiv
+Workspace or even via a deployed Enterprise Platform).
+
+The library provides several abstraction layers enabling different
+programming styles and technics suitable for all developers from Financial
+Coders to Seasoned Developers (synchronous function calls, async/await,
+event driven).
+
+# Some examples
+
+## Import the Refinitiv Data Platform Library
+
+```python
+import refinitiv.dataplatform as rdp
+```
+
+## Chose your platform access point...
+
+### ...either directly to the Refinitiv Data Platform...
+
+```python
+rdp.open_platform_session(
+ '8e9bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1b035d',
+ rdp.GrantPassword(
+ 'my_login',
+ 'my_password'
+ )
+)
+```
+
+### ...or via Eikon/Refinitiv Workspace...
+
+```python
+rdp.open_desktop_session('8e9bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1b035d')
+```
+
+## Fundamental And Reference data retrieval
+
+```python
+rdp.get_data(
+ universe=["TRI.N", "IBM.N"],
+ fields=["TR.Revenue", "TR.GrossProfit"]
+)
+```
+
+| | instrument | date | TR.Revenue | TR.GrossProfit |
+| --- | ---------- | ------------------- | ----------- | -------------- |
+| 0 | TRI.N | 2020-12-31T00:00:00 | 5984000000 | 5656000000 |
+| 1 | IBM.N | 2020-12-31T00:00:00 | 73620000000 | 35574000000 |
+
+
+## Historical data retrieval
+
+```python
+rdp.get_historical_price_summaries(
+ universe = 'VOD.L',
+ interval = rdp.Intervals.DAILY,
+ fields = ['BID','ASK','OPEN_PRC','HIGH_1','LOW_1','TRDPRC_1','NUM_MOVES','TRNOVR_UNS']
+)
+```
+
+| | BID | ASK | OPEN_PRC | HIGH_1 | LOW_1 | TRDPRC_1 | NUM_MOVES | TRNOVR_UNS |
+| --- | --- | --- | -------- | ------ | ----- | -------- | --------- | ---------- |
+| 2019-12-12 | 144.32 | 144.34 | 144.42 | 145.66 | 143.46 | 144.18 | 12631.0 | 8498347218.71154 |
+| 2019-12-11 | 143.58 | 143.6 | 142.72 | 144.8 | 142.62 | 143.58 | 10395.0 | 8815450412.65353 |
+| 2019-12-10 | 142.74 | 142.78 | 143.84 | 143.84 | 141.48 | 142.74 | 10311.0 | 8070285210.45742 |
+| ... | ... | ... | ... | ... | ... | ... | ... | ... |
+| 2019-11-18 | 152.1 | 152.12 | 154.74 | 155.66 | 152.0 | 152.12 | 14606.0 | 19322988639.34 |
+| 2019-11-15 | 154.6 | 154.62 | 160.68 | 160.68 | 154.06 | 154.6326 | 17035.0 | 31993013818.37456 |
+
+## Real-time streaming data retrieval
+
+```python
+streaming_prices = rdp.StreamingPrices(
+ universe = ['EUR=', 'GBP=', 'JPY=', 'CAD='],
+ fields = ['DSPLY_NAME', 'BID', 'ASK'],
+ on_update = lambda streaming_price, instrument_name, fields :
+ print("Update received for {}: {}".format(instrument_name, fields))
+)
+
+streaming_prices.open()
+```
+
+Output:
+
+ <StreamState.Open: 3>
+
+ Update received for JPY=: {'DSPLY_NAME': 'BARCLAYS LON', 'BID': 109.59, 'ASK': 109.62}
+ Update received for GBP=: {'DSPLY_NAME': 'ASANPACIFIBK MOW', 'BID': 1.341, 'ASK': 1.3411}
+ Update received for EUR=: {'DSPLY_NAME': 'UBS ZUR', 'BID': 1.117, 'ASK': 1.1174}
+ Update received for CAD=: {'DSPLY_NAME': 'HSBC LON', 'BID': 1.3165, 'ASK': 1.3167}
+ Update received for JPY=: {'DSPLY_NAME': 'ASANPACIFIBK MOW', 'BID': 109.59, 'ASK': 109.61}
+ Update received for GBP=: {'DSPLY_NAME': 'INTERPROMBAN MOW', 'BID': 1.341, 'ASK': 1.3412}
+ Update received for EUR=: {'DSPLY_NAME': 'RBS LON', 'BID': 1.117, 'ASK': 1.1174}
+ Update received for CAD=: {'DSPLY_NAME': 'CIBC TOR', 'BID': 1.316, 'ASK': 1.3164}
+ Update received for JPY=: {'DSPLY_NAME': 'BARCLAYS LON', 'BID': 109.59, 'ASK': 109.62}
+ Update received for GBP=: {'DSPLY_NAME': 'INTERPROMBAN MOW', 'BID': 1.341, 'ASK': 1.3413}
+ Update received for EUR=: {'DSPLY_NAME': 'BARCLAYS LON', 'BID': 1.117, 'ASK': 1.1174}
+ Update received for CAD=: {'DSPLY_NAME': 'CIBC TOR', 'BID': 1.316, 'ASK': 1.3164}
+ Update received for JPY=: {'DSPLY_NAME': 'ASANPACIFIBK MOW', 'BID': 109.59, 'ASK': 109.61}
+ Update received for GBP=: {'DSPLY_NAME': 'BARCLAYS LON', 'BID': 1.341, 'ASK': 1.3414}
+
+
+## Real-time snapshot data retrieval
+
+```python
+rdp.get_snapshot(
+ universe = ['GBP=','JPY='],
+ fields = ['BID','ASK']
+)
+```
+
+| | Instruments | BID | ASK |
+| --- | ----------- | --- | --- |
+| 0 | GBP= | 1.3211 | 1.3212 |
+| 1 | JPY= | 108.6100 | 108.6200 |
+
+# Learning materials
+
+ To learn more about the Refinitiv Data Platform Library for python just
+ connect to the Refinitiv Developer Community. By
+ [registering](https://developers.refinitiv.com/iam/register) and
+ [login](https://developers.refinitiv.com/content/devportal/en_us/initCookie.html) to the Refinitiv
+ Developer Community portal you will get free access to a number of
+ learning materials like
+ [Quick Start guides](https://developers.refinitiv.com/refinitiv-data-platform/refinitiv-data-platform-libraries/quick-start), [Tutorials](https://developers.refinitiv.com/refinitiv-data-platform/refinitiv-data-platform-libraries/learning), [Documentation](https://developers.refinitiv.com/refinitiv-data-platform/refinitiv-data-platform-libraries/docs)
+ and much more.
+
+# Help and Support
+
+If you have any questions regarding the API usage, please post them on
+the [Refinitiv Data Platform Q&A Forum](https://community.developers.refinitiv.com/spaces/321/index.html).
+The Refinitiv Developer Community will be very pleased to help you.
+
+
+
+
+
+%package help
+Summary: Development documents and examples for refinitiv-dataplatform
+Provides: python3-refinitiv-dataplatform-doc
+%description help
+The Refinitiv Data Plaform Library for Python provides a set of ease-of-use
+functions and classes that gives your applications a uniform access to the
+breath and depth of financial data and services available on the Refinitiv
+Data Platform.
+
+Thanks to this library the same Python code can be used to retrieve data
+whatever the access point your application uses to connect to the Refinitiv
+Data Platform (either via a direct connection, via Eikon, via the Refinitiv
+Workspace or even via a deployed Enterprise Platform).
+
+The library provides several abstraction layers enabling different
+programming styles and technics suitable for all developers from Financial
+Coders to Seasoned Developers (synchronous function calls, async/await,
+event driven).
+
+# Some examples
+
+## Import the Refinitiv Data Platform Library
+
+```python
+import refinitiv.dataplatform as rdp
+```
+
+## Chose your platform access point...
+
+### ...either directly to the Refinitiv Data Platform...
+
+```python
+rdp.open_platform_session(
+ '8e9bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1b035d',
+ rdp.GrantPassword(
+ 'my_login',
+ 'my_password'
+ )
+)
+```
+
+### ...or via Eikon/Refinitiv Workspace...
+
+```python
+rdp.open_desktop_session('8e9bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1b035d')
+```
+
+## Fundamental And Reference data retrieval
+
+```python
+rdp.get_data(
+ universe=["TRI.N", "IBM.N"],
+ fields=["TR.Revenue", "TR.GrossProfit"]
+)
+```
+
+| | instrument | date | TR.Revenue | TR.GrossProfit |
+| --- | ---------- | ------------------- | ----------- | -------------- |
+| 0 | TRI.N | 2020-12-31T00:00:00 | 5984000000 | 5656000000 |
+| 1 | IBM.N | 2020-12-31T00:00:00 | 73620000000 | 35574000000 |
+
+
+## Historical data retrieval
+
+```python
+rdp.get_historical_price_summaries(
+ universe = 'VOD.L',
+ interval = rdp.Intervals.DAILY,
+ fields = ['BID','ASK','OPEN_PRC','HIGH_1','LOW_1','TRDPRC_1','NUM_MOVES','TRNOVR_UNS']
+)
+```
+
+| | BID | ASK | OPEN_PRC | HIGH_1 | LOW_1 | TRDPRC_1 | NUM_MOVES | TRNOVR_UNS |
+| --- | --- | --- | -------- | ------ | ----- | -------- | --------- | ---------- |
+| 2019-12-12 | 144.32 | 144.34 | 144.42 | 145.66 | 143.46 | 144.18 | 12631.0 | 8498347218.71154 |
+| 2019-12-11 | 143.58 | 143.6 | 142.72 | 144.8 | 142.62 | 143.58 | 10395.0 | 8815450412.65353 |
+| 2019-12-10 | 142.74 | 142.78 | 143.84 | 143.84 | 141.48 | 142.74 | 10311.0 | 8070285210.45742 |
+| ... | ... | ... | ... | ... | ... | ... | ... | ... |
+| 2019-11-18 | 152.1 | 152.12 | 154.74 | 155.66 | 152.0 | 152.12 | 14606.0 | 19322988639.34 |
+| 2019-11-15 | 154.6 | 154.62 | 160.68 | 160.68 | 154.06 | 154.6326 | 17035.0 | 31993013818.37456 |
+
+## Real-time streaming data retrieval
+
+```python
+streaming_prices = rdp.StreamingPrices(
+ universe = ['EUR=', 'GBP=', 'JPY=', 'CAD='],
+ fields = ['DSPLY_NAME', 'BID', 'ASK'],
+ on_update = lambda streaming_price, instrument_name, fields :
+ print("Update received for {}: {}".format(instrument_name, fields))
+)
+
+streaming_prices.open()
+```
+
+Output:
+
+ <StreamState.Open: 3>
+
+ Update received for JPY=: {'DSPLY_NAME': 'BARCLAYS LON', 'BID': 109.59, 'ASK': 109.62}
+ Update received for GBP=: {'DSPLY_NAME': 'ASANPACIFIBK MOW', 'BID': 1.341, 'ASK': 1.3411}
+ Update received for EUR=: {'DSPLY_NAME': 'UBS ZUR', 'BID': 1.117, 'ASK': 1.1174}
+ Update received for CAD=: {'DSPLY_NAME': 'HSBC LON', 'BID': 1.3165, 'ASK': 1.3167}
+ Update received for JPY=: {'DSPLY_NAME': 'ASANPACIFIBK MOW', 'BID': 109.59, 'ASK': 109.61}
+ Update received for GBP=: {'DSPLY_NAME': 'INTERPROMBAN MOW', 'BID': 1.341, 'ASK': 1.3412}
+ Update received for EUR=: {'DSPLY_NAME': 'RBS LON', 'BID': 1.117, 'ASK': 1.1174}
+ Update received for CAD=: {'DSPLY_NAME': 'CIBC TOR', 'BID': 1.316, 'ASK': 1.3164}
+ Update received for JPY=: {'DSPLY_NAME': 'BARCLAYS LON', 'BID': 109.59, 'ASK': 109.62}
+ Update received for GBP=: {'DSPLY_NAME': 'INTERPROMBAN MOW', 'BID': 1.341, 'ASK': 1.3413}
+ Update received for EUR=: {'DSPLY_NAME': 'BARCLAYS LON', 'BID': 1.117, 'ASK': 1.1174}
+ Update received for CAD=: {'DSPLY_NAME': 'CIBC TOR', 'BID': 1.316, 'ASK': 1.3164}
+ Update received for JPY=: {'DSPLY_NAME': 'ASANPACIFIBK MOW', 'BID': 109.59, 'ASK': 109.61}
+ Update received for GBP=: {'DSPLY_NAME': 'BARCLAYS LON', 'BID': 1.341, 'ASK': 1.3414}
+
+
+## Real-time snapshot data retrieval
+
+```python
+rdp.get_snapshot(
+ universe = ['GBP=','JPY='],
+ fields = ['BID','ASK']
+)
+```
+
+| | Instruments | BID | ASK |
+| --- | ----------- | --- | --- |
+| 0 | GBP= | 1.3211 | 1.3212 |
+| 1 | JPY= | 108.6100 | 108.6200 |
+
+# Learning materials
+
+ To learn more about the Refinitiv Data Platform Library for python just
+ connect to the Refinitiv Developer Community. By
+ [registering](https://developers.refinitiv.com/iam/register) and
+ [login](https://developers.refinitiv.com/content/devportal/en_us/initCookie.html) to the Refinitiv
+ Developer Community portal you will get free access to a number of
+ learning materials like
+ [Quick Start guides](https://developers.refinitiv.com/refinitiv-data-platform/refinitiv-data-platform-libraries/quick-start), [Tutorials](https://developers.refinitiv.com/refinitiv-data-platform/refinitiv-data-platform-libraries/learning), [Documentation](https://developers.refinitiv.com/refinitiv-data-platform/refinitiv-data-platform-libraries/docs)
+ and much more.
+
+# Help and Support
+
+If you have any questions regarding the API usage, please post them on
+the [Refinitiv Data Platform Q&A Forum](https://community.developers.refinitiv.com/spaces/321/index.html).
+The Refinitiv Developer Community will be very pleased to help you.
+
+
+
+
+
+%prep
+%autosetup -n refinitiv-dataplatform-1.0.0a21
+
+%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-refinitiv-dataplatform -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0a21-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..3da8073
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b1e787234c229c4f8e6abf7ec4f18641 refinitiv-dataplatform-1.0.0a21.tar.gz