Skip to main content

some comfyui custom nodes to set it as known type

Project description

yors_comfyui_node_as_x_type

🤖 some comfyui custom nodes to set it as known type.

PyPI - Version PyPI - License

features

  • feat(core): node to set it as any type
  • feat(core): node to set it as image type
  • feat(core): node to set it as model type
  • feat(core): node to set it as clip type
  • feat(core): node to set it as vae type
  • feat(core): node to set it as conditioning type
  • feat(core): node to set it as latent type
  • feat(core): node to set it as string type
  • feat(core): node to set it as int type
  • feat(core): node to set it as float type
  • feat(core): node to set it as number type

1 - install python package

pip install yors_comfyui_node_setup
pip install yors_comfyui_node_as_x_type

2 - use it in your python code

  • in some comfyui custom nodes project or module

  • code in __init__.py

from yors_comfyui_node_setup import entry,node_install_requirements # global

# install requirements
node_install_requirements(__file__)

# export comfyui node vars
__all__,NODE_CLASS_MAPPINGS,NODE_DISPLAY_NAME_MAPPINGS,NODE_MENU_NAMES = entry(__name__,__file__)

3 - code yours nodes

  • dirs map of your node may be:
.
└─__init__.py
└─nodes.py
  • in any py file (no test in __init__.py)
  • code nodes.py
# base usage
from yors_comfyui_node_as_x_type import *

# # custom category ? do: (to test)
# all_class_in_this_module = get_classes_in_module(get_module(__name__))
# # all_class_in_this_module = get_classes_in_module(nodes)
# node_class_in_this_module=get_node_class(all_class_in_this_module)
# # log_node_class(node_class_in_this_module)
# set_node_class_category(node_class_in_this_module,"YMC/as_x_type")
# # log_node_class(node_class_in_this_module)

Author

ymc-github ymc.github@gmail.com

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yors_comfyui_node_as_x_type-0.2.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yors_comfyui_node_as_x_type-0.2.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file yors_comfyui_node_as_x_type-0.2.1.tar.gz.

File metadata

File hashes

Hashes for yors_comfyui_node_as_x_type-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7668ca1cd7aa421ec4f72db88475b2b78a71a780879e9fa119bc024135428ef0
MD5 870f45e6e1f1e15cdd7dc28ba39a397b
BLAKE2b-256 ae59c51a51977238510a6d558cbeed10ffde5930478b68c5f6f20e1bf9b0fe6c

See more details on using hashes here.

File details

Details for the file yors_comfyui_node_as_x_type-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for yors_comfyui_node_as_x_type-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 076c9fdd31e0125b1a89bc27161ab6397892ef46eb9cf6e11eb11e165aa77e23
MD5 b1f87299076e9864adab42163d8510da
BLAKE2b-256 6c7a2c96a4dd8a17bcf106b881524b104b183f622c75315bec836ba9944f7996

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page