Skip to content

Commit f9a7a9e

Browse files
committed
Change naming
1 parent b26a343 commit f9a7a9e

File tree

99 files changed

+169
-169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+169
-169
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from investing_algorithm_framework.utils.version import get_version
2+
3+
VERSION = (1, 0, 0, 'alpha', 0)
4+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"""
2+
Invokes investing_algorithm_framework-admin when the investing_algorithm_framework framework module is run as a script.
3+
Example: python -m investing_algorithm_framework createbot SampleBot
4+
"""
5+
6+
from investing_algorithm_framework.core.management import execute_from_command_line
7+
8+
if __name__ == "__main__":
9+
execute_from_command_line()
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env python
2+
3+
from investing_algorithm_framework.core.management import execute_from_command_line
4+
5+
if __name__ == "__main__":
6+
execute_from_command_line()
File renamed without changes.

investing_bot_framework/core/configuration/__init__.py renamed to investing_algorithm_framework/core/configuration/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
from importlib import import_module
55
from enum import Enum
66

7-
from investing_bot_framework.core.exceptions import ImproperlyConfigured, OperationalException
8-
from investing_bot_framework.core.configuration.template import Template
9-
from investing_bot_framework.core.configuration.config_constants import SETTINGS_MODULE_PATH_ENV_NAME, \
7+
from investing_algorithm_framework.core.exceptions import ImproperlyConfigured, OperationalException
8+
from investing_algorithm_framework.core.configuration.template import Template
9+
from investing_algorithm_framework.core.configuration.config_constants import SETTINGS_MODULE_PATH_ENV_NAME, \
1010
SETTINGS_STRATEGY_REGISTERED_APPS, SETTINGS_DATA_PROVIDER_REGISTERED_APPS, BASE_DIR, SETTINGS_LOGGING_CONFIG
1111

1212

investing_bot_framework/core/configuration/config_constants.py renamed to investing_algorithm_framework/core/configuration/config_constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Naming conventions
2-
FRAMEWORK_NAME = 'investing investing_bot_framework framework'
3-
FRAMEWORK_CORE_MODULE_NAME = 'investing_bot_framework.core'
2+
FRAMEWORK_NAME = 'investing investing_algorithm_framework framework'
3+
FRAMEWORK_CORE_MODULE_NAME = 'investing_algorithm_framework.core'
44

55
# Setting related constants
66
SETTINGS_BOT_PROJECT_NAME = 'BOT_PROJECT_NAME'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from investing_algorithm_framework.core.configuration.setup.default_template_creators import DefaultBotProjectCreator

investing_bot_framework/core/configuration/setup/default_template_creators.py renamed to investing_algorithm_framework/core/configuration/setup/default_template_creators.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import os
22
from shutil import copyfile, copymode
33

4-
import investing_bot_framework
5-
from investing_bot_framework.core.exceptions import ImproperlyConfigured
6-
from investing_bot_framework.core.configuration.setup.template_creator import TemplateCreator
4+
import investing_algorithm_framework
5+
from investing_algorithm_framework.core.exceptions import ImproperlyConfigured
6+
from investing_algorithm_framework.core.configuration.setup.template_creator import TemplateCreator
77

88

99
class DefaultBotProjectCreator(TemplateCreator):
@@ -20,15 +20,15 @@ def configure(self) -> None:
2020
def create(self) -> None:
2121

2222
# Find the default template directory
23-
template_dir = os.path.join(investing_bot_framework.__path__[0], self.TEMPLATE_ROOT_DIR)
23+
template_dir = os.path.join(investing_algorithm_framework.__path__[0], self.TEMPLATE_ROOT_DIR)
2424

2525
for root, dirs, files in os.walk(template_dir):
2626

2727
# Get the last part of the path
2828
# This is used as the basis for the copying
2929
path_rest = root[len(template_dir) + 1:]
3030

31-
# Replace template investing_bot_framework directory with given investing_bot_framework name
31+
# Replace template investing_algorithm_framework directory with given investing_algorithm_framework name
3232
path_rest = path_rest.replace(self.BOT_PROJECT_TEMPLATE_DIR_NAME, self._bot_name)
3333

3434
# Create the directories if they don't exist
@@ -83,7 +83,7 @@ def create(self) -> None:
8383

8484
file_data = file.read()
8585

86-
# Replace the placeholder with the investing_bot_framework name
86+
# Replace the placeholder with the investing_algorithm_framework name
8787
file_data = file_data.replace(self.BOT_PROJECT_NAME_PLACEHOLDER, self._bot_name)
8888

8989
# Write the file out again

investing_bot_framework/core/configuration/setup/template_creator.py renamed to investing_algorithm_framework/core/configuration/setup/template_creator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import stat
33
from abc import ABC, abstractmethod
44

5-
from investing_bot_framework.core.configuration import Template
5+
from investing_algorithm_framework.core.configuration import Template
66

77

88
class TemplateCreator(Template, ABC):

investing_bot_framework/core/configuration/template.py renamed to investing_algorithm_framework/core/configuration/template.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
from abc import abstractmethod
22

3-
from investing_bot_framework.core.exceptions import ImproperlyConfigured
3+
from investing_algorithm_framework.core.exceptions import ImproperlyConfigured
44

55

66
class Template:
77
"""
8-
A template class is responsible for creating a templates for the investing_bot_framework.
8+
A template class is responsible for creating a templates for the investing_algorithm_framework.
99
"""
1010

1111
def __init__(self, bot_project_directory: str, bot_name: str) -> None:
1212
"""
13-
investing_bot_framework project directory is the root directory of the given investing_bot_framework. The bot_name will be the same as the root project
13+
investing_algorithm_framework project directory is the root directory of the given investing_algorithm_framework. The bot_name will be the same as the root project
1414
directory. For simplicity it is explicitly passed as a parameter
1515
"""
1616

0 commit comments

Comments
 (0)