• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

interactions-py/library: Easy, simple, scalable and modular: a Python API wrappe ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

interactions-py/library

开源软件地址(OpenSource Url):

https://github.com/interactions-py/library

开源编程语言(OpenSource Language):

Python 100.0%

开源软件介绍(OpenSource Introduction):

interactions.py

Easy, simple, scalable and modular: a Python API wrapper for interactions.

https://readthedocs.org/projects/interactionspy/badge/?version=latest

https://discord.com/api/guilds/789032594456576001/embed.png


Ever since December 2019, this open-source project has become the culmination of dedication and research towards figuring out the best way to bring interactions from Discord to you: we are an easy, simple, scalable and modular library for Discord interactions.

  • Tired of using numerous module dependencies for slash commands and buttons?
  • Looking for a compatible library that implements all interactions?
  • Itching to get your hands on slash commands, but in a simple manner?

Look no more! The goal of this library is to make all three of these questions go from possibilities to trivial matters.

What can we do?

Our library---inside and out, offers numerous benefits and presents itself as a worthy module in your bot's dependencies:

The base features of our library, built with our API include:

  • Dynamic object data generation: all event data dispatched from the Gateway is dynamically transformed and generated into two-way serializable JSON objects.
  • Sane rate limiting: our HTTP client implements pre-emptive rate limit avoidance, so your bot is guaranteed to never hit HTTP 429.
  • On-demand cache: every HTTP request and Gateway event made is cached when needed, so you never have to save information yourself.
  • Simplified data models: every object presented is accessible as either a raw dictionary/application/json or list of recursive attributes.

Some more unique features that are exclusive to our interactions include:

  • Event-triggered callbacks: whether a component, application command or interaction response, you'll never need to worry about bridging responses.
  • Dual-way decorator logic: a decorator can act as both a constructor for an interaction, as well as a callback.
  • API-strict naming: no more confusion with the naming approach of many libraries; we follow the naming style of interactions from the officially curated Discord Developers documentation.
  • Extensive framework structure: build your own tools and technologies for our library to develop and integrate community creations.

What do we not offer?

While we certainly offer a lot of benefits, we unfortunately have our own downsides:

Note

This list is subject to change as time goes on: some of these items may be added to the core of the library in the future.

  • No native cooldown decorator/method.
  • Lack of automatic sharding and voice clients.

Where do I start?

Please check out our quickstart guide for some basic examples.

How can I contribute?

Please read up on our contribution requirements for the project. This open-source project also enforces the MIT License.

This open-source project utilizes the following workflows for development:

  1. pre-commit 2.20.0: the architecture uses this before every commit to format and check for severity/QOL-breaking changes.
    1. black 22.6.0
    2. flake8 4.0.1
    3. isort 5.10.1
  2. Sphinx 4.1.2: all of our documentation is powered off of autogenerated documentation of the Sphinx engine.
  3. colorama 0.4.4: our internal logger uses a customized coloring formatter to make looking for specific conditions easier when running tests.
  4. Conventional Commits 1.0.0: every commit that we make to our branches use the official specification of CC 1.0.0 to make git graphs easier when improving and refining communication between code reviews, Pull Requests and commits.

When can I start?

We also have some extra ground rules about making any specific contributions involving:

  • We do not accept abstraction-based requests. (e.g. colour for color)
  • A request has to be approved by at least one developer.
  • You must be willing to change/adhere to reviews from participants where necessary.

I think I'm all ready!

Feel free to begin making Pull Requests and Issues on our GitHub!




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap