summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-dis-snek.spec264
-rw-r--r--sources1
3 files changed, 266 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..555be0f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dis-snek-9.0.0.tar.gz
diff --git a/python-dis-snek.spec b/python-dis-snek.spec
new file mode 100644
index 0000000..56fba44
--- /dev/null
+++ b/python-dis-snek.spec
@@ -0,0 +1,264 @@
+%global _empty_manifest_terminate_build 0
+Name: python-dis-snek
+Version: 9.0.0
+Release: 1
+Summary: An API wrapper for Discord filled with snakes
+License: MIT License
+URL: https://github.com/Discord-Snake-Pit/Dis-Snek
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/30/4f/17460d9df2cfa554067fed697d097e1a25d2ab90f633a671e3cfdea2fd62/dis-snek-9.0.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-aiohttp
+Requires: python3-attrs
+Requires: python3-discord-typings
+Requires: python3-tomli
+Requires: python3-PyNaCl
+Requires: python3-cchardet
+Requires: python3-aiodns
+Requires: python3-orjson
+Requires: python3-cchardet
+Requires: python3-aiodns
+Requires: python3-orjson
+Requires: python3-PyNaCl
+
+%description
+[![PyPI](https://img.shields.io/pypi/v/dis-snek)](https://pypi.org/project/dis-snek/)
+[![Downloads](https://static.pepy.tech/personalized-badge/dis-snek?period=total&units=abbreviation&left_color=grey&right_color=green&left_text=pip%20installs)](https://pepy.tech/project/dis-snek)
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
+[![black-formatted](https://img.shields.io/github/workflow/status/Discord-Snake-Pit/dis-snek/black-action/master?label=Black%20Format&logo=github)](https://github.com/Discord-Snake-Pit/Dis-Snek/actions/workflows/black.yml)
+[![CodeQL](https://img.shields.io/github/workflow/status/Discord-Snake-Pit/dis-snek/CodeQL/master?label=CodeQL&logo=Github)](https://github.com/Discord-Snake-Pit/Dis-Snek/actions/workflows/codeql-analysis.yml)
+[![Discord](https://img.shields.io/discord/870046872864165888?color=%235865F2&label=Server&logo=discord&logoColor=%235865F2)](https://discord.gg/dis-snek)
+[![Documentation Status](https://readthedocs.org/projects/dis-snek/badge/?version=latest)](https://dis-snek.readthedocs.io/en/latest/?badge=latest)
+
+# What is this?
+This is `Dis-Snek`, a python API wrapper for Discord.
+Snek is intended to be fast, easy to use, and easily modified to suit your needs.
+
+### Features:
+- ✅ 100% coverage of the application commands API
+- ✅ Dynamic cache with TTL support
+- ✅ Modern and Pythonic API
+- ✅ Proper rate-limit handling
+- ✅ Feature parity with most other Discord API wrappers
+
+## Is this just another `Discord.py` fork?
+While this library shares features and some stylistic choices with `discord.py`, it is completely separate from them. We think `discord.py` is a fantastic library, but we disagree with the direction and design decisions that were made by it.
+
+## How do I use this?
+Here is a basic example:
+```python
+from dis_snek import Snake, Button, ButtonStyles, CommandTypes, context_menu, prefixed_command, listen
+
+bot = Snake(sync_interactions=True)
+
+@listen()
+async def on_startup():
+ print("Ready")
+ print(f"This bot is owned by {bot.owner}")
+
+@prefixed_command()
+async def test_button(ctx):
+ await ctx.send("Blurple button example!", components=Button(ButtonStyles.BLURPLE, "Click me"))
+
+@context_menu(name="User menu", context_type=CommandTypes.USER, scopes=[931832853770149918])
+async def user_context(ctx):
+ await ctx.send("Context menu example!", ephemeral=True)
+
+
+bot.start("TOKEN")
+```
+For more examples check out [our examples repo](https://github.com/Discord-Snake-Pit/examples) or the [docs](https://dis-snek.readthedocs.io/). You also can [explore projects with the dis-snek topic](https://github.com/topics/dis-snek).
+
+If you get stuck join our [Discord server](https://discord.gg/dis-snek).
+
+
+## "Can I contribute to this project?"
+Of course, we welcome all contributions to this library. Just ensure you follow our [requirements](/CONTRIBUTING.md).
+If youre stuck for things to contribute, check out our [GitHub Projects](https://github.com/orgs/Discord-Snake-Pit/projects/1) for inspiration.
+
+## Links:
+- Support Server: https://discord.gg/dis-snek
+- Documentation: https://dis-snek.rtfd.io/
+- GitHub Projects: https://github.com/orgs/Discord-Snake-Pit/projects/1
+
+
+
+
+%package -n python3-dis-snek
+Summary: An API wrapper for Discord filled with snakes
+Provides: python-dis-snek
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-dis-snek
+[![PyPI](https://img.shields.io/pypi/v/dis-snek)](https://pypi.org/project/dis-snek/)
+[![Downloads](https://static.pepy.tech/personalized-badge/dis-snek?period=total&units=abbreviation&left_color=grey&right_color=green&left_text=pip%20installs)](https://pepy.tech/project/dis-snek)
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
+[![black-formatted](https://img.shields.io/github/workflow/status/Discord-Snake-Pit/dis-snek/black-action/master?label=Black%20Format&logo=github)](https://github.com/Discord-Snake-Pit/Dis-Snek/actions/workflows/black.yml)
+[![CodeQL](https://img.shields.io/github/workflow/status/Discord-Snake-Pit/dis-snek/CodeQL/master?label=CodeQL&logo=Github)](https://github.com/Discord-Snake-Pit/Dis-Snek/actions/workflows/codeql-analysis.yml)
+[![Discord](https://img.shields.io/discord/870046872864165888?color=%235865F2&label=Server&logo=discord&logoColor=%235865F2)](https://discord.gg/dis-snek)
+[![Documentation Status](https://readthedocs.org/projects/dis-snek/badge/?version=latest)](https://dis-snek.readthedocs.io/en/latest/?badge=latest)
+
+# What is this?
+This is `Dis-Snek`, a python API wrapper for Discord.
+Snek is intended to be fast, easy to use, and easily modified to suit your needs.
+
+### Features:
+- ✅ 100% coverage of the application commands API
+- ✅ Dynamic cache with TTL support
+- ✅ Modern and Pythonic API
+- ✅ Proper rate-limit handling
+- ✅ Feature parity with most other Discord API wrappers
+
+## Is this just another `Discord.py` fork?
+While this library shares features and some stylistic choices with `discord.py`, it is completely separate from them. We think `discord.py` is a fantastic library, but we disagree with the direction and design decisions that were made by it.
+
+## How do I use this?
+Here is a basic example:
+```python
+from dis_snek import Snake, Button, ButtonStyles, CommandTypes, context_menu, prefixed_command, listen
+
+bot = Snake(sync_interactions=True)
+
+@listen()
+async def on_startup():
+ print("Ready")
+ print(f"This bot is owned by {bot.owner}")
+
+@prefixed_command()
+async def test_button(ctx):
+ await ctx.send("Blurple button example!", components=Button(ButtonStyles.BLURPLE, "Click me"))
+
+@context_menu(name="User menu", context_type=CommandTypes.USER, scopes=[931832853770149918])
+async def user_context(ctx):
+ await ctx.send("Context menu example!", ephemeral=True)
+
+
+bot.start("TOKEN")
+```
+For more examples check out [our examples repo](https://github.com/Discord-Snake-Pit/examples) or the [docs](https://dis-snek.readthedocs.io/). You also can [explore projects with the dis-snek topic](https://github.com/topics/dis-snek).
+
+If you get stuck join our [Discord server](https://discord.gg/dis-snek).
+
+
+## "Can I contribute to this project?"
+Of course, we welcome all contributions to this library. Just ensure you follow our [requirements](/CONTRIBUTING.md).
+If youre stuck for things to contribute, check out our [GitHub Projects](https://github.com/orgs/Discord-Snake-Pit/projects/1) for inspiration.
+
+## Links:
+- Support Server: https://discord.gg/dis-snek
+- Documentation: https://dis-snek.rtfd.io/
+- GitHub Projects: https://github.com/orgs/Discord-Snake-Pit/projects/1
+
+
+
+
+%package help
+Summary: Development documents and examples for dis-snek
+Provides: python3-dis-snek-doc
+%description help
+[![PyPI](https://img.shields.io/pypi/v/dis-snek)](https://pypi.org/project/dis-snek/)
+[![Downloads](https://static.pepy.tech/personalized-badge/dis-snek?period=total&units=abbreviation&left_color=grey&right_color=green&left_text=pip%20installs)](https://pepy.tech/project/dis-snek)
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
+[![black-formatted](https://img.shields.io/github/workflow/status/Discord-Snake-Pit/dis-snek/black-action/master?label=Black%20Format&logo=github)](https://github.com/Discord-Snake-Pit/Dis-Snek/actions/workflows/black.yml)
+[![CodeQL](https://img.shields.io/github/workflow/status/Discord-Snake-Pit/dis-snek/CodeQL/master?label=CodeQL&logo=Github)](https://github.com/Discord-Snake-Pit/Dis-Snek/actions/workflows/codeql-analysis.yml)
+[![Discord](https://img.shields.io/discord/870046872864165888?color=%235865F2&label=Server&logo=discord&logoColor=%235865F2)](https://discord.gg/dis-snek)
+[![Documentation Status](https://readthedocs.org/projects/dis-snek/badge/?version=latest)](https://dis-snek.readthedocs.io/en/latest/?badge=latest)
+
+# What is this?
+This is `Dis-Snek`, a python API wrapper for Discord.
+Snek is intended to be fast, easy to use, and easily modified to suit your needs.
+
+### Features:
+- ✅ 100% coverage of the application commands API
+- ✅ Dynamic cache with TTL support
+- ✅ Modern and Pythonic API
+- ✅ Proper rate-limit handling
+- ✅ Feature parity with most other Discord API wrappers
+
+## Is this just another `Discord.py` fork?
+While this library shares features and some stylistic choices with `discord.py`, it is completely separate from them. We think `discord.py` is a fantastic library, but we disagree with the direction and design decisions that were made by it.
+
+## How do I use this?
+Here is a basic example:
+```python
+from dis_snek import Snake, Button, ButtonStyles, CommandTypes, context_menu, prefixed_command, listen
+
+bot = Snake(sync_interactions=True)
+
+@listen()
+async def on_startup():
+ print("Ready")
+ print(f"This bot is owned by {bot.owner}")
+
+@prefixed_command()
+async def test_button(ctx):
+ await ctx.send("Blurple button example!", components=Button(ButtonStyles.BLURPLE, "Click me"))
+
+@context_menu(name="User menu", context_type=CommandTypes.USER, scopes=[931832853770149918])
+async def user_context(ctx):
+ await ctx.send("Context menu example!", ephemeral=True)
+
+
+bot.start("TOKEN")
+```
+For more examples check out [our examples repo](https://github.com/Discord-Snake-Pit/examples) or the [docs](https://dis-snek.readthedocs.io/). You also can [explore projects with the dis-snek topic](https://github.com/topics/dis-snek).
+
+If you get stuck join our [Discord server](https://discord.gg/dis-snek).
+
+
+## "Can I contribute to this project?"
+Of course, we welcome all contributions to this library. Just ensure you follow our [requirements](/CONTRIBUTING.md).
+If youre stuck for things to contribute, check out our [GitHub Projects](https://github.com/orgs/Discord-Snake-Pit/projects/1) for inspiration.
+
+## Links:
+- Support Server: https://discord.gg/dis-snek
+- Documentation: https://dis-snek.rtfd.io/
+- GitHub Projects: https://github.com/orgs/Discord-Snake-Pit/projects/1
+
+
+
+
+%prep
+%autosetup -n dis-snek-9.0.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-dis-snek -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 9.0.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..22c7465
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5de69d70d6a848e42b2c5a4d416a4e94 dis-snek-9.0.0.tar.gz