%global _empty_manifest_terminate_build 0 Name: python-api-display-purposes Version: 0.0.3 Release: 1 Summary: python wrapper for displaypurposes.com's api License: GNU General Public License v3 or later (GPLv3+) URL: https://github.com/KevinRNelson/displaypurposes Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6c/9f/40dafa943f471d5484968c5c2a63103606ba7f4921f93bc6ec1382683dc2/api-display-purposes-0.0.3.tar.gz BuildArch: noarch %description # DisplayPurposes DisplayPurposes is a Python library for programmatically interacting with the website https://displaypurposes.com ## Installation Use the package manager [pip](https://pip.pypa.io/en/stable/) to install displaypurposes ```bash pip install api-display-purposes ``` ## Usage ```python from apidisplaypurposes import displaypurposes # obtain tags similar to #happy displaypurposes.tag('happy') # obtain 10 tags similar to #happy displaypurposes.tag('happy', limit=10) # obtain 20 tags similar to #happy emulating firefox GET requests displaypurposes.tag('happy', limit=20, browser='firefox') # obtain tags that share an edge with #happy displaypurposes.graph('happy') # obtain tags that share an edge with #happy emulating firefox GET requests displaypurposes.graph('happy', browser='firefox') # obtain the 20 most popular tags used within the specified window displaypurposes.map(-118.77636909484865, 33.23850805662313, -117.04052925109865, 35.10400554120783, zoom=14, limit=20) # obtain the 20 most popular tags used within the specified window emulating chrome GET requests displaypurposes.map(-118.77636909484865, 33.23850805662313, -117.04052925109865, 35.10400554120783, zoom=14, limit=20, browser='chrome') ``` ## Acknowledgement Of course this project could not exist without the work of the makers of https://displaypurposes.com. Thank you for the work you put into this useful tool. ## License [GNU](https://choosealicense.com/licenses/gpl-3.0/) %package -n python3-api-display-purposes Summary: python wrapper for displaypurposes.com's api Provides: python-api-display-purposes BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-api-display-purposes # DisplayPurposes DisplayPurposes is a Python library for programmatically interacting with the website https://displaypurposes.com ## Installation Use the package manager [pip](https://pip.pypa.io/en/stable/) to install displaypurposes ```bash pip install api-display-purposes ``` ## Usage ```python from apidisplaypurposes import displaypurposes # obtain tags similar to #happy displaypurposes.tag('happy') # obtain 10 tags similar to #happy displaypurposes.tag('happy', limit=10) # obtain 20 tags similar to #happy emulating firefox GET requests displaypurposes.tag('happy', limit=20, browser='firefox') # obtain tags that share an edge with #happy displaypurposes.graph('happy') # obtain tags that share an edge with #happy emulating firefox GET requests displaypurposes.graph('happy', browser='firefox') # obtain the 20 most popular tags used within the specified window displaypurposes.map(-118.77636909484865, 33.23850805662313, -117.04052925109865, 35.10400554120783, zoom=14, limit=20) # obtain the 20 most popular tags used within the specified window emulating chrome GET requests displaypurposes.map(-118.77636909484865, 33.23850805662313, -117.04052925109865, 35.10400554120783, zoom=14, limit=20, browser='chrome') ``` ## Acknowledgement Of course this project could not exist without the work of the makers of https://displaypurposes.com. Thank you for the work you put into this useful tool. ## License [GNU](https://choosealicense.com/licenses/gpl-3.0/) %package help Summary: Development documents and examples for api-display-purposes Provides: python3-api-display-purposes-doc %description help # DisplayPurposes DisplayPurposes is a Python library for programmatically interacting with the website https://displaypurposes.com ## Installation Use the package manager [pip](https://pip.pypa.io/en/stable/) to install displaypurposes ```bash pip install api-display-purposes ``` ## Usage ```python from apidisplaypurposes import displaypurposes # obtain tags similar to #happy displaypurposes.tag('happy') # obtain 10 tags similar to #happy displaypurposes.tag('happy', limit=10) # obtain 20 tags similar to #happy emulating firefox GET requests displaypurposes.tag('happy', limit=20, browser='firefox') # obtain tags that share an edge with #happy displaypurposes.graph('happy') # obtain tags that share an edge with #happy emulating firefox GET requests displaypurposes.graph('happy', browser='firefox') # obtain the 20 most popular tags used within the specified window displaypurposes.map(-118.77636909484865, 33.23850805662313, -117.04052925109865, 35.10400554120783, zoom=14, limit=20) # obtain the 20 most popular tags used within the specified window emulating chrome GET requests displaypurposes.map(-118.77636909484865, 33.23850805662313, -117.04052925109865, 35.10400554120783, zoom=14, limit=20, browser='chrome') ``` ## Acknowledgement Of course this project could not exist without the work of the makers of https://displaypurposes.com. Thank you for the work you put into this useful tool. ## License [GNU](https://choosealicense.com/licenses/gpl-3.0/) %prep %autosetup -n api-display-purposes-0.0.3 %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-api-display-purposes -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 0.0.3-1 - Package Spec generated