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.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for yors_comfyui_node_as_x_type-0.2.0.tar.gz
Algorithm Hash digest
SHA256 02cda0b6bea81b2eee1ccb792562b667a48e9809ae83363ed78ed162e621bc7f
MD5 1caf81172b5a678e6ca294879b2d3724
BLAKE2b-256 eb83f4e1df130374621d4cb4b65892a160a064443a5f4d3bc0e92b59ddaa653e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yors_comfyui_node_as_x_type-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d1101d735322d492bd9c3c0bfc5f3515dfaed20674bf6c967f26cadc64b2adf
MD5 ce15bec57d909a147dca4d4a6db73b11
BLAKE2b-256 fecb568a7a356fcd36241ba994a5c45d591a89635b4c23a949d42737f2b70c54

See more details on using hashes here.

Supported by

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