dshellInterpreter 1.2.0.2__tar.gz → 1.2.0.4__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.
- dshellinterpreter-1.2.0.4/Dshell/DshellInterpreteur/dshell_global_variables.py +8 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellParser/ast_nodes.py +3 -3
- {dshellinterpreter-1.2.0.2/dshellInterpreter.egg-info → dshellinterpreter-1.2.0.4}/PKG-INFO +1 -1
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4/dshellInterpreter.egg-info}/PKG-INFO +1 -1
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/setup.py +1 -1
- dshellinterpreter-1.2.0.2/Dshell/DshellInterpreteur/dshell_global_variables.py +0 -7
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/__init__.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_channel.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_embed.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_file.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_interaction.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_member.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_message.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_role.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_ui.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/__init__.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_embed.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_file.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_global.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_list.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_member.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_message.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_numbers.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_permissions.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_string.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_thread.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_type_validation.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellInterpreteur/__init__.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellInterpreteur/cached_messages.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellInterpreteur/dshell_arguments.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellInterpreteur/dshell_interpreter.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellInterpreteur/dshell_scope.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellInterpreteur/errors.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellInterpreteur/utils_interpreter.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellParser/__init__.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellParser/dshell_parser.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellPreProcess/__init__.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellPreProcess/dshell_preprocess.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellTokenizer/__init__.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellTokenizer/dshell_keywords.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellTokenizer/dshell_token_type.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellTokenizer/dshell_tokenizer.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/__init__.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/full_import.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/regex_test.py +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/LICENSE +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/README.md +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/dshellInterpreter.egg-info/SOURCES.txt +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/dshellInterpreter.egg-info/dependency_links.txt +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/dshellInterpreter.egg-info/requires.txt +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/dshellInterpreter.egg-info/top_level.txt +0 -0
- {dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from Dshell.full_import import (Any, randint, Optional, Union, Embed, Member, Role, PermissionOverwrite)
|
|
2
2
|
from ..DshellTokenizer.dshell_token_type import Token
|
|
3
|
-
from ..DshellInterpreteur.dshell_global_variables import MAX_STR_SIZE, MAX_LIST_SIZE
|
|
3
|
+
from ..DshellInterpreteur.dshell_global_variables import MAX_STR_SIZE, MAX_LIST_SIZE, MAX_FILE_SIZE
|
|
4
4
|
|
|
5
5
|
from sys import getsizeof
|
|
6
6
|
|
|
@@ -791,8 +791,8 @@ class FileNode(ASTNode):
|
|
|
791
791
|
|
|
792
792
|
def write(self, content: bytearray, append: bool):
|
|
793
793
|
|
|
794
|
-
if self.size() + len(content) >
|
|
795
|
-
raise Exception("The file content cannot exceed
|
|
794
|
+
if self.size() + len(content) > MAX_FILE_SIZE:
|
|
795
|
+
raise Exception(f"The file content cannot exceed {MAX_FILE_SIZE} bytes !")
|
|
796
796
|
|
|
797
797
|
if append:
|
|
798
798
|
self.content += content
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="dshellInterpreter",
|
|
8
|
-
version="1.2.0.
|
|
8
|
+
version="1.2.0.4",
|
|
9
9
|
author="Chronos",
|
|
10
10
|
author_email="vagabonwalybi@gmail.com",
|
|
11
11
|
description="A Discord bot interpreter for creating custom commands and automations.",
|
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_channel.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_embed.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_file.py
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_member.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_message.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_role.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/dshell_ui.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/__init__.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_embed.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_file.py
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DISCORD_COMMANDS/utils/utils_list.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellInterpreteur/__init__.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellInterpreteur/cached_messages.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellInterpreteur/dshell_scope.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellParser/dshell_parser.py
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellPreProcess/dshell_preprocess.py
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellTokenizer/dshell_keywords.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellTokenizer/dshell_token_type.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/Dshell/DshellTokenizer/dshell_tokenizer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/dshellInterpreter.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/dshellInterpreter.egg-info/requires.txt
RENAMED
|
File without changes
|
{dshellinterpreter-1.2.0.2 → dshellinterpreter-1.2.0.4}/dshellInterpreter.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|