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.
Files changed (112) hide show
  1. kurimod-3.2.0/.github/workflows/deploy.yml +52 -0
  2. kurimod-3.2.0/.github/workflows/python-publish.yml +70 -0
  3. kurimod-3.2.0/.github/workflows/test-deploy.yml +32 -0
  4. kurimod-3.2.0/.gitignore +58 -0
  5. kurimod-3.2.0/.idea/.gitignore +8 -0
  6. kurimod-3.2.0/.idea/inspectionProfiles/Project_Default.xml +15 -0
  7. kurimod-3.2.0/.idea/inspectionProfiles/profiles_settings.xml +6 -0
  8. kurimod-3.2.0/.idea/misc.xml +7 -0
  9. kurimod-3.2.0/.idea/modules.xml +8 -0
  10. kurimod-3.2.0/.idea/pyromod.iml +12 -0
  11. kurimod-3.2.0/.idea/vcs.xml +6 -0
  12. kurimod-3.2.0/COPYING +674 -0
  13. kurimod-3.2.0/COPYING.lesser +165 -0
  14. kurimod-3.2.0/NOTICE +17 -0
  15. kurimod-3.2.0/PKG-INFO +157 -0
  16. kurimod-3.2.0/README.md +145 -0
  17. kurimod-3.2.0/docs/.gitignore +20 -0
  18. kurimod-3.2.0/docs/README.md +41 -0
  19. kurimod-3.2.0/docs/babel.config.js +3 -0
  20. kurimod-3.2.0/docs/docs/getting-started/configuration.md +73 -0
  21. kurimod-3.2.0/docs/docs/getting-started/examples.md +59 -0
  22. kurimod-3.2.0/docs/docs/getting-started/initialization.md +33 -0
  23. kurimod-3.2.0/docs/docs/getting-started/installation.md +33 -0
  24. kurimod-3.2.0/docs/docs/getting-started/intro.md +43 -0
  25. kurimod-3.2.0/docs/docs/intro.md +37 -0
  26. kurimod-3.2.0/docs/docs/reference/index.md +46 -0
  27. kurimod-3.2.0/docs/docs/reference/modules/_category_.yml +2 -0
  28. kurimod-3.2.0/docs/docs/reference/modules/config/_category_.yml +2 -0
  29. kurimod-3.2.0/docs/docs/reference/modules/config/index.md +33 -0
  30. kurimod-3.2.0/docs/docs/reference/modules/exceptions/_category_.yml +2 -0
  31. kurimod-3.2.0/docs/docs/reference/modules/exceptions/listener-stopped.md +22 -0
  32. kurimod-3.2.0/docs/docs/reference/modules/exceptions/listener-timeout.md +20 -0
  33. kurimod-3.2.0/docs/docs/reference/modules/helpers/_category_.yml +2 -0
  34. kurimod-3.2.0/docs/docs/reference/modules/helpers/index.md +109 -0
  35. kurimod-3.2.0/docs/docs/reference/modules/listen/_category_.yml +2 -0
  36. kurimod-3.2.0/docs/docs/reference/modules/listen/chat.md +62 -0
  37. kurimod-3.2.0/docs/docs/reference/modules/listen/client.md +144 -0
  38. kurimod-3.2.0/docs/docs/reference/modules/listen/message.md +29 -0
  39. kurimod-3.2.0/docs/docs/reference/modules/listen/user.md +61 -0
  40. kurimod-3.2.0/docs/docs/reference/modules/nav/_category_.yml +2 -0
  41. kurimod-3.2.0/docs/docs/reference/modules/nav/pagination.md +35 -0
  42. kurimod-3.2.0/docs/docs/reference/modules/types/_category_.yml +2 -0
  43. kurimod-3.2.0/docs/docs/reference/modules/types/identifier.md +43 -0
  44. kurimod-3.2.0/docs/docs/reference/modules/types/listener-types.md +13 -0
  45. kurimod-3.2.0/docs/docs/reference/modules/types/listener.md +19 -0
  46. kurimod-3.2.0/docs/docs/reference/modules/utils/_category_.yml +2 -0
  47. kurimod-3.2.0/docs/docs/reference/modules/utils/patch.md +39 -0
  48. kurimod-3.2.0/docs/docs/release-notes/v2-0-0.md +49 -0
  49. kurimod-3.2.0/docs/docs/release-notes/v2-1-0.md +10 -0
  50. kurimod-3.2.0/docs/docs/release-notes/v3-0-0.md +105 -0
  51. kurimod-3.2.0/docs/docs/release-notes/v3-1-0.md +26 -0
  52. kurimod-3.2.0/docs/docusaurus.config.js +140 -0
  53. kurimod-3.2.0/docs/package-lock.json +14645 -0
  54. kurimod-3.2.0/docs/package.json +49 -0
  55. kurimod-3.2.0/docs/sidebars.js +35 -0
  56. kurimod-3.2.0/docs/src/components/ChatSimulator/index.jsx +123 -0
  57. kurimod-3.2.0/docs/src/components/ChatSimulator/styles.module.css +50 -0
  58. kurimod-3.2.0/docs/src/components/HomepageFeatures/index.js +64 -0
  59. kurimod-3.2.0/docs/src/components/HomepageFeatures/styles.module.css +11 -0
  60. kurimod-3.2.0/docs/src/components/PyromodChatSimulator/index.jsx +52 -0
  61. kurimod-3.2.0/docs/src/components/PyromodChatSimulator/styles.module.css +0 -0
  62. kurimod-3.2.0/docs/src/components/PyromodCodeBox/index.jsx +62 -0
  63. kurimod-3.2.0/docs/src/components/SelectVersionTabs/index.jsx +25 -0
  64. kurimod-3.2.0/docs/src/css/custom.css +76 -0
  65. kurimod-3.2.0/docs/src/pages/index.js +63 -0
  66. kurimod-3.2.0/docs/src/pages/index.module.css +28 -0
  67. kurimod-3.2.0/docs/src/utils/event.js +14 -0
  68. kurimod-3.2.0/docs/static/.nojekyll +0 -0
  69. kurimod-3.2.0/docs/static/CNAME +1 -0
  70. kurimod-3.2.0/docs/static/img/docusaurus-social-card.jpg +0 -0
  71. kurimod-3.2.0/docs/static/img/docusaurus.png +0 -0
  72. kurimod-3.2.0/docs/static/img/favicon.ico +0 -0
  73. kurimod-3.2.0/docs/static/img/logo.svg +1 -0
  74. kurimod-3.2.0/docs/static/img/undraw_docusaurus_mountain.svg +171 -0
  75. kurimod-3.2.0/docs/static/img/undraw_docusaurus_react.svg +170 -0
  76. kurimod-3.2.0/docs/static/img/undraw_docusaurus_tree.svg +40 -0
  77. kurimod-3.2.0/docs/tailwind.config.js +7 -0
  78. kurimod-3.2.0/docs/yarn.lock +8861 -0
  79. kurimod-3.2.0/examples/dice.py +11 -0
  80. kurimod-3.2.0/examples/my_account.session +0 -0
  81. kurimod-3.2.0/examples/my_bot.session +0 -0
  82. kurimod-3.2.0/kurimod/__init__.py +46 -0
  83. kurimod-3.2.0/kurimod/config/__init__.py +12 -0
  84. kurimod-3.2.0/kurimod/config.py +9 -0
  85. kurimod-3.2.0/kurimod/decorators/__init__.py +0 -0
  86. kurimod-3.2.0/kurimod/decorators/on_callback_query.py +0 -0
  87. kurimod-3.2.0/kurimod/decorators/on_inline_query.py +0 -0
  88. kurimod-3.2.0/kurimod/decorators/on_message.py +0 -0
  89. kurimod-3.2.0/kurimod/exceptions/__init__.py +4 -0
  90. kurimod-3.2.0/kurimod/exceptions/listener_stopped.py +2 -0
  91. kurimod-3.2.0/kurimod/exceptions/listener_timeout.py +2 -0
  92. kurimod-3.2.0/kurimod/helpers/__init__.py +22 -0
  93. kurimod-3.2.0/kurimod/helpers/helpers.py +90 -0
  94. kurimod-3.2.0/kurimod/listen/__init__.py +35 -0
  95. kurimod-3.2.0/kurimod/listen/callback_query_handler.py +146 -0
  96. kurimod-3.2.0/kurimod/listen/chat.py +21 -0
  97. kurimod-3.2.0/kurimod/listen/client.py +232 -0
  98. kurimod-3.2.0/kurimod/listen/message.py +32 -0
  99. kurimod-3.2.0/kurimod/listen/message_handler.py +98 -0
  100. kurimod-3.2.0/kurimod/listen/user.py +21 -0
  101. kurimod-3.2.0/kurimod/nav/__init__.py +22 -0
  102. kurimod-3.2.0/kurimod/nav/pagination.py +96 -0
  103. kurimod-3.2.0/kurimod/types/__init__.py +5 -0
  104. kurimod-3.2.0/kurimod/types/controller.py +0 -0
  105. kurimod-3.2.0/kurimod/types/identifier.py +41 -0
  106. kurimod-3.2.0/kurimod/types/listener.py +18 -0
  107. kurimod-3.2.0/kurimod/types/listener_types.py +6 -0
  108. kurimod-3.2.0/kurimod/utils/__init__.py +23 -0
  109. kurimod-3.2.0/kurimod/utils/patch.py +110 -0
  110. kurimod-3.2.0/pyproject.toml +23 -0
  111. kurimod-3.2.0/requirements-dev.lock +12 -0
  112. 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
@@ -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,8 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
@@ -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,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </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,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/pyromod.iml" filepath="$PROJECT_DIR$/.idea/pyromod.iml" />
6
+ </modules>
7
+ </component>
8
+ </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>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>