CustomModules 1.0.0__tar.gz → 1.0.2__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 (47) hide show
  1. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/__init__.py +1 -1
  2. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/app_translation.py +3 -1
  3. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/bitmap_handler.py +3 -1
  4. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/bot_directory.py +3 -1
  5. custommodules-1.0.2/CustomModules/database_handler.py +28 -0
  6. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/googletrans.py +3 -1
  7. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/invite_tracker.py +3 -1
  8. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/killswitch.py +3 -1
  9. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/libretrans.py +3 -1
  10. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/log_handler.py +3 -1
  11. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/patchnotes.py +3 -1
  12. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/private_voice.py +3 -1
  13. custommodules-1.0.2/CustomModules/py.typed +0 -0
  14. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/random_usernames.py +3 -1
  15. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/stat_dock.py +3 -1
  16. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/steam.py +3 -1
  17. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/steam_charts.py +3 -1
  18. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules/twitch.py +3 -1
  19. {custommodules-1.0.0 → custommodules-1.0.2/CustomModules.egg-info}/PKG-INFO +3 -4
  20. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules.egg-info/SOURCES.txt +1 -0
  21. {custommodules-1.0.0/CustomModules.egg-info → custommodules-1.0.2}/PKG-INFO +3 -4
  22. {custommodules-1.0.0 → custommodules-1.0.2}/pyproject.toml +3 -6
  23. {custommodules-1.0.0 → custommodules-1.0.2}/setup.py +3 -1
  24. custommodules-1.0.0/CustomModules/database_handler.py +0 -10
  25. {custommodules-1.0.0 → custommodules-1.0.2}/AppTranslation/requirements.txt +0 -0
  26. {custommodules-1.0.0 → custommodules-1.0.2}/BotDirectory/requirements.txt +0 -0
  27. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules.egg-info/dependency_links.txt +0 -0
  28. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules.egg-info/not-zip-safe +0 -0
  29. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules.egg-info/requires.txt +0 -0
  30. {custommodules-1.0.0 → custommodules-1.0.2}/CustomModules.egg-info/top_level.txt +0 -0
  31. {custommodules-1.0.0 → custommodules-1.0.2}/DatabaseHandler/requirements.txt +0 -0
  32. {custommodules-1.0.0 → custommodules-1.0.2}/Googletrans/requirements.txt +0 -0
  33. {custommodules-1.0.0 → custommodules-1.0.2}/InviteTracker/requirements.txt +0 -0
  34. {custommodules-1.0.0 → custommodules-1.0.2}/Killswitch/requirements.txt +0 -0
  35. {custommodules-1.0.0 → custommodules-1.0.2}/LICENSE.txt +0 -0
  36. {custommodules-1.0.0 → custommodules-1.0.2}/Libretrans/requirements.txt +0 -0
  37. {custommodules-1.0.0 → custommodules-1.0.2}/LogHandler/requirements.txt +0 -0
  38. {custommodules-1.0.0 → custommodules-1.0.2}/MANIFEST.in +0 -0
  39. {custommodules-1.0.0 → custommodules-1.0.2}/Patchnotes/requirements.txt +0 -0
  40. {custommodules-1.0.0 → custommodules-1.0.2}/PrivateVoice/requirements.txt +0 -0
  41. {custommodules-1.0.0 → custommodules-1.0.2}/README.md +0 -0
  42. {custommodules-1.0.0 → custommodules-1.0.2}/RandomUsernames/requirements.txt +0 -0
  43. {custommodules-1.0.0 → custommodules-1.0.2}/StatDock/requirements.txt +0 -0
  44. {custommodules-1.0.0 → custommodules-1.0.2}/Steam/requirements.txt +0 -0
  45. {custommodules-1.0.0 → custommodules-1.0.2}/SteamCharts/requirements.txt +0 -0
  46. {custommodules-1.0.0 → custommodules-1.0.2}/Twitch/requirements.txt +0 -0
  47. {custommodules-1.0.0 → custommodules-1.0.2}/setup.cfg +0 -0
@@ -20,7 +20,7 @@ Available modules:
20
20
  - twitch: Twitch API integration
21
21
  """
22
22
 
23
- __version__ = '1.0.0'
23
+ __version__ = '1.0.2'
24
24
  __author__ = 'Serpensin'
25
25
  __license__ = 'AGPL-3.0'
26
26
 
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from AppTranslation.AppTranslation import *
10
+ from AppTranslation.AppTranslation import Translator
11
+
12
+ __all__ = ['Translator']
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from BitmapHandler.BitmapHandler import *
10
+ from BitmapHandler.BitmapHandler import BitmapHandler
11
+
12
+ __all__ = ['BitmapHandler']
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from BotDirectory.BotDirectory import *
10
+ from BotDirectory.BotDirectory import Stats
11
+
12
+ __all__ = ['Stats']
@@ -0,0 +1,28 @@
1
+ """DatabaseHandler module - Multi-database async handler."""
2
+ import sys
3
+ import os
4
+
5
+ # Add parent directory to path to allow importing from sibling directories
6
+ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
+ if _parent_dir not in sys.path:
8
+ sys.path.insert(0, _parent_dir)
9
+
10
+ from DatabaseHandler.DatabaseHandler import (
11
+ BaseDatabaseBackend,
12
+ SQLiteBackend,
13
+ MySQLBackend,
14
+ PostgreSQLBackend,
15
+ MongoDBBackend,
16
+ AsyncDatabaseHandler,
17
+ SyncDatabaseHandler
18
+ )
19
+
20
+ __all__ = [
21
+ 'BaseDatabaseBackend',
22
+ 'SQLiteBackend',
23
+ 'MySQLBackend',
24
+ 'PostgreSQLBackend',
25
+ 'MongoDBBackend',
26
+ 'AsyncDatabaseHandler',
27
+ 'SyncDatabaseHandler'
28
+ ]
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from Googletrans.Googletrans import *
10
+ from Googletrans.Googletrans import API
11
+
12
+ __all__ = ['API']
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from InviteTracker.InviteTracker import *
10
+ from InviteTracker.InviteTracker import Tracker
11
+
12
+ __all__ = ['Tracker']
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from Killswitch.Killswitch import *
10
+ from Killswitch.Killswitch import get_killswitch
11
+
12
+ __all__ = ['get_killswitch']
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from Libretrans.Libretrans import *
10
+ from Libretrans.Libretrans import Errors, API
11
+
12
+ __all__ = ['Errors', 'API']
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from LogHandler.LogHandler import *
10
+ from LogHandler.LogHandler import LogManager
11
+
12
+ __all__ = ['LogManager']
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from Patchnotes.Patchnotes import *
10
+ from Patchnotes.Patchnotes import get_update_content
11
+
12
+ __all__ = ['get_update_content']
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from PrivateVoice.PrivateVoice import *
10
+ from PrivateVoice.PrivateVoice import setup, add_listener, start_garbage_collector
11
+
12
+ __all__ = ['setup', 'add_listener', 'start_garbage_collector']
File without changes
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from RandomUsernames.RandomUsernames import *
10
+ from RandomUsernames.RandomUsernames import generate_username
11
+
12
+ __all__ = ['generate_username']
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from StatDock.StatDock import *
10
+ from StatDock.StatDock import setup, task, timezone_autocomplete
11
+
12
+ __all__ = ['setup', 'task', 'timezone_autocomplete']
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from Steam.Steam import *
10
+ from Steam.Steam import Errors, API, GetFreePromotions
11
+
12
+ __all__ = ['Errors', 'API', 'GetFreePromotions']
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from SteamCharts.SteamCharts import *
10
+ from SteamCharts.SteamCharts import playercount
11
+
12
+ __all__ = ['playercount']
@@ -7,4 +7,6 @@ _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
7
  if _parent_dir not in sys.path:
8
8
  sys.path.insert(0, _parent_dir)
9
9
 
10
- from Twitch.Twitch import *
10
+ from Twitch.Twitch import TwitchAPI
11
+
12
+ __all__ = ['TwitchAPI']
@@ -1,17 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: CustomModules
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: A collection of custom Python modules for Discord bots and utilities
5
5
  Home-page: https://github.com/Serpensin/CustomModules-Python
6
6
  Author: Serpensin
7
- License: AGPL-3.0-or-later
7
+ License-Expression: AGPL-3.0-or-later
8
8
  Project-URL: Homepage, https://github.com/Serpensin/CustomModules-Python
9
9
  Project-URL: Bug Reports, https://github.com/Serpensin/CustomModules-Python/issues
10
10
  Project-URL: Source, https://github.com/Serpensin/CustomModules-Python
11
11
  Keywords: discord,bot,utilities,modules,custom
12
- Classifier: Development Status :: 4 - Beta
12
+ Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: GNU Affero General Public License v3
15
14
  Classifier: Operating System :: OS Independent
16
15
  Classifier: Programming Language :: Python :: 3
17
16
  Classifier: Programming Language :: Python :: 3.10
@@ -18,6 +18,7 @@ CustomModules/libretrans.py
18
18
  CustomModules/log_handler.py
19
19
  CustomModules/patchnotes.py
20
20
  CustomModules/private_voice.py
21
+ CustomModules/py.typed
21
22
  CustomModules/random_usernames.py
22
23
  CustomModules/stat_dock.py
23
24
  CustomModules/steam.py
@@ -1,17 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: CustomModules
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: A collection of custom Python modules for Discord bots and utilities
5
5
  Home-page: https://github.com/Serpensin/CustomModules-Python
6
6
  Author: Serpensin
7
- License: AGPL-3.0-or-later
7
+ License-Expression: AGPL-3.0-or-later
8
8
  Project-URL: Homepage, https://github.com/Serpensin/CustomModules-Python
9
9
  Project-URL: Bug Reports, https://github.com/Serpensin/CustomModules-Python/issues
10
10
  Project-URL: Source, https://github.com/Serpensin/CustomModules-Python
11
11
  Keywords: discord,bot,utilities,modules,custom
12
- Classifier: Development Status :: 4 - Beta
12
+ Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: GNU Affero General Public License v3
15
14
  Classifier: Operating System :: OS Independent
16
15
  Classifier: Programming Language :: Python :: 3
17
16
  Classifier: Programming Language :: Python :: 3.10
@@ -4,17 +4,17 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "CustomModules"
7
- version = "1.0.0"
7
+ version = "1.0.2"
8
8
  authors = [
9
9
  {name = "Serpensin"},
10
10
  ]
11
11
  description = "A collection of custom Python modules for Discord bots and utilities"
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.10"
14
+ license = "AGPL-3.0-or-later"
14
15
  classifiers = [
15
- "Development Status :: 4 - Beta",
16
+ "Development Status :: 5 - Production/Stable",
16
17
  "Intended Audience :: Developers",
17
- "License :: OSI Approved :: GNU Affero General Public License v3",
18
18
  "Operating System :: OS Independent",
19
19
  "Programming Language :: Python :: 3",
20
20
  "Programming Language :: Python :: 3.10",
@@ -26,9 +26,6 @@ classifiers = [
26
26
  keywords = ["discord", "bot", "utilities", "modules", "custom"]
27
27
  dynamic = ["optional-dependencies"]
28
28
 
29
- [project.license]
30
- text = "AGPL-3.0-or-later"
31
-
32
29
  [project.urls]
33
30
  Homepage = "https://github.com/Serpensin/CustomModules-Python"
34
31
  "Bug Reports" = "https://github.com/Serpensin/CustomModules-Python/issues"
@@ -52,13 +52,15 @@ extras_require['all'] = sorted(all_deps)
52
52
 
53
53
  setup(
54
54
  name='CustomModules',
55
- version='1.0.0',
55
+ version='1.0.2',
56
56
  author='Serpensin',
57
57
  description='A collection of custom Python modules for Discord bots and utilities',
58
58
  long_description=read_file('README.md'),
59
59
  long_description_content_type='text/markdown',
60
60
  url='https://github.com/Serpensin/CustomModules-Python',
61
61
  packages=find_packages(exclude=['tests', '*.tests', '*.tests.*', 'tests.*']),
62
+ package_data={'CustomModules': ['py.typed']},
63
+ include_package_data=True,
62
64
  classifiers=[
63
65
  'Development Status :: 5 - Production/Stable',
64
66
  'Intended Audience :: Developers',
@@ -1,10 +0,0 @@
1
- """DatabaseHandler module - Multi-database async handler."""
2
- import sys
3
- import os
4
-
5
- # Add parent directory to path to allow importing from sibling directories
6
- _parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7
- if _parent_dir not in sys.path:
8
- sys.path.insert(0, _parent_dir)
9
-
10
- from DatabaseHandler.DatabaseHandler import *
File without changes
File without changes
File without changes
File without changes