From f89f8e285982641342f715725753558ef0dcd166 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 20 Jun 2023 03:38:43 +0000 Subject: automatic import of python-pypixel-api --- .gitignore | 1 + python-pypixel-api.spec | 323 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 325 insertions(+) create mode 100644 python-pypixel-api.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..1dd8233 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pypixel-api-0.2.3.tar.gz diff --git a/python-pypixel-api.spec b/python-pypixel-api.spec new file mode 100644 index 0000000..27e0edb --- /dev/null +++ b/python-pypixel-api.spec @@ -0,0 +1,323 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pypixel-api +Version: 0.2.3 +Release: 1 +Summary: An asynchronous wrapper for the Hypixel API. +License: MIT +URL: https://github.com/plun1331/PyPixel +Source0: https://mirrors.aliyun.com/pypi/web/packages/22/f0/a5a714ebcc12071791a6bcba93b8b1b411c473c2b316c6317386739639dd/pypixel-api-0.2.3.tar.gz +BuildArch: noarch + +Requires: python3-aiohttp +Requires: python3-NBT + +%description +# PyPixel + +[![Discord Server Invite](https://discord.com/api/guilds/766123673425281025/embed.png)]( +https://discord.gg/k6fgvUn3aF) +[![PyPI version info](https://img.shields.io/pypi/v/pypixel-api.svg)]( +https://pypi.python.org/pypi/pypixel-api) +[![PyPI supported Python versions](https://img.shields.io/pypi/pyversions/pypixel-api.svg)]( +https://pypi.python.org/pypi/pypixel-api) +[![Documentation Status](https://readthedocs.org/projects/pypixel/badge/?version=latest)]( +https://pypixel.readthedocs.io/en/latest/) + +An asynchronous Python wrapper for the Hypixel API. + + + +# Installation + +**Python 3.6 or higher is required** + +You can install the package with the following command. + +```sh +# Linux/macOS +python3 -m pip install -U pypixel-api + +# Windows +py -3 -m pip install -U pypixel-api +``` +Or, you can install the development version from the GitHub: + +```shell +# Linux/macOS +python3 -m pip install -U git+https://github.com/plun1331/PyPixel + +# Windows +py -3 -m pip install -U git+https://github.com/plun1331/PyPixel +``` + +# Examples +You can find some examples [in our documentation](https://pypixel.readthedocs.io/en/latest/examples.html) + +# Changelog +## 0.2.0 +- Removed API Key validation. +- Added support for the ``/skyblock/auctions`` endpoint. +- Added ``stripFormatting(text)`` to ``HypixelUtils`` to strip Minecraft text formatting from strings. +- The wrapper now sends an ``Api-Key`` header to authenticate with the API instead of the ``key`` path param. +- The wrapper will also send a ``User-Agent`` header to the APIs that it uses. +- The cache no longer uses Threading. + +## 0.1.9 +- Added support for the `/resources/achievements` endpoint. +- Added a kwarg to bypass API key validation. +- Added this changelog to the documentation. +- A few other changes that can be found in the docs. + +## 0.1.8a +- The module will now return `None` instead of having the value simply be missing. + +## 0.1.7 +- Added documentation: [pypixel.readthedocs.io](https://pypixel.readthedocs.io/en/latest/) + +## 0.1.6 +- Add some methods + +## 0.1.5 +- Released to PyPI + +## 0.1.4a +- Added a changelog +- Introduced SkyBlock Profiles +- Added 3 new fuctions to `.Hypixel` (`.get_name(uuid)`, `.get_uuid(name)`, and `.get_profiles(uuid)`) +- Deleted `Other.py` in favor of a submodule, `utils` +- Moved the `send_request()` method to `.Hypixel` and renamed it `_send()` +- Added a new requirement, `NBT` (Used for parsing NBT data). +- Added some exception classes. +- Started subclassing `object` for no paticular reason. + + + + + + + + +%package -n python3-pypixel-api +Summary: An asynchronous wrapper for the Hypixel API. +Provides: python-pypixel-api +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pypixel-api +# PyPixel + +[![Discord Server Invite](https://discord.com/api/guilds/766123673425281025/embed.png)]( +https://discord.gg/k6fgvUn3aF) +[![PyPI version info](https://img.shields.io/pypi/v/pypixel-api.svg)]( +https://pypi.python.org/pypi/pypixel-api) +[![PyPI supported Python versions](https://img.shields.io/pypi/pyversions/pypixel-api.svg)]( +https://pypi.python.org/pypi/pypixel-api) +[![Documentation Status](https://readthedocs.org/projects/pypixel/badge/?version=latest)]( +https://pypixel.readthedocs.io/en/latest/) + +An asynchronous Python wrapper for the Hypixel API. + + + +# Installation + +**Python 3.6 or higher is required** + +You can install the package with the following command. + +```sh +# Linux/macOS +python3 -m pip install -U pypixel-api + +# Windows +py -3 -m pip install -U pypixel-api +``` +Or, you can install the development version from the GitHub: + +```shell +# Linux/macOS +python3 -m pip install -U git+https://github.com/plun1331/PyPixel + +# Windows +py -3 -m pip install -U git+https://github.com/plun1331/PyPixel +``` + +# Examples +You can find some examples [in our documentation](https://pypixel.readthedocs.io/en/latest/examples.html) + +# Changelog +## 0.2.0 +- Removed API Key validation. +- Added support for the ``/skyblock/auctions`` endpoint. +- Added ``stripFormatting(text)`` to ``HypixelUtils`` to strip Minecraft text formatting from strings. +- The wrapper now sends an ``Api-Key`` header to authenticate with the API instead of the ``key`` path param. +- The wrapper will also send a ``User-Agent`` header to the APIs that it uses. +- The cache no longer uses Threading. + +## 0.1.9 +- Added support for the `/resources/achievements` endpoint. +- Added a kwarg to bypass API key validation. +- Added this changelog to the documentation. +- A few other changes that can be found in the docs. + +## 0.1.8a +- The module will now return `None` instead of having the value simply be missing. + +## 0.1.7 +- Added documentation: [pypixel.readthedocs.io](https://pypixel.readthedocs.io/en/latest/) + +## 0.1.6 +- Add some methods + +## 0.1.5 +- Released to PyPI + +## 0.1.4a +- Added a changelog +- Introduced SkyBlock Profiles +- Added 3 new fuctions to `.Hypixel` (`.get_name(uuid)`, `.get_uuid(name)`, and `.get_profiles(uuid)`) +- Deleted `Other.py` in favor of a submodule, `utils` +- Moved the `send_request()` method to `.Hypixel` and renamed it `_send()` +- Added a new requirement, `NBT` (Used for parsing NBT data). +- Added some exception classes. +- Started subclassing `object` for no paticular reason. + + + + + + + + +%package help +Summary: Development documents and examples for pypixel-api +Provides: python3-pypixel-api-doc +%description help +# PyPixel + +[![Discord Server Invite](https://discord.com/api/guilds/766123673425281025/embed.png)]( +https://discord.gg/k6fgvUn3aF) +[![PyPI version info](https://img.shields.io/pypi/v/pypixel-api.svg)]( +https://pypi.python.org/pypi/pypixel-api) +[![PyPI supported Python versions](https://img.shields.io/pypi/pyversions/pypixel-api.svg)]( +https://pypi.python.org/pypi/pypixel-api) +[![Documentation Status](https://readthedocs.org/projects/pypixel/badge/?version=latest)]( +https://pypixel.readthedocs.io/en/latest/) + +An asynchronous Python wrapper for the Hypixel API. + + + +# Installation + +**Python 3.6 or higher is required** + +You can install the package with the following command. + +```sh +# Linux/macOS +python3 -m pip install -U pypixel-api + +# Windows +py -3 -m pip install -U pypixel-api +``` +Or, you can install the development version from the GitHub: + +```shell +# Linux/macOS +python3 -m pip install -U git+https://github.com/plun1331/PyPixel + +# Windows +py -3 -m pip install -U git+https://github.com/plun1331/PyPixel +``` + +# Examples +You can find some examples [in our documentation](https://pypixel.readthedocs.io/en/latest/examples.html) + +# Changelog +## 0.2.0 +- Removed API Key validation. +- Added support for the ``/skyblock/auctions`` endpoint. +- Added ``stripFormatting(text)`` to ``HypixelUtils`` to strip Minecraft text formatting from strings. +- The wrapper now sends an ``Api-Key`` header to authenticate with the API instead of the ``key`` path param. +- The wrapper will also send a ``User-Agent`` header to the APIs that it uses. +- The cache no longer uses Threading. + +## 0.1.9 +- Added support for the `/resources/achievements` endpoint. +- Added a kwarg to bypass API key validation. +- Added this changelog to the documentation. +- A few other changes that can be found in the docs. + +## 0.1.8a +- The module will now return `None` instead of having the value simply be missing. + +## 0.1.7 +- Added documentation: [pypixel.readthedocs.io](https://pypixel.readthedocs.io/en/latest/) + +## 0.1.6 +- Add some methods + +## 0.1.5 +- Released to PyPI + +## 0.1.4a +- Added a changelog +- Introduced SkyBlock Profiles +- Added 3 new fuctions to `.Hypixel` (`.get_name(uuid)`, `.get_uuid(name)`, and `.get_profiles(uuid)`) +- Deleted `Other.py` in favor of a submodule, `utils` +- Moved the `send_request()` method to `.Hypixel` and renamed it `_send()` +- Added a new requirement, `NBT` (Used for parsing NBT data). +- Added some exception classes. +- Started subclassing `object` for no paticular reason. + + + + + + + + +%prep +%autosetup -n pypixel-api-0.2.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-pypixel-api -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot - 0.2.3-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..d6e6962 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +8185bfd2cbe023e9547a66d8bc0d6f9d pypixel-api-0.2.3.tar.gz -- cgit v1.2.3