%global _empty_manifest_terminate_build 0 Name: python-pytr Version: 0.1.5 Release: 1 Summary: Use TradeRepublic in terminal License: MIT URL: https://gitlab.com/marzzzello/pytr/ Source0: https://mirrors.aliyun.com/pypi/web/packages/9d/3a/3d00b2f0a48dfb43190126c6bf49615e02e783fae4317130cf80b7837084/pytr-0.1.5.tar.gz BuildArch: noarch Requires: python3-certifi Requires: python3-coloredlogs Requires: python3-ecdsa Requires: python3-packaging Requires: python3-pathvalidate Requires: python3-pygments Requires: python3-requests-futures Requires: python3-shtab Requires: python3-websockets %description # pytr: Use TradeRepublic in terminal This is a library for the private API of the Trade Republic online brokerage. I am not affiliated with Trade Republic Bank GmbH. ## Installation Install with `pip install pytr` Or you can clone the repo like so: ```sh git clone https://github.com/marzzzello/pytr.git cd pytr pip install . ``` ## Usage ``` $ pytr help usage: pytr [-h] [-v {warning,info,debug}] [-V] {help,login,dl_docs,portfolio,details,get_price_alarms,set_price_alarms,export_transactions,completion} ... Use "pytr command_name --help" to get detailed help to a specific command Commands: {help,login,dl_docs,portfolio,details,get_price_alarms,set_price_alarms,export_transactions,completion} Desired action to perform help Print this help message login Check if credentials file exists. If not create it and ask for input. Try to login. Ask for device reset if needed dl_docs Download all pdf documents from the timeline and sort them into folders. Also export account transactions (account_transactions.csv) and JSON files with all events (events_with_documents.json and other_events.json portfolio Show current portfolio details Get details for an ISIN get_price_alarms Get overview of current price alarms set_price_alarms Set price alarms based on diff from current price export_transactions Create a CSV with the deposits and removals ready for importing into Portfolio Performance completion Print shell tab completion Options: -h, --help show this help message and exit -v {warning,info,debug}, --verbosity {warning,info,debug} Set verbosity level (default: info) -V, --version Print version information and quit ``` ## Authentication There are two authentication methods: - Web login (default) - App login Web login is the newer method that uses the same login method as [app.traderepublic.com](https://app.traderepublic.com/), meaning you receive a token in the TradeRepublic app or via SMS. App login is the older method that uses the same login method as the TradeRepublic app. First you need to perform a device reset - a private key will be generated that pins your "device". The private key is saved to your keyfile. This procedure will log you out from your mobile device. ```sh $ pytr login $ # or $ pytr login --phone_no +49123456789 --pin 1234 ``` If no arguments are supplied pytr will look for them in the file `~/.pytr/credentials` (the first line must contain the phone number, the second line the pin). If the file doesn't exist pytr will ask for for the phone number and pin. %package -n python3-pytr Summary: Use TradeRepublic in terminal Provides: python-pytr BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-pytr # pytr: Use TradeRepublic in terminal This is a library for the private API of the Trade Republic online brokerage. I am not affiliated with Trade Republic Bank GmbH. ## Installation Install with `pip install pytr` Or you can clone the repo like so: ```sh git clone https://github.com/marzzzello/pytr.git cd pytr pip install . ``` ## Usage ``` $ pytr help usage: pytr [-h] [-v {warning,info,debug}] [-V] {help,login,dl_docs,portfolio,details,get_price_alarms,set_price_alarms,export_transactions,completion} ... Use "pytr command_name --help" to get detailed help to a specific command Commands: {help,login,dl_docs,portfolio,details,get_price_alarms,set_price_alarms,export_transactions,completion} Desired action to perform help Print this help message login Check if credentials file exists. If not create it and ask for input. Try to login. Ask for device reset if needed dl_docs Download all pdf documents from the timeline and sort them into folders. Also export account transactions (account_transactions.csv) and JSON files with all events (events_with_documents.json and other_events.json portfolio Show current portfolio details Get details for an ISIN get_price_alarms Get overview of current price alarms set_price_alarms Set price alarms based on diff from current price export_transactions Create a CSV with the deposits and removals ready for importing into Portfolio Performance completion Print shell tab completion Options: -h, --help show this help message and exit -v {warning,info,debug}, --verbosity {warning,info,debug} Set verbosity level (default: info) -V, --version Print version information and quit ``` ## Authentication There are two authentication methods: - Web login (default) - App login Web login is the newer method that uses the same login method as [app.traderepublic.com](https://app.traderepublic.com/), meaning you receive a token in the TradeRepublic app or via SMS. App login is the older method that uses the same login method as the TradeRepublic app. First you need to perform a device reset - a private key will be generated that pins your "device". The private key is saved to your keyfile. This procedure will log you out from your mobile device. ```sh $ pytr login $ # or $ pytr login --phone_no +49123456789 --pin 1234 ``` If no arguments are supplied pytr will look for them in the file `~/.pytr/credentials` (the first line must contain the phone number, the second line the pin). If the file doesn't exist pytr will ask for for the phone number and pin. %package help Summary: Development documents and examples for pytr Provides: python3-pytr-doc %description help # pytr: Use TradeRepublic in terminal This is a library for the private API of the Trade Republic online brokerage. I am not affiliated with Trade Republic Bank GmbH. ## Installation Install with `pip install pytr` Or you can clone the repo like so: ```sh git clone https://github.com/marzzzello/pytr.git cd pytr pip install . ``` ## Usage ``` $ pytr help usage: pytr [-h] [-v {warning,info,debug}] [-V] {help,login,dl_docs,portfolio,details,get_price_alarms,set_price_alarms,export_transactions,completion} ... Use "pytr command_name --help" to get detailed help to a specific command Commands: {help,login,dl_docs,portfolio,details,get_price_alarms,set_price_alarms,export_transactions,completion} Desired action to perform help Print this help message login Check if credentials file exists. If not create it and ask for input. Try to login. Ask for device reset if needed dl_docs Download all pdf documents from the timeline and sort them into folders. Also export account transactions (account_transactions.csv) and JSON files with all events (events_with_documents.json and other_events.json portfolio Show current portfolio details Get details for an ISIN get_price_alarms Get overview of current price alarms set_price_alarms Set price alarms based on diff from current price export_transactions Create a CSV with the deposits and removals ready for importing into Portfolio Performance completion Print shell tab completion Options: -h, --help show this help message and exit -v {warning,info,debug}, --verbosity {warning,info,debug} Set verbosity level (default: info) -V, --version Print version information and quit ``` ## Authentication There are two authentication methods: - Web login (default) - App login Web login is the newer method that uses the same login method as [app.traderepublic.com](https://app.traderepublic.com/), meaning you receive a token in the TradeRepublic app or via SMS. App login is the older method that uses the same login method as the TradeRepublic app. First you need to perform a device reset - a private key will be generated that pins your "device". The private key is saved to your keyfile. This procedure will log you out from your mobile device. ```sh $ pytr login $ # or $ pytr login --phone_no +49123456789 --pin 1234 ``` If no arguments are supplied pytr will look for them in the file `~/.pytr/credentials` (the first line must contain the phone number, the second line the pin). If the file doesn't exist pytr will ask for for the phone number and pin. %prep %autosetup -n pytr-0.1.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-pytr -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Thu Jun 08 2023 Python_Bot - 0.1.5-1 - Package Spec generated