discord-clyde 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- discord_clyde-0.1.0/.github/CONTRIBUTING.md +20 -0
- discord_clyde-0.1.0/.github/workflows/FUNDING.yaml +1 -0
- discord_clyde-0.1.0/.github/workflows/workflow.yaml +68 -0
- discord_clyde-0.1.0/.gitignore +174 -0
- discord_clyde-0.1.0/.python-version +1 -0
- discord_clyde-0.1.0/.vscode/extensions.json +8 -0
- discord_clyde-0.1.0/LICENSE +661 -0
- discord_clyde-0.1.0/PKG-INFO +137 -0
- discord_clyde-0.1.0/README.md +118 -0
- discord_clyde-0.1.0/assets/clyde_evil.json +7031 -0
- discord_clyde-0.1.0/assets/clyde_evil.webp +0 -0
- discord_clyde-0.1.0/assets/clyde_evil_avatar.png +0 -0
- discord_clyde-0.1.0/assets/cylde_evil.png +0 -0
- discord_clyde-0.1.0/assets/readme_banner.png +0 -0
- discord_clyde-0.1.0/assets/readme_banner.psd +0 -0
- discord_clyde-0.1.0/assets/social_preview.png +0 -0
- discord_clyde-0.1.0/assets/social_preview.psd +0 -0
- discord_clyde-0.1.0/clyde/__init__.py +39 -0
- discord_clyde-0.1.0/clyde/component.py +79 -0
- discord_clyde-0.1.0/clyde/components/__init__.py +27 -0
- discord_clyde-0.1.0/clyde/components/action_row.py +53 -0
- discord_clyde-0.1.0/clyde/components/button.py +125 -0
- discord_clyde-0.1.0/clyde/components/container.py +120 -0
- discord_clyde-0.1.0/clyde/components/file.py +92 -0
- discord_clyde-0.1.0/clyde/components/media_gallery.py +181 -0
- discord_clyde-0.1.0/clyde/components/section.py +77 -0
- discord_clyde-0.1.0/clyde/components/seperator.py +85 -0
- discord_clyde-0.1.0/clyde/components/text_display.py +45 -0
- discord_clyde-0.1.0/clyde/components/thumbnail.py +87 -0
- discord_clyde-0.1.0/clyde/components/unfurled_media_item.py +52 -0
- discord_clyde-0.1.0/clyde/embed.py +598 -0
- discord_clyde-0.1.0/clyde/markdown.py +232 -0
- discord_clyde-0.1.0/clyde/poll.py +259 -0
- discord_clyde-0.1.0/clyde/py.typed +0 -0
- discord_clyde-0.1.0/clyde/timestamp.py +171 -0
- discord_clyde-0.1.0/clyde/validation.py +77 -0
- discord_clyde-0.1.0/clyde/webhook.py +793 -0
- discord_clyde-0.1.0/docs/component.md +12 -0
- discord_clyde-0.1.0/docs/embed.md +1 -0
- discord_clyde-0.1.0/docs/img/readme_banner.png +0 -0
- discord_clyde-0.1.0/docs/index.md +32 -0
- discord_clyde-0.1.0/docs/markdown.md +1 -0
- discord_clyde-0.1.0/docs/poll.md +1 -0
- discord_clyde-0.1.0/docs/stylesheets/extra.css +6 -0
- discord_clyde-0.1.0/docs/timestamp.md +1 -0
- discord_clyde-0.1.0/docs/validation.md +1 -0
- discord_clyde-0.1.0/docs/webhook.md +1 -0
- discord_clyde-0.1.0/mkdocs.yml +21 -0
- discord_clyde-0.1.0/pyproject.toml +66 -0
- discord_clyde-0.1.0/tests/__init__.py +5 -0
- discord_clyde-0.1.0/tests/clyde/__init__.py +7 -0
- discord_clyde-0.1.0/tests/clyde/constants.py +42 -0
- discord_clyde-0.1.0/tests/clyde/data/file_binary.bin +0 -0
- discord_clyde-0.1.0/tests/clyde/data/file_plaintext.txt +1 -0
- discord_clyde-0.1.0/tests/clyde/data/icon_1.png +0 -0
- discord_clyde-0.1.0/tests/clyde/data/icon_2.png +0 -0
- discord_clyde-0.1.0/tests/clyde/data/icon_3.png +0 -0
- discord_clyde-0.1.0/tests/clyde/data/icon_4.png +0 -0
- discord_clyde-0.1.0/tests/clyde/data/image_1.png +0 -0
- discord_clyde-0.1.0/tests/clyde/data/image_2.png +0 -0
- discord_clyde-0.1.0/tests/clyde/data/image_3.png +0 -0
- discord_clyde-0.1.0/tests/clyde/data/image_4.png +0 -0
- discord_clyde-0.1.0/tests/clyde/test_component.py +298 -0
- discord_clyde-0.1.0/tests/clyde/test_embed.py +76 -0
- discord_clyde-0.1.0/tests/clyde/test_poll.py +91 -0
- discord_clyde-0.1.0/tests/clyde/test_webhook.py +293 -0
- discord_clyde-0.1.0/uv.lock +738 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# How to Contribute
|
|
2
|
+
|
|
3
|
+
Contributions to this project are gladly accepted, there are a just a few guidelines that need to be followed.
|
|
4
|
+
|
|
5
|
+
## Reporting Issues
|
|
6
|
+
|
|
7
|
+
Bugs and feature requests should be directed to the [GitHub Issue Tracker](https://github.com/EthanC/Clyde/issues).
|
|
8
|
+
|
|
9
|
+
If reporting a bug, please try and provide as much context as possible such as your operating system, Python version, and anything else that might be relevant to the bug. Security related bugs should also be reported in the Issue Tracker, or if they are more sensitive, Direct Messaged to [@Mxtive on X](https://twitter.com/Mxtive) or `lacking` on Discord.
|
|
10
|
+
|
|
11
|
+
For feature requests, please explain what you're trying to do and how the requested feature would help you do that.
|
|
12
|
+
|
|
13
|
+
## Submitting a Contribution
|
|
14
|
+
|
|
15
|
+
1. It's generally best to start by opening a new Issue describing the bug or feature you're intending to fix. Even if you think it's relatively minor, it's helpful to know what people are working on. Mention in the initial Issue that you are planning to work on that bug or feature so that it can be assigned to you.
|
|
16
|
+
2. Follow the normal process of [Forking](https://help.github.com/articles/fork-a-repo) the repository, then setup a new Branch to work in. It's important that each group of changes be done in separate Branches in order to ensure that a Pull Request only includes the commits related to that bug or feature.
|
|
17
|
+
3. [Ruff](https://github.com/astral-sh/ruff) is used in this project and make it very simple to ensure properly formatted code, so always run it on your code before committing.
|
|
18
|
+
4. Any significant changes should almost always be accompanied by tests. The project already has good test coverage, so look at some of the existing tests if you're unsure how to go about it.
|
|
19
|
+
5. Do your best to have [well-formed Commit messages](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) for each change. This provides consistency throughout the project, and ensures that Commit messages are able to be formatted properly by various git tools.
|
|
20
|
+
6. Finally, push the Commits to your Fork and submit a [Pull Request](https://help.github.com/articles/creating-a-pull-request). Please do not use Force-Push on Pull Requests in this repository, as it makes it more difficult for reviewers to see what has changed since the last code review.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
custom: ["https://cash.app/$EthanChrisp", "https://venmo.com/u/Mxtive"]
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
name: Primary
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
library:
|
|
13
|
+
name: Library
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout Repository
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
- name: Install uv
|
|
19
|
+
uses: astral-sh/setup-uv@v5
|
|
20
|
+
- name: Install Python
|
|
21
|
+
run: uv python install
|
|
22
|
+
- name: Install Dependencies
|
|
23
|
+
run: uv sync --dev
|
|
24
|
+
- name: Run ruff
|
|
25
|
+
run: uv run ruff check .
|
|
26
|
+
- name: Run pytest
|
|
27
|
+
run: uv run pytest --cov --cov-branch --cov-report=xml
|
|
28
|
+
env:
|
|
29
|
+
TESTS_WEBHOOK_URL: ${{ secrets.TESTS_WEBHOOK_URL }}
|
|
30
|
+
- name: Upload Coverage Report
|
|
31
|
+
uses: codecov/codecov-action@v5
|
|
32
|
+
with:
|
|
33
|
+
fail_ci_if_error: true
|
|
34
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
35
|
+
- name: Build Package
|
|
36
|
+
run: uv build
|
|
37
|
+
# - name: Publish Package to PyPI
|
|
38
|
+
# env:
|
|
39
|
+
# PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
40
|
+
# run: uv publish --token $PYPI_API_TOKEN
|
|
41
|
+
documentation:
|
|
42
|
+
name: Documentation
|
|
43
|
+
runs-on: ubuntu-latest
|
|
44
|
+
steps:
|
|
45
|
+
- name: Checkout Repository
|
|
46
|
+
uses: actions/checkout@v4
|
|
47
|
+
- name: Install uv
|
|
48
|
+
uses: astral-sh/setup-uv@v5
|
|
49
|
+
- name: Install Python
|
|
50
|
+
run: uv python install
|
|
51
|
+
- name: Configure Git
|
|
52
|
+
run: |
|
|
53
|
+
git config user.name github-actions[bot]
|
|
54
|
+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
|
55
|
+
- name: Print cache_id
|
|
56
|
+
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
|
57
|
+
- uses: actions/cache@v4
|
|
58
|
+
with:
|
|
59
|
+
key: mkdocs-material-${{ env.cache_id }}
|
|
60
|
+
path: .cache
|
|
61
|
+
restore-keys: |
|
|
62
|
+
mkdocs-material-
|
|
63
|
+
- name: Install Dependencies
|
|
64
|
+
run: uv add mkdocstrings[python] mkdocs-material
|
|
65
|
+
- name: Build Documentation
|
|
66
|
+
run: uv run mkdocs build
|
|
67
|
+
- name: Deploy Documentation
|
|
68
|
+
run: uv run mkdocs gh-deploy --force
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
|
|
110
|
+
# pdm
|
|
111
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
112
|
+
#pdm.lock
|
|
113
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
114
|
+
# in version control.
|
|
115
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
116
|
+
.pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
121
|
+
__pypackages__/
|
|
122
|
+
|
|
123
|
+
# Celery stuff
|
|
124
|
+
celerybeat-schedule
|
|
125
|
+
celerybeat.pid
|
|
126
|
+
|
|
127
|
+
# SageMath parsed files
|
|
128
|
+
*.sage.py
|
|
129
|
+
|
|
130
|
+
# Environments
|
|
131
|
+
.env
|
|
132
|
+
.venv
|
|
133
|
+
env/
|
|
134
|
+
venv/
|
|
135
|
+
ENV/
|
|
136
|
+
env.bak/
|
|
137
|
+
venv.bak/
|
|
138
|
+
|
|
139
|
+
# Spyder project settings
|
|
140
|
+
.spyderproject
|
|
141
|
+
.spyproject
|
|
142
|
+
|
|
143
|
+
# Rope project settings
|
|
144
|
+
.ropeproject
|
|
145
|
+
|
|
146
|
+
# mkdocs documentation
|
|
147
|
+
/site
|
|
148
|
+
|
|
149
|
+
# mypy
|
|
150
|
+
.mypy_cache/
|
|
151
|
+
.dmypy.json
|
|
152
|
+
dmypy.json
|
|
153
|
+
|
|
154
|
+
# Pyre type checker
|
|
155
|
+
.pyre/
|
|
156
|
+
|
|
157
|
+
# pytype static type analyzer
|
|
158
|
+
.pytype/
|
|
159
|
+
|
|
160
|
+
# Cython debug symbols
|
|
161
|
+
cython_debug/
|
|
162
|
+
|
|
163
|
+
# PyCharm
|
|
164
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
165
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
166
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
167
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
168
|
+
#.idea/
|
|
169
|
+
|
|
170
|
+
# Ruff stuff:
|
|
171
|
+
.ruff_cache/
|
|
172
|
+
|
|
173
|
+
# PyPI configuration file
|
|
174
|
+
.pypirc
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|