kurimod 3.2.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.
- kurimod-3.2.0/.github/workflows/deploy.yml +52 -0
- kurimod-3.2.0/.github/workflows/python-publish.yml +70 -0
- kurimod-3.2.0/.github/workflows/test-deploy.yml +32 -0
- kurimod-3.2.0/.gitignore +58 -0
- kurimod-3.2.0/.idea/.gitignore +8 -0
- kurimod-3.2.0/.idea/inspectionProfiles/Project_Default.xml +15 -0
- kurimod-3.2.0/.idea/inspectionProfiles/profiles_settings.xml +6 -0
- kurimod-3.2.0/.idea/misc.xml +7 -0
- kurimod-3.2.0/.idea/modules.xml +8 -0
- kurimod-3.2.0/.idea/pyromod.iml +12 -0
- kurimod-3.2.0/.idea/vcs.xml +6 -0
- kurimod-3.2.0/COPYING +674 -0
- kurimod-3.2.0/COPYING.lesser +165 -0
- kurimod-3.2.0/NOTICE +17 -0
- kurimod-3.2.0/PKG-INFO +157 -0
- kurimod-3.2.0/README.md +145 -0
- kurimod-3.2.0/docs/.gitignore +20 -0
- kurimod-3.2.0/docs/README.md +41 -0
- kurimod-3.2.0/docs/babel.config.js +3 -0
- kurimod-3.2.0/docs/docs/getting-started/configuration.md +73 -0
- kurimod-3.2.0/docs/docs/getting-started/examples.md +59 -0
- kurimod-3.2.0/docs/docs/getting-started/initialization.md +33 -0
- kurimod-3.2.0/docs/docs/getting-started/installation.md +33 -0
- kurimod-3.2.0/docs/docs/getting-started/intro.md +43 -0
- kurimod-3.2.0/docs/docs/intro.md +37 -0
- kurimod-3.2.0/docs/docs/reference/index.md +46 -0
- kurimod-3.2.0/docs/docs/reference/modules/_category_.yml +2 -0
- kurimod-3.2.0/docs/docs/reference/modules/config/_category_.yml +2 -0
- kurimod-3.2.0/docs/docs/reference/modules/config/index.md +33 -0
- kurimod-3.2.0/docs/docs/reference/modules/exceptions/_category_.yml +2 -0
- kurimod-3.2.0/docs/docs/reference/modules/exceptions/listener-stopped.md +22 -0
- kurimod-3.2.0/docs/docs/reference/modules/exceptions/listener-timeout.md +20 -0
- kurimod-3.2.0/docs/docs/reference/modules/helpers/_category_.yml +2 -0
- kurimod-3.2.0/docs/docs/reference/modules/helpers/index.md +109 -0
- kurimod-3.2.0/docs/docs/reference/modules/listen/_category_.yml +2 -0
- kurimod-3.2.0/docs/docs/reference/modules/listen/chat.md +62 -0
- kurimod-3.2.0/docs/docs/reference/modules/listen/client.md +144 -0
- kurimod-3.2.0/docs/docs/reference/modules/listen/message.md +29 -0
- kurimod-3.2.0/docs/docs/reference/modules/listen/user.md +61 -0
- kurimod-3.2.0/docs/docs/reference/modules/nav/_category_.yml +2 -0
- kurimod-3.2.0/docs/docs/reference/modules/nav/pagination.md +35 -0
- kurimod-3.2.0/docs/docs/reference/modules/types/_category_.yml +2 -0
- kurimod-3.2.0/docs/docs/reference/modules/types/identifier.md +43 -0
- kurimod-3.2.0/docs/docs/reference/modules/types/listener-types.md +13 -0
- kurimod-3.2.0/docs/docs/reference/modules/types/listener.md +19 -0
- kurimod-3.2.0/docs/docs/reference/modules/utils/_category_.yml +2 -0
- kurimod-3.2.0/docs/docs/reference/modules/utils/patch.md +39 -0
- kurimod-3.2.0/docs/docs/release-notes/v2-0-0.md +49 -0
- kurimod-3.2.0/docs/docs/release-notes/v2-1-0.md +10 -0
- kurimod-3.2.0/docs/docs/release-notes/v3-0-0.md +105 -0
- kurimod-3.2.0/docs/docs/release-notes/v3-1-0.md +26 -0
- kurimod-3.2.0/docs/docusaurus.config.js +140 -0
- kurimod-3.2.0/docs/package-lock.json +14645 -0
- kurimod-3.2.0/docs/package.json +49 -0
- kurimod-3.2.0/docs/sidebars.js +35 -0
- kurimod-3.2.0/docs/src/components/ChatSimulator/index.jsx +123 -0
- kurimod-3.2.0/docs/src/components/ChatSimulator/styles.module.css +50 -0
- kurimod-3.2.0/docs/src/components/HomepageFeatures/index.js +64 -0
- kurimod-3.2.0/docs/src/components/HomepageFeatures/styles.module.css +11 -0
- kurimod-3.2.0/docs/src/components/PyromodChatSimulator/index.jsx +52 -0
- kurimod-3.2.0/docs/src/components/PyromodChatSimulator/styles.module.css +0 -0
- kurimod-3.2.0/docs/src/components/PyromodCodeBox/index.jsx +62 -0
- kurimod-3.2.0/docs/src/components/SelectVersionTabs/index.jsx +25 -0
- kurimod-3.2.0/docs/src/css/custom.css +76 -0
- kurimod-3.2.0/docs/src/pages/index.js +63 -0
- kurimod-3.2.0/docs/src/pages/index.module.css +28 -0
- kurimod-3.2.0/docs/src/utils/event.js +14 -0
- kurimod-3.2.0/docs/static/.nojekyll +0 -0
- kurimod-3.2.0/docs/static/CNAME +1 -0
- kurimod-3.2.0/docs/static/img/docusaurus-social-card.jpg +0 -0
- kurimod-3.2.0/docs/static/img/docusaurus.png +0 -0
- kurimod-3.2.0/docs/static/img/favicon.ico +0 -0
- kurimod-3.2.0/docs/static/img/logo.svg +1 -0
- kurimod-3.2.0/docs/static/img/undraw_docusaurus_mountain.svg +171 -0
- kurimod-3.2.0/docs/static/img/undraw_docusaurus_react.svg +170 -0
- kurimod-3.2.0/docs/static/img/undraw_docusaurus_tree.svg +40 -0
- kurimod-3.2.0/docs/tailwind.config.js +7 -0
- kurimod-3.2.0/docs/yarn.lock +8861 -0
- kurimod-3.2.0/examples/dice.py +11 -0
- kurimod-3.2.0/examples/my_account.session +0 -0
- kurimod-3.2.0/examples/my_bot.session +0 -0
- kurimod-3.2.0/kurimod/__init__.py +46 -0
- kurimod-3.2.0/kurimod/config/__init__.py +12 -0
- kurimod-3.2.0/kurimod/config.py +9 -0
- kurimod-3.2.0/kurimod/decorators/__init__.py +0 -0
- kurimod-3.2.0/kurimod/decorators/on_callback_query.py +0 -0
- kurimod-3.2.0/kurimod/decorators/on_inline_query.py +0 -0
- kurimod-3.2.0/kurimod/decorators/on_message.py +0 -0
- kurimod-3.2.0/kurimod/exceptions/__init__.py +4 -0
- kurimod-3.2.0/kurimod/exceptions/listener_stopped.py +2 -0
- kurimod-3.2.0/kurimod/exceptions/listener_timeout.py +2 -0
- kurimod-3.2.0/kurimod/helpers/__init__.py +22 -0
- kurimod-3.2.0/kurimod/helpers/helpers.py +90 -0
- kurimod-3.2.0/kurimod/listen/__init__.py +35 -0
- kurimod-3.2.0/kurimod/listen/callback_query_handler.py +146 -0
- kurimod-3.2.0/kurimod/listen/chat.py +21 -0
- kurimod-3.2.0/kurimod/listen/client.py +232 -0
- kurimod-3.2.0/kurimod/listen/message.py +32 -0
- kurimod-3.2.0/kurimod/listen/message_handler.py +98 -0
- kurimod-3.2.0/kurimod/listen/user.py +21 -0
- kurimod-3.2.0/kurimod/nav/__init__.py +22 -0
- kurimod-3.2.0/kurimod/nav/pagination.py +96 -0
- kurimod-3.2.0/kurimod/types/__init__.py +5 -0
- kurimod-3.2.0/kurimod/types/controller.py +0 -0
- kurimod-3.2.0/kurimod/types/identifier.py +41 -0
- kurimod-3.2.0/kurimod/types/listener.py +18 -0
- kurimod-3.2.0/kurimod/types/listener_types.py +6 -0
- kurimod-3.2.0/kurimod/utils/__init__.py +23 -0
- kurimod-3.2.0/kurimod/utils/patch.py +110 -0
- kurimod-3.2.0/pyproject.toml +23 -0
- kurimod-3.2.0/requirements-dev.lock +12 -0
- kurimod-3.2.0/requirements.lock +12 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Deploy to GitHub Pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
# Review gh actions docs if you want to further define triggers, paths, etc.
|
|
8
|
+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: write
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
deploy:
|
|
15
|
+
name: Deploy to GitHub Pages
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
env:
|
|
18
|
+
working-dir: ./docs
|
|
19
|
+
defaults:
|
|
20
|
+
run:
|
|
21
|
+
working-directory: ${{ env.working-dir }}
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
with:
|
|
25
|
+
fetch-depth: 0
|
|
26
|
+
- uses: actions/setup-node@v4
|
|
27
|
+
with:
|
|
28
|
+
node-version: 18
|
|
29
|
+
cache: yarn
|
|
30
|
+
cache-dependency-path: ./docs/yarn.lock
|
|
31
|
+
|
|
32
|
+
- name: Install dependencies
|
|
33
|
+
run: yarn install --frozen-lockfile
|
|
34
|
+
- name: Build website
|
|
35
|
+
run: yarn build
|
|
36
|
+
|
|
37
|
+
# Popular action to deploy to GitHub Pages:
|
|
38
|
+
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
|
|
39
|
+
- name: Deploy to GitHub Pages
|
|
40
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
41
|
+
with:
|
|
42
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
43
|
+
# Build output to publish to the `gh-pages` branch:
|
|
44
|
+
publish_dir: ./docs/build
|
|
45
|
+
cname: pyromod.pauxis.dev
|
|
46
|
+
# The following lines assign commit authorship to the official
|
|
47
|
+
# GH-Actions bot for deploys to `gh-pages` branch:
|
|
48
|
+
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
|
|
49
|
+
# The GH actions bot is used by default if you didn't specify the two fields.
|
|
50
|
+
# You can swap them out with your own user credentials.
|
|
51
|
+
user_name: github-actions[bot]
|
|
52
|
+
user_email: 41898282+github-actions[bot]@users.noreply.github.com
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# This workflow will upload a Python Package to PyPI when a release is created
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
|
3
|
+
|
|
4
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
5
|
+
# They are provided by a third-party and are governed by
|
|
6
|
+
# separate terms of service, privacy policy, and support
|
|
7
|
+
# documentation.
|
|
8
|
+
|
|
9
|
+
name: Upload Python Package
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
release:
|
|
13
|
+
types: [published]
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
release-build:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
|
|
25
|
+
- uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.x"
|
|
28
|
+
|
|
29
|
+
- name: Build release distributions
|
|
30
|
+
run: |
|
|
31
|
+
# NOTE: put your own distribution build steps here.
|
|
32
|
+
python -m pip install build
|
|
33
|
+
python -m build
|
|
34
|
+
|
|
35
|
+
- name: Upload distributions
|
|
36
|
+
uses: actions/upload-artifact@v4
|
|
37
|
+
with:
|
|
38
|
+
name: release-dists
|
|
39
|
+
path: dist/
|
|
40
|
+
|
|
41
|
+
pypi-publish:
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
needs:
|
|
44
|
+
- release-build
|
|
45
|
+
permissions:
|
|
46
|
+
# IMPORTANT: this permission is mandatory for trusted publishing
|
|
47
|
+
id-token: write
|
|
48
|
+
|
|
49
|
+
# Dedicated environments with protections for publishing are strongly recommended.
|
|
50
|
+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
|
|
51
|
+
environment:
|
|
52
|
+
name: pypi
|
|
53
|
+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
|
|
54
|
+
# url: https://pypi.org/p/YOURPROJECT
|
|
55
|
+
#
|
|
56
|
+
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
|
|
57
|
+
# ALTERNATIVE: exactly, uncomment the following line instead:
|
|
58
|
+
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
|
|
59
|
+
|
|
60
|
+
steps:
|
|
61
|
+
- name: Retrieve release distributions
|
|
62
|
+
uses: actions/download-artifact@v4
|
|
63
|
+
with:
|
|
64
|
+
name: release-dists
|
|
65
|
+
path: dist/
|
|
66
|
+
|
|
67
|
+
- name: Publish release distributions to PyPI
|
|
68
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
69
|
+
with:
|
|
70
|
+
packages-dir: dist/
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Test deployment
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
# Review gh actions docs if you want to further define triggers, paths, etc
|
|
8
|
+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test-deploy:
|
|
12
|
+
name: Test deployment
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
env:
|
|
15
|
+
working-dir: ./docs
|
|
16
|
+
defaults:
|
|
17
|
+
run:
|
|
18
|
+
working-directory: ${{ env.working-dir }}
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0
|
|
23
|
+
- uses: actions/setup-node@v4
|
|
24
|
+
with:
|
|
25
|
+
node-version: 18
|
|
26
|
+
cache: yarn
|
|
27
|
+
cache-dependency-path: ./docs/yarn.lock
|
|
28
|
+
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: yarn install --frozen-lockfile
|
|
31
|
+
- name: Test build website
|
|
32
|
+
run: yarn build
|
kurimod-3.2.0/.gitignore
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
|
|
5
|
+
# C extensions
|
|
6
|
+
*.so
|
|
7
|
+
|
|
8
|
+
# Distribution / packaging
|
|
9
|
+
bin/
|
|
10
|
+
build/
|
|
11
|
+
develop-eggs/
|
|
12
|
+
dist/
|
|
13
|
+
eggs/
|
|
14
|
+
lib/
|
|
15
|
+
lib64/
|
|
16
|
+
parts/
|
|
17
|
+
sdist/
|
|
18
|
+
var/
|
|
19
|
+
*.egg-info/
|
|
20
|
+
.installed.cfg
|
|
21
|
+
*.egg
|
|
22
|
+
|
|
23
|
+
# Installer logs
|
|
24
|
+
pip-log.txt
|
|
25
|
+
pip-delete-this-directory.txt
|
|
26
|
+
|
|
27
|
+
# Unit test / coverage reports
|
|
28
|
+
.tox/
|
|
29
|
+
.coverage
|
|
30
|
+
.cache
|
|
31
|
+
nosetests.xml
|
|
32
|
+
coverage.xml
|
|
33
|
+
|
|
34
|
+
# Translations
|
|
35
|
+
*.mo
|
|
36
|
+
|
|
37
|
+
# Mr Developer
|
|
38
|
+
.mr.developer.cfg
|
|
39
|
+
.project
|
|
40
|
+
.pydevproject
|
|
41
|
+
|
|
42
|
+
# Rope
|
|
43
|
+
.ropeproject
|
|
44
|
+
|
|
45
|
+
# Django stuff:
|
|
46
|
+
*.log
|
|
47
|
+
*.pot
|
|
48
|
+
|
|
49
|
+
# Sphinx documentation
|
|
50
|
+
docs/_build/
|
|
51
|
+
|
|
52
|
+
# Custom
|
|
53
|
+
test.py
|
|
54
|
+
.vscode
|
|
55
|
+
Session.vim
|
|
56
|
+
|
|
57
|
+
.python-version
|
|
58
|
+
.venv
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<component name="InspectionProjectProfileManager">
|
|
2
|
+
<profile version="1.0">
|
|
3
|
+
<option name="myName" value="Project Default" />
|
|
4
|
+
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
|
5
|
+
<option name="ignoredPackages">
|
|
6
|
+
<value>
|
|
7
|
+
<list size="2">
|
|
8
|
+
<item index="0" class="java.lang.String" itemvalue="pydantic_core" />
|
|
9
|
+
<item index="1" class="java.lang.String" itemvalue="typing_extensions" />
|
|
10
|
+
</list>
|
|
11
|
+
</value>
|
|
12
|
+
</option>
|
|
13
|
+
</inspection_tool>
|
|
14
|
+
</profile>
|
|
15
|
+
</component>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="Black">
|
|
4
|
+
<option name="sdkName" value="Python 3.12 (pyromod)" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (pyromod)" project-jdk-type="Python SDK" />
|
|
7
|
+
</project>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="PYTHON_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$" />
|
|
5
|
+
<orderEntry type="jdk" jdkName="Python 3.12 (pyromod)" jdkType="Python SDK" />
|
|
6
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
+
</component>
|
|
8
|
+
<component name="PyDocumentationSettings">
|
|
9
|
+
<option name="format" value="GOOGLE" />
|
|
10
|
+
<option name="myDocStringFormat" value="Google" />
|
|
11
|
+
</component>
|
|
12
|
+
</module>
|