%global _empty_manifest_terminate_build 0 Name: python-py-firebase-dynamic-links Version: 1.0.1 Release: 1 Summary: Python client for Firebase Dynamic Links API License: MIT License URL: https://github.com/dpeite/py-firebase-dynamic-links Source0: https://mirrors.nju.edu.cn/pypi/web/packages/67/24/f46e427c32215d242be84ca2884cced1af15612ebd47f96897355b42968b/py-firebase-dynamic-links-1.0.1.tar.gz BuildArch: noarch %description # Firebase Dynamic Links python client Simple python client to generate [Firebase Dynamic Links](https://firebase.google.com/docs/dynamic-links/). It allows to use a custom domain and fields for generate links for android and ios. ### Requirements * Python >= 3.4 * PIP * API Key from [Firebase console Settings page](https://console.firebase.google.com/project/_/settings/general/). ### Installation ```bash pip install py-firebase-dynamic-links ``` ### Usage ```python from firebase_dynamic_links import DynamicLinks api_key = 'your_api_key' domain = 'example.page.link' timeout = 10 dl = DynamicLinks(api_key, domain, timeout) # or DynamicLinks(api_key, domain) params = { "androidInfo": { "androidPackageName": 'packagename', "androidFallbackLink": 'fallbacklink', "androidMinPackageVersionCode": '1' }, } # dl.generate_dynamic_link(url_to_redirect, create_short_url, params) or # dl.generate_dynamic_link(url_to_redirect) short_link = dl.generate_dynamic_link('http://google.es', True, params) #https://example.page.link/h77c ``` * `api_key`: [Key from firebase console](https://console.firebase.google.com/project/_/settings/general/) * `domain`: Domain uri prefix created in firebase console. For example `example.page.link` or your custom domain. * `timeout`: Timeout for the api call * `params`: Dictionary of optional params. For example: ```python { "androidInfo": { "androidPackageName": string, "androidFallbackLink": string, "androidMinPackageVersionCode": string }, "iosInfo": { "iosBundleId": string, "iosFallbackLink": string, "iosCustomScheme": string, "iosIpadFallbackLink": string, "iosIpadBundleId": string, "iosAppStoreId": string } } ``` [More params available here](https://firebase.google.com/docs/reference/dynamic-links/link-shortener) ### Reference [https://firebase.google.com/docs/dynamic-links/rest](https://firebase.google.com/docs/dynamic-links/rest) [https://firebase.google.com/docs/reference/dynamic-links/link-shortener](https://firebase.google.com/docs/reference/dynamic-links/link-shortener) %package -n python3-py-firebase-dynamic-links Summary: Python client for Firebase Dynamic Links API Provides: python-py-firebase-dynamic-links BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-py-firebase-dynamic-links # Firebase Dynamic Links python client Simple python client to generate [Firebase Dynamic Links](https://firebase.google.com/docs/dynamic-links/). It allows to use a custom domain and fields for generate links for android and ios. ### Requirements * Python >= 3.4 * PIP * API Key from [Firebase console Settings page](https://console.firebase.google.com/project/_/settings/general/). ### Installation ```bash pip install py-firebase-dynamic-links ``` ### Usage ```python from firebase_dynamic_links import DynamicLinks api_key = 'your_api_key' domain = 'example.page.link' timeout = 10 dl = DynamicLinks(api_key, domain, timeout) # or DynamicLinks(api_key, domain) params = { "androidInfo": { "androidPackageName": 'packagename', "androidFallbackLink": 'fallbacklink', "androidMinPackageVersionCode": '1' }, } # dl.generate_dynamic_link(url_to_redirect, create_short_url, params) or # dl.generate_dynamic_link(url_to_redirect) short_link = dl.generate_dynamic_link('http://google.es', True, params) #https://example.page.link/h77c ``` * `api_key`: [Key from firebase console](https://console.firebase.google.com/project/_/settings/general/) * `domain`: Domain uri prefix created in firebase console. For example `example.page.link` or your custom domain. * `timeout`: Timeout for the api call * `params`: Dictionary of optional params. For example: ```python { "androidInfo": { "androidPackageName": string, "androidFallbackLink": string, "androidMinPackageVersionCode": string }, "iosInfo": { "iosBundleId": string, "iosFallbackLink": string, "iosCustomScheme": string, "iosIpadFallbackLink": string, "iosIpadBundleId": string, "iosAppStoreId": string } } ``` [More params available here](https://firebase.google.com/docs/reference/dynamic-links/link-shortener) ### Reference [https://firebase.google.com/docs/dynamic-links/rest](https://firebase.google.com/docs/dynamic-links/rest) [https://firebase.google.com/docs/reference/dynamic-links/link-shortener](https://firebase.google.com/docs/reference/dynamic-links/link-shortener) %package help Summary: Development documents and examples for py-firebase-dynamic-links Provides: python3-py-firebase-dynamic-links-doc %description help # Firebase Dynamic Links python client Simple python client to generate [Firebase Dynamic Links](https://firebase.google.com/docs/dynamic-links/). It allows to use a custom domain and fields for generate links for android and ios. ### Requirements * Python >= 3.4 * PIP * API Key from [Firebase console Settings page](https://console.firebase.google.com/project/_/settings/general/). ### Installation ```bash pip install py-firebase-dynamic-links ``` ### Usage ```python from firebase_dynamic_links import DynamicLinks api_key = 'your_api_key' domain = 'example.page.link' timeout = 10 dl = DynamicLinks(api_key, domain, timeout) # or DynamicLinks(api_key, domain) params = { "androidInfo": { "androidPackageName": 'packagename', "androidFallbackLink": 'fallbacklink', "androidMinPackageVersionCode": '1' }, } # dl.generate_dynamic_link(url_to_redirect, create_short_url, params) or # dl.generate_dynamic_link(url_to_redirect) short_link = dl.generate_dynamic_link('http://google.es', True, params) #https://example.page.link/h77c ``` * `api_key`: [Key from firebase console](https://console.firebase.google.com/project/_/settings/general/) * `domain`: Domain uri prefix created in firebase console. For example `example.page.link` or your custom domain. * `timeout`: Timeout for the api call * `params`: Dictionary of optional params. For example: ```python { "androidInfo": { "androidPackageName": string, "androidFallbackLink": string, "androidMinPackageVersionCode": string }, "iosInfo": { "iosBundleId": string, "iosFallbackLink": string, "iosCustomScheme": string, "iosIpadFallbackLink": string, "iosIpadBundleId": string, "iosAppStoreId": string } } ``` [More params available here](https://firebase.google.com/docs/reference/dynamic-links/link-shortener) ### Reference [https://firebase.google.com/docs/dynamic-links/rest](https://firebase.google.com/docs/dynamic-links/rest) [https://firebase.google.com/docs/reference/dynamic-links/link-shortener](https://firebase.google.com/docs/reference/dynamic-links/link-shortener) %prep %autosetup -n py-firebase-dynamic-links-1.0.1 %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-py-firebase-dynamic-links -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 1.0.1-1 - Package Spec generated