diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:08:10 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:08:10 +0000 |
| commit | ed50483d6954e24fef136e534fcc69bc86cdb22e (patch) | |
| tree | 1a4ebb5bcb84d504d2dc5d2fdf844f9ae9af274a | |
| parent | d9e12c95edfdf1cf1ba05f2698ce1ae8c466b5ca (diff) | |
automatic import of python-api-display-purposesopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-api-display-purposes.spec | 234 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 236 insertions, 0 deletions
@@ -0,0 +1 @@ +/api-display-purposes-0.0.3.tar.gz diff --git a/python-api-display-purposes.spec b/python-api-display-purposes.spec new file mode 100644 index 0000000..4f96a0e --- /dev/null +++ b/python-api-display-purposes.spec @@ -0,0 +1,234 @@ +%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 <Python_Bot@openeuler.org> - 0.0.3-1 +- Package Spec generated @@ -0,0 +1 @@ +032fc7be98c1d93ab8901c238f218030 api-display-purposes-0.0.3.tar.gz |
