summaryrefslogtreecommitdiff
path: root/python-hypixelio.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-hypixelio.spec')
-rw-r--r--python-hypixelio.spec638
1 files changed, 638 insertions, 0 deletions
diff --git a/python-hypixelio.spec b/python-hypixelio.spec
new file mode 100644
index 0000000..3558be6
--- /dev/null
+++ b/python-hypixelio.spec
@@ -0,0 +1,638 @@
+%global _empty_manifest_terminate_build 0
+Name: python-HypixelIO
+Version: 1.4.0
+Release: 1
+Summary: A modern, efficient and better way of interacting with the Hypixel API!
+License: MIT
+URL: https://github.com/janaSunrise/HypixelIO
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/13/51/a69dd9fda855ca7ac90bae279b96cd5fdbbae8b479b6758c7ea354bdecf0/HypixelIO-1.4.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-aiohttp
+Requires: python3-aiodns
+Requires: python3-Brotli
+Requires: python3-cchardet
+Requires: python3-aiodns
+Requires: python3-Brotli
+Requires: python3-cchardet
+
+%description
+```
+ __ __ _ __ ________
+ / / / /_ ______ (_) _____ / / / _/ __ \
+ / /_/ / / / / __ \/ / |/_/ _ \/ / / // / / /
+ / __ / /_/ / /_/ / /> </ __/ / _/ // /_/ /
+ /_/ /_/\__, / .___/_/_/|_|\___/_/ /___/\____/
+ /____/_/
+```
+
+<h1 align="center">HypixelIO</h1>
+
+<h3 align="center">A Modern, Efficient and Easy way of interacting with the Hypixel API!</h3>
+
+<p align="center">
+
+<a href="https://www.python.org/">
+ <img src="http://ForTheBadge.com/images/badges/made-with-python.svg" alt="Made with Python" />
+</a>
+
+</p>
+
+<p align="center">
+
+<a href="https://pypi.org/project/HypixelIO">
+ <img src="https://img.shields.io/pypi/l/HypixelIO" alt="PYPI - License" />
+</a>
+
+<a href="https://pypi.org/project/HypixelIO">
+ <img src="https://img.shields.io/pypi/dm/ansicolortags.svg" alt="PYPI Download per Month" />
+</a>
+
+<a href="https://pypi.org/project/HypixelIO">
+ <img src="https://img.shields.io/pypi/v/HypixelIO" alt="PYPI" />
+</a>
+
+<a href="https://pypi.org/project/HypixelIO">
+ <img src="https://img.shields.io/pypi/pyversions/HypixelIO" alt="PYPI Python Version" />
+</a>
+
+<a href="https://GitHub.com/janaSunrise/HypixelIO/graphs/commit-activity">
+ <img src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" alt="Maintenance" />
+</a>
+
+</p>
+
+<p align="center">
+
+<a href="https://github.com/janaSunrise/HypixelIO">
+ <img src="https://img.shields.io/github/languages/code-size/janaSunrise/HypixelIO" alt="Code Size" />
+</a>
+
+<a href="https://discord.gg/MKC4qna4Gz">
+ <img src="https://discordapp.com/api/guilds/835940276869791816/widget.png?style=shield" alt="Discord" />
+</a>
+
+</p>
+
+<!-- Links -->
+<h3 align="center">
+ <a href="https://hypixelio.readthedocs.org">Docs</a>
+ <span> Β· </span>
+ <a href="https://github.com/janaSunrise/HypixelIO/issues">Report a bug</a>
+ <span> Β· </span>
+ <a href="https://github.com/janaSunrise/HypixelIO/discussions">Discussions</a>
+ <span> Β· </span>
+ <a href="https://discord.gg/MKC4qna4Gz">Discord</a>
+</h3>
+
+## ✨ Why choose HypixelIO?
+
+- Modern way of handling requests
+- Modern OOP based structure
+- Both Async and blocking support
+- Simple ratelimit handling and caching
+- Elegant design with complete optimization
+- Easy to use with a modern and simple design
+- Complete API coverage
+
+## πŸš€ Installing
+
+**Python 3.7 or above is required!**
+
+```sh
+# Windows
+py -3 -m pip install -U HypixelIO
+
+# Linux or MacOS
+python3 -m pip install -U HypixelIO
+
+# Install the nightly build
+python3 -m pip install -U git+https://github.com/janaSunrise/HypixelIO
+```
+
+You can also get extra features with this library. Here's how:
+
+```sh
+# Use [speedups] to speed up only for async API
+python3 -m pip install -U "HypixelIO[speedups]"
+```
+
+## Usage
+
+```python
+from hypixelio import Client, Converters
+
+client = Client(api_key="your-api-key")
+
+boosters = client.get_boosters() # Get the boosters object
+
+friends = client.get_friends(uuid="user's-uuid") # Returns the Friends object
+# Or, if you don't know the UUID
+friends = client.get_friends(name="user's-username")
+
+print(boosters[0].id)
+print(friends.friends[0].receiver_id)
+```
+
+### Async API usage
+
+```python
+import asyncio
+
+from hypixelio import AsyncClient, AsyncConverters
+
+client = AsyncClient(api_key="your-api-key")
+
+# Async function to fetch info
+async def fetch_from_hypixel():
+ boosters = await client.get_boosters() # Get the boosters object
+
+ friends = await client.get_friends(uuid="user's-uuid") # Returns the Friends object
+ # Or, if you don't know the UUID
+ friends = await client.get_friends(name="user's-username")
+
+ # Safely close the connection
+ await client.close()
+
+ return boosters, friends
+
+# Run the coroutine using `asyncio`
+boosters, friends = asyncio.run(fetch_from_hypixel())
+
+print(boosters[0].id)
+print(friends.friends[0].receiver_id)
+```
+
+**Find more examples [here](https://github.com/janaSunrise/HypixelIO/tree/main/examples)!**
+
+## πŸ“’ Changelog
+
+If you're interested in seeing the **Changelog**, Go [here!](https://github.com/janaSunrise/HypixelIO/blob/main/CHANGELOG.md)
+
+## 🀝 Contributing
+
+Contributions, issues and feature requests are welcome. After cloning & setting up project locally, you can just submit
+a PR to this repo and it will be deployed once it's accepted.
+
+⚠️ It’s good to have descriptive commit messages, or PR titles so that other contributors can understand about your
+commit or the PR Created. Read [conventional commits](https://www.conventionalcommits.org/en/v1.0.0-beta.3/) before
+making the commit message. You can find our contributing guidelines
+[here](https://github.com/janaSunrise/HypixelIO/blob/main/CONTRIBUTING.md)
+
+We have a branch called `dev` containing development code. If you're contributing, Remember to contribute to
+`dev` branch, instead of `main`.
+
+## πŸ’¬ Get in touch
+
+If you have various suggestions, questions or want to discuss things with our community, Have a look at
+[Github discussions](https://github.com/janaSunrise/HypixelIO/discussions) or join our Discord server!
+
+[![Discord](https://discordapp.com/api/guilds/835940276869791816/widget.png?style=shield)](https://discord.gg/MKC4qna4Gz)
+
+## πŸ‘‹ Show your support
+
+Be sure to drop a 🌟 if you like the project!
+
+## β–Ά Links
+
+- [Official Documentation](http://hypixelio.rtfd.io/)
+- [Raise an Issue](https://github.com/janaSunrise/HypixelIO/issues)
+- [Discussions](https://github.com/janaSunrise/HypixelIO/discussions)
+- [Hypixel API Documentation](https://api.hypixel.net)
+
+<div align="center">Made by Sunrit Jana with ❀</div>
+
+
+
+
+%package -n python3-HypixelIO
+Summary: A modern, efficient and better way of interacting with the Hypixel API!
+Provides: python-HypixelIO
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-HypixelIO
+```
+ __ __ _ __ ________
+ / / / /_ ______ (_) _____ / / / _/ __ \
+ / /_/ / / / / __ \/ / |/_/ _ \/ / / // / / /
+ / __ / /_/ / /_/ / /> </ __/ / _/ // /_/ /
+ /_/ /_/\__, / .___/_/_/|_|\___/_/ /___/\____/
+ /____/_/
+```
+
+<h1 align="center">HypixelIO</h1>
+
+<h3 align="center">A Modern, Efficient and Easy way of interacting with the Hypixel API!</h3>
+
+<p align="center">
+
+<a href="https://www.python.org/">
+ <img src="http://ForTheBadge.com/images/badges/made-with-python.svg" alt="Made with Python" />
+</a>
+
+</p>
+
+<p align="center">
+
+<a href="https://pypi.org/project/HypixelIO">
+ <img src="https://img.shields.io/pypi/l/HypixelIO" alt="PYPI - License" />
+</a>
+
+<a href="https://pypi.org/project/HypixelIO">
+ <img src="https://img.shields.io/pypi/dm/ansicolortags.svg" alt="PYPI Download per Month" />
+</a>
+
+<a href="https://pypi.org/project/HypixelIO">
+ <img src="https://img.shields.io/pypi/v/HypixelIO" alt="PYPI" />
+</a>
+
+<a href="https://pypi.org/project/HypixelIO">
+ <img src="https://img.shields.io/pypi/pyversions/HypixelIO" alt="PYPI Python Version" />
+</a>
+
+<a href="https://GitHub.com/janaSunrise/HypixelIO/graphs/commit-activity">
+ <img src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" alt="Maintenance" />
+</a>
+
+</p>
+
+<p align="center">
+
+<a href="https://github.com/janaSunrise/HypixelIO">
+ <img src="https://img.shields.io/github/languages/code-size/janaSunrise/HypixelIO" alt="Code Size" />
+</a>
+
+<a href="https://discord.gg/MKC4qna4Gz">
+ <img src="https://discordapp.com/api/guilds/835940276869791816/widget.png?style=shield" alt="Discord" />
+</a>
+
+</p>
+
+<!-- Links -->
+<h3 align="center">
+ <a href="https://hypixelio.readthedocs.org">Docs</a>
+ <span> Β· </span>
+ <a href="https://github.com/janaSunrise/HypixelIO/issues">Report a bug</a>
+ <span> Β· </span>
+ <a href="https://github.com/janaSunrise/HypixelIO/discussions">Discussions</a>
+ <span> Β· </span>
+ <a href="https://discord.gg/MKC4qna4Gz">Discord</a>
+</h3>
+
+## ✨ Why choose HypixelIO?
+
+- Modern way of handling requests
+- Modern OOP based structure
+- Both Async and blocking support
+- Simple ratelimit handling and caching
+- Elegant design with complete optimization
+- Easy to use with a modern and simple design
+- Complete API coverage
+
+## πŸš€ Installing
+
+**Python 3.7 or above is required!**
+
+```sh
+# Windows
+py -3 -m pip install -U HypixelIO
+
+# Linux or MacOS
+python3 -m pip install -U HypixelIO
+
+# Install the nightly build
+python3 -m pip install -U git+https://github.com/janaSunrise/HypixelIO
+```
+
+You can also get extra features with this library. Here's how:
+
+```sh
+# Use [speedups] to speed up only for async API
+python3 -m pip install -U "HypixelIO[speedups]"
+```
+
+## Usage
+
+```python
+from hypixelio import Client, Converters
+
+client = Client(api_key="your-api-key")
+
+boosters = client.get_boosters() # Get the boosters object
+
+friends = client.get_friends(uuid="user's-uuid") # Returns the Friends object
+# Or, if you don't know the UUID
+friends = client.get_friends(name="user's-username")
+
+print(boosters[0].id)
+print(friends.friends[0].receiver_id)
+```
+
+### Async API usage
+
+```python
+import asyncio
+
+from hypixelio import AsyncClient, AsyncConverters
+
+client = AsyncClient(api_key="your-api-key")
+
+# Async function to fetch info
+async def fetch_from_hypixel():
+ boosters = await client.get_boosters() # Get the boosters object
+
+ friends = await client.get_friends(uuid="user's-uuid") # Returns the Friends object
+ # Or, if you don't know the UUID
+ friends = await client.get_friends(name="user's-username")
+
+ # Safely close the connection
+ await client.close()
+
+ return boosters, friends
+
+# Run the coroutine using `asyncio`
+boosters, friends = asyncio.run(fetch_from_hypixel())
+
+print(boosters[0].id)
+print(friends.friends[0].receiver_id)
+```
+
+**Find more examples [here](https://github.com/janaSunrise/HypixelIO/tree/main/examples)!**
+
+## πŸ“’ Changelog
+
+If you're interested in seeing the **Changelog**, Go [here!](https://github.com/janaSunrise/HypixelIO/blob/main/CHANGELOG.md)
+
+## 🀝 Contributing
+
+Contributions, issues and feature requests are welcome. After cloning & setting up project locally, you can just submit
+a PR to this repo and it will be deployed once it's accepted.
+
+⚠️ It’s good to have descriptive commit messages, or PR titles so that other contributors can understand about your
+commit or the PR Created. Read [conventional commits](https://www.conventionalcommits.org/en/v1.0.0-beta.3/) before
+making the commit message. You can find our contributing guidelines
+[here](https://github.com/janaSunrise/HypixelIO/blob/main/CONTRIBUTING.md)
+
+We have a branch called `dev` containing development code. If you're contributing, Remember to contribute to
+`dev` branch, instead of `main`.
+
+## πŸ’¬ Get in touch
+
+If you have various suggestions, questions or want to discuss things with our community, Have a look at
+[Github discussions](https://github.com/janaSunrise/HypixelIO/discussions) or join our Discord server!
+
+[![Discord](https://discordapp.com/api/guilds/835940276869791816/widget.png?style=shield)](https://discord.gg/MKC4qna4Gz)
+
+## πŸ‘‹ Show your support
+
+Be sure to drop a 🌟 if you like the project!
+
+## β–Ά Links
+
+- [Official Documentation](http://hypixelio.rtfd.io/)
+- [Raise an Issue](https://github.com/janaSunrise/HypixelIO/issues)
+- [Discussions](https://github.com/janaSunrise/HypixelIO/discussions)
+- [Hypixel API Documentation](https://api.hypixel.net)
+
+<div align="center">Made by Sunrit Jana with ❀</div>
+
+
+
+
+%package help
+Summary: Development documents and examples for HypixelIO
+Provides: python3-HypixelIO-doc
+%description help
+```
+ __ __ _ __ ________
+ / / / /_ ______ (_) _____ / / / _/ __ \
+ / /_/ / / / / __ \/ / |/_/ _ \/ / / // / / /
+ / __ / /_/ / /_/ / /> </ __/ / _/ // /_/ /
+ /_/ /_/\__, / .___/_/_/|_|\___/_/ /___/\____/
+ /____/_/
+```
+
+<h1 align="center">HypixelIO</h1>
+
+<h3 align="center">A Modern, Efficient and Easy way of interacting with the Hypixel API!</h3>
+
+<p align="center">
+
+<a href="https://www.python.org/">
+ <img src="http://ForTheBadge.com/images/badges/made-with-python.svg" alt="Made with Python" />
+</a>
+
+</p>
+
+<p align="center">
+
+<a href="https://pypi.org/project/HypixelIO">
+ <img src="https://img.shields.io/pypi/l/HypixelIO" alt="PYPI - License" />
+</a>
+
+<a href="https://pypi.org/project/HypixelIO">
+ <img src="https://img.shields.io/pypi/dm/ansicolortags.svg" alt="PYPI Download per Month" />
+</a>
+
+<a href="https://pypi.org/project/HypixelIO">
+ <img src="https://img.shields.io/pypi/v/HypixelIO" alt="PYPI" />
+</a>
+
+<a href="https://pypi.org/project/HypixelIO">
+ <img src="https://img.shields.io/pypi/pyversions/HypixelIO" alt="PYPI Python Version" />
+</a>
+
+<a href="https://GitHub.com/janaSunrise/HypixelIO/graphs/commit-activity">
+ <img src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" alt="Maintenance" />
+</a>
+
+</p>
+
+<p align="center">
+
+<a href="https://github.com/janaSunrise/HypixelIO">
+ <img src="https://img.shields.io/github/languages/code-size/janaSunrise/HypixelIO" alt="Code Size" />
+</a>
+
+<a href="https://discord.gg/MKC4qna4Gz">
+ <img src="https://discordapp.com/api/guilds/835940276869791816/widget.png?style=shield" alt="Discord" />
+</a>
+
+</p>
+
+<!-- Links -->
+<h3 align="center">
+ <a href="https://hypixelio.readthedocs.org">Docs</a>
+ <span> Β· </span>
+ <a href="https://github.com/janaSunrise/HypixelIO/issues">Report a bug</a>
+ <span> Β· </span>
+ <a href="https://github.com/janaSunrise/HypixelIO/discussions">Discussions</a>
+ <span> Β· </span>
+ <a href="https://discord.gg/MKC4qna4Gz">Discord</a>
+</h3>
+
+## ✨ Why choose HypixelIO?
+
+- Modern way of handling requests
+- Modern OOP based structure
+- Both Async and blocking support
+- Simple ratelimit handling and caching
+- Elegant design with complete optimization
+- Easy to use with a modern and simple design
+- Complete API coverage
+
+## πŸš€ Installing
+
+**Python 3.7 or above is required!**
+
+```sh
+# Windows
+py -3 -m pip install -U HypixelIO
+
+# Linux or MacOS
+python3 -m pip install -U HypixelIO
+
+# Install the nightly build
+python3 -m pip install -U git+https://github.com/janaSunrise/HypixelIO
+```
+
+You can also get extra features with this library. Here's how:
+
+```sh
+# Use [speedups] to speed up only for async API
+python3 -m pip install -U "HypixelIO[speedups]"
+```
+
+## Usage
+
+```python
+from hypixelio import Client, Converters
+
+client = Client(api_key="your-api-key")
+
+boosters = client.get_boosters() # Get the boosters object
+
+friends = client.get_friends(uuid="user's-uuid") # Returns the Friends object
+# Or, if you don't know the UUID
+friends = client.get_friends(name="user's-username")
+
+print(boosters[0].id)
+print(friends.friends[0].receiver_id)
+```
+
+### Async API usage
+
+```python
+import asyncio
+
+from hypixelio import AsyncClient, AsyncConverters
+
+client = AsyncClient(api_key="your-api-key")
+
+# Async function to fetch info
+async def fetch_from_hypixel():
+ boosters = await client.get_boosters() # Get the boosters object
+
+ friends = await client.get_friends(uuid="user's-uuid") # Returns the Friends object
+ # Or, if you don't know the UUID
+ friends = await client.get_friends(name="user's-username")
+
+ # Safely close the connection
+ await client.close()
+
+ return boosters, friends
+
+# Run the coroutine using `asyncio`
+boosters, friends = asyncio.run(fetch_from_hypixel())
+
+print(boosters[0].id)
+print(friends.friends[0].receiver_id)
+```
+
+**Find more examples [here](https://github.com/janaSunrise/HypixelIO/tree/main/examples)!**
+
+## πŸ“’ Changelog
+
+If you're interested in seeing the **Changelog**, Go [here!](https://github.com/janaSunrise/HypixelIO/blob/main/CHANGELOG.md)
+
+## 🀝 Contributing
+
+Contributions, issues and feature requests are welcome. After cloning & setting up project locally, you can just submit
+a PR to this repo and it will be deployed once it's accepted.
+
+⚠️ It’s good to have descriptive commit messages, or PR titles so that other contributors can understand about your
+commit or the PR Created. Read [conventional commits](https://www.conventionalcommits.org/en/v1.0.0-beta.3/) before
+making the commit message. You can find our contributing guidelines
+[here](https://github.com/janaSunrise/HypixelIO/blob/main/CONTRIBUTING.md)
+
+We have a branch called `dev` containing development code. If you're contributing, Remember to contribute to
+`dev` branch, instead of `main`.
+
+## πŸ’¬ Get in touch
+
+If you have various suggestions, questions or want to discuss things with our community, Have a look at
+[Github discussions](https://github.com/janaSunrise/HypixelIO/discussions) or join our Discord server!
+
+[![Discord](https://discordapp.com/api/guilds/835940276869791816/widget.png?style=shield)](https://discord.gg/MKC4qna4Gz)
+
+## πŸ‘‹ Show your support
+
+Be sure to drop a 🌟 if you like the project!
+
+## β–Ά Links
+
+- [Official Documentation](http://hypixelio.rtfd.io/)
+- [Raise an Issue](https://github.com/janaSunrise/HypixelIO/issues)
+- [Discussions](https://github.com/janaSunrise/HypixelIO/discussions)
+- [Hypixel API Documentation](https://api.hypixel.net)
+
+<div align="center">Made by Sunrit Jana with ❀</div>
+
+
+
+
+%prep
+%autosetup -n HypixelIO-1.4.0
+
+%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-HypixelIO -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.0-1
+- Package Spec generated