Browse Source

renamed package to installer while keeping poetry project as fabric

pull/88/head
agu3rra 9 months ago
parent
commit
d02053a748
  1. 0
      installer/__init__.py
  2. 0
      installer/client/cli/README.md
  3. 0
      installer/client/cli/__init__.py
  4. 0
      installer/client/cli/fabric.py
  5. 0
      installer/client/cli/p.py
  6. 0
      installer/client/cli/utils.py
  7. 0
      installer/client/gui/.gitignore
  8. 0
      installer/client/gui/README.md
  9. 0
      installer/client/gui/chatgpt.js
  10. 0
      installer/client/gui/index.html
  11. 0
      installer/client/gui/main.js
  12. 0
      installer/client/gui/package-lock.json
  13. 0
      installer/client/gui/package.json
  14. 0
      installer/client/gui/preload.js
  15. 0
      installer/client/gui/static/images/fabric-logo-gif.gif
  16. 0
      installer/client/gui/static/js/bootstrap.min.js
  17. 0
      installer/client/gui/static/js/index.js
  18. 0
      installer/client/gui/static/js/jquery-3.0.0.slim.min.js
  19. 0
      installer/client/gui/static/stylesheet/bootstrap.min.css
  20. 0
      installer/client/gui/static/stylesheet/style.css
  21. 0
      installer/server/__init__.py
  22. 0
      installer/server/api/.env.example
  23. 0
      installer/server/api/__init__.py
  24. 0
      installer/server/api/fabric_api_keys.json
  25. 4
      installer/server/api/fabric_api_server.py
  26. 0
      installer/server/api/users.json
  27. 0
      installer/server/webui/__init__.py
  28. 0
      installer/server/webui/fabric-logo-miessler-transparent.png
  29. 0
      installer/server/webui/fabric_web_interface_keys.json
  30. 0
      installer/server/webui/fabric_web_server.py
  31. 0
      installer/server/webui/favicon.ico
  32. 0
      installer/server/webui/static/fabric-logo-miessler-transparent.png
  33. 0
      installer/server/webui/static/favicon.ico
  34. 0
      installer/server/webui/templates/index.html
  35. 11
      pyproject.toml
  36. 8
      setup-aliases.sh

0
fabric_installer/__init__.py → installer/__init__.py

0
fabric_installer/client/cli/README.md → installer/client/cli/README.md

0
fabric_installer/client/cli/__init__.py → installer/client/cli/__init__.py

0
fabric_installer/client/cli/fabric.py → installer/client/cli/fabric.py

0
fabric_installer/client/cli/p.py → installer/client/cli/p.py

0
fabric_installer/client/cli/utils.py → installer/client/cli/utils.py

0
fabric_installer/client/gui/.gitignore → installer/client/gui/.gitignore vendored

0
fabric_installer/client/gui/README.md → installer/client/gui/README.md

0
fabric_installer/client/gui/chatgpt.js → installer/client/gui/chatgpt.js

0
fabric_installer/client/gui/index.html → installer/client/gui/index.html

0
fabric_installer/client/gui/main.js → installer/client/gui/main.js

0
fabric_installer/client/gui/package-lock.json → installer/client/gui/package-lock.json generated

0
fabric_installer/client/gui/package.json → installer/client/gui/package.json

0
fabric_installer/client/gui/preload.js → installer/client/gui/preload.js

0
fabric_installer/client/gui/static/images/fabric-logo-gif.gif → installer/client/gui/static/images/fabric-logo-gif.gif

Before

Width:  |  Height:  |  Size: 42 MiB

After

Width:  |  Height:  |  Size: 42 MiB

0
fabric_installer/client/gui/static/js/bootstrap.min.js → installer/client/gui/static/js/bootstrap.min.js vendored

0
fabric_installer/client/gui/static/js/index.js → installer/client/gui/static/js/index.js

0
fabric_installer/client/gui/static/js/jquery-3.0.0.slim.min.js → installer/client/gui/static/js/jquery-3.0.0.slim.min.js vendored

0
fabric_installer/client/gui/static/stylesheet/bootstrap.min.css → installer/client/gui/static/stylesheet/bootstrap.min.css vendored

0
fabric_installer/client/gui/static/stylesheet/style.css → installer/client/gui/static/stylesheet/style.css

0
fabric_installer/server/__init__.py → installer/server/__init__.py

0
fabric_installer/server/api/.env.example → installer/server/api/.env.example

0
fabric_installer/server/api/__init__.py → installer/server/api/__init__.py

0
fabric_installer/server/api/fabric_api_keys.json → installer/server/api/fabric_api_keys.json

4
fabric_installer/server/api/fabric_api_server.py → installer/server/api/fabric_api_server.py

@ -45,12 +45,12 @@ client = openai.OpenAI(api_key = openai.api_key)
# Read API tokens from the apikeys.json file
api_keys = resources.read_text("fabric_installer.server.api", "fabric_api_keys.json")
api_keys = resources.read_text("installer.server.api", "fabric_api_keys.json")
valid_tokens = json.loads(api_keys)
# Read users from the users.json file
users = resources.read_text("fabric_installer.server.api", "users.json")
users = resources.read_text("installer.server.api", "users.json")
users = json.loads(users)

0
fabric_installer/server/api/users.json → installer/server/api/users.json

0
fabric_installer/server/webui/__init__.py → installer/server/webui/__init__.py

0
fabric_installer/server/webui/fabric-logo-miessler-transparent.png → installer/server/webui/fabric-logo-miessler-transparent.png

Before

Width:  |  Height:  |  Size: 2.6 MiB

After

Width:  |  Height:  |  Size: 2.6 MiB

0
fabric_installer/server/webui/fabric_web_interface_keys.json → installer/server/webui/fabric_web_interface_keys.json

0
fabric_installer/server/webui/fabric_web_server.py → installer/server/webui/fabric_web_server.py

0
fabric_installer/server/webui/favicon.ico → installer/server/webui/favicon.ico

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
fabric_installer/server/webui/static/fabric-logo-miessler-transparent.png → installer/server/webui/static/fabric-logo-miessler-transparent.png

Before

Width:  |  Height:  |  Size: 2.6 MiB

After

Width:  |  Height:  |  Size: 2.6 MiB

0
fabric_installer/server/webui/static/favicon.ico → installer/server/webui/static/favicon.ico

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
fabric_installer/server/webui/templates/index.html → installer/server/webui/templates/index.html

11
pyproject.toml

@ -1,5 +1,5 @@
[tool.poetry]
name = "fabric-installer"
name = "fabric"
version = "0.2.0"
description = "Fabric - AI framework for human augmentation"
authors = [
@ -7,6 +7,9 @@ authors = [
"Jonathan Dunn <https://github.com/xssdoctor>",
"Scott Behrens <https://github.com/sbehrens>",
]
packages = [
{ include = "installer"}
]
[tool.poetry.dependencies]
python = "^3.10"
@ -46,6 +49,6 @@ build-backend = "poetry.core.masonry.api"
# Creates python "binaries"
[tool.poetry.scripts]
fabric = 'fabric_installer:cli'
fabric-api = 'fabric_installer:run_api_server'
fabric-webui = 'fabric_installer:run_webui_server'
fabric = 'installer:cli'
fabric-api = 'installer:run_api_server'
fabric-webui = 'installer:run_webui_server'

8
setup-aliases.sh

@ -5,7 +5,7 @@
# It will create aliases (command nicknames) for the python binaries to be known
# by your OS
# List of commands to check and add alias for
# List of commands to check and add or update alias for
commands=("fabric" "fabric-api" "fabric-webui")
# List of shell configuration files to update
@ -21,11 +21,13 @@ for config_file in "${config_files[@]}"; do
# Check if the config file contains an alias for the command
if grep -q "alias $cmd=" "$config_file"; then
echo "Alias for $cmd already exists in $config_file."
# Replace the existing alias with the new one
sed -i "/alias $cmd=/c\alias $cmd='$CMD_PATH'" "$config_file"
echo "Updated alias for $cmd in $config_file."
else
# If not, add the alias to the config file
echo "Adding alias for $cmd to $config_file."
echo "alias $cmd='$CMD_PATH'" >> "$config_file"
echo "Added alias for $cmd to $config_file."
fi
done
else

Loading…
Cancel
Save