invokeai-models-cli


Nameinvokeai-models-cli JSON
Version 1.3.1 PyPI version JSON
download
home_pageNone
SummaryCLI tool for working with orphaned external models and the InvokeAI database
upload_time2024-11-24 13:44:35
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseCopyright 2024 Regi E Ellis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords ai cli generative-ai invokeai
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # InvokeAI Models CLI

[![PyPI](https://img.shields.io/pypi/v/invokeai-models-cli)](https://pypi.org/project/invokeai-models-cli/)
[![Python Versions](https://img.shields.io/pypi/pyversions/invokeai-models-cli)](https://pypi.org/project/invokeai-models-cli/)

> [!NOTE]
> This project feature set were driven by personal needs and not a sense to create a general-purpose tool. As such, the tool may not be suitable for all use cases. Please use it with caution and always back up your data before making any changes. It is not intended to replace the official Invoke AI web UI but provides additional functionality for managing orphaned models.

**InvokeAI Models CLI** is a simplified command-line tool for managing orphaned Invoke AI models left in the database after their external sources have been deleted. This tool allows you to list, compare, and delete models automatically or via an interactive selection menu.

![screenshot](https://raw.githubusercontent.com/regiellis/invokeai-models-cli/main/screen.png)



## Installation

Choose one of the following methods to install/run the tool:

### Using `pipx` (Recommended)

```bash
pipx install invokeai-models-cli
```

### Using `pip`

```bash
pip install .
```

Or, if you prefer a local installation with the ability to explore and modify the code:

```bash
pip install -e .
```

Make sure to create and activate a virtual environment before installing locally.

## Usage

After installation, use the following commands:

```bash
invokeai-models [OPTIONS] COMMAND [ARGS]
```

**Available Commands:**

- **database**
  - `create-snapshot`: Create a snapshot of the current database state.
  - `list-snapshots`: List available snapshots.
  - `delete-snapshot`: Delete a snapshot by ID.
  - `restore-snapshot`: Restore a snapshot by ID.

- **local-models**: Display local models information.

- **compare-models**: Compare models based on specific criteria (e.g., model name, hash).

- **sync-models**: Sync orphaned models with the current external sources or delete them if they no longer exist.

- **database-models**: List and manage models in the Invoke AI database, including orphaned ones.

## Examples

- Create a snapshot: `invokeai-models database create-snapshot`
- List snapshots: `invokeai-models database list-snapshots`
- Delete a snapshot: `invokeai-models database delete-snapshot`
- Restore a snapshot: `invokeai-models database restore-snapshot`
- Compare models: `invokeai-models compare-models`

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "invokeai-models-cli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "ai, cli, generative-ai, invokeai",
    "author": null,
    "author_email": "Regi E <regi@bynine.io>",
    "download_url": "https://files.pythonhosted.org/packages/de/9e/b09605f88f53f7fa23f898b13f1e13551d52b7968523266b57719c70201e/invokeai_models_cli-1.3.1.tar.gz",
    "platform": null,
    "description": "# InvokeAI Models CLI\n\n[![PyPI](https://img.shields.io/pypi/v/invokeai-models-cli)](https://pypi.org/project/invokeai-models-cli/)\n[![Python Versions](https://img.shields.io/pypi/pyversions/invokeai-models-cli)](https://pypi.org/project/invokeai-models-cli/)\n\n> [!NOTE]\n> This project feature set were driven by personal needs and not a sense to create a general-purpose tool. As such, the tool may not be suitable for all use cases. Please use it with caution and always back up your data before making any changes. It is not intended to replace the official Invoke AI web UI but provides additional functionality for managing orphaned models.\n\n**InvokeAI Models CLI** is a simplified command-line tool for managing orphaned Invoke AI models left in the database after their external sources have been deleted. This tool allows you to list, compare, and delete models automatically or via an interactive selection menu.\n\n![screenshot](https://raw.githubusercontent.com/regiellis/invokeai-models-cli/main/screen.png)\n\n\n\n## Installation\n\nChoose one of the following methods to install/run the tool:\n\n### Using `pipx` (Recommended)\n\n```bash\npipx install invokeai-models-cli\n```\n\n### Using `pip`\n\n```bash\npip install .\n```\n\nOr, if you prefer a local installation with the ability to explore and modify the code:\n\n```bash\npip install -e .\n```\n\nMake sure to create and activate a virtual environment before installing locally.\n\n## Usage\n\nAfter installation, use the following commands:\n\n```bash\ninvokeai-models [OPTIONS] COMMAND [ARGS]\n```\n\n**Available Commands:**\n\n- **database**\n  - `create-snapshot`: Create a snapshot of the current database state.\n  - `list-snapshots`: List available snapshots.\n  - `delete-snapshot`: Delete a snapshot by ID.\n  - `restore-snapshot`: Restore a snapshot by ID.\n\n- **local-models**: Display local models information.\n\n- **compare-models**: Compare models based on specific criteria (e.g., model name, hash).\n\n- **sync-models**: Sync orphaned models with the current external sources or delete them if they no longer exist.\n\n- **database-models**: List and manage models in the Invoke AI database, including orphaned ones.\n\n## Examples\n\n- Create a snapshot: `invokeai-models database create-snapshot`\n- List snapshots: `invokeai-models database list-snapshots`\n- Delete a snapshot: `invokeai-models database delete-snapshot`\n- Restore a snapshot: `invokeai-models database restore-snapshot`\n- Compare models: `invokeai-models compare-models`\n",
    "bugtrack_url": null,
    "license": "Copyright 2024 Regi E Ellis  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "CLI tool for working with orphaned external models and the InvokeAI database",
    "version": "1.3.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/regiellis/invokeai_models_cli/issues",
        "Documentation": "https://github.com/regiellis/invokeai_models_cli/blob/main/README.md",
        "Repository": "https://github.com/regiellis/invokeai_models_cli"
    },
    "split_keywords": [
        "ai",
        " cli",
        " generative-ai",
        " invokeai"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0eb37740d9c905c539c96ebcb92eb27047f0d510049e3f7a6d873836bb970d71",
                "md5": "a7a83731e0bf95c15e047e301c8ec907",
                "sha256": "c26504689de65a7a7f09de34db72757850693b19bbce8f82a26d8e07801e6fab"
            },
            "downloads": -1,
            "filename": "invokeai_models_cli-1.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a7a83731e0bf95c15e047e301c8ec907",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 1415582,
            "upload_time": "2024-11-24T13:44:32",
            "upload_time_iso_8601": "2024-11-24T13:44:32.948411Z",
            "url": "https://files.pythonhosted.org/packages/0e/b3/7740d9c905c539c96ebcb92eb27047f0d510049e3f7a6d873836bb970d71/invokeai_models_cli-1.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de9eb09605f88f53f7fa23f898b13f1e13551d52b7968523266b57719c70201e",
                "md5": "8b935fdfd4cc39202fd6b1eef1708349",
                "sha256": "45a13a136a136cc4dc2147596055ed2838f321a02683668d399a5ffda177d2c1"
            },
            "downloads": -1,
            "filename": "invokeai_models_cli-1.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8b935fdfd4cc39202fd6b1eef1708349",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 1391781,
            "upload_time": "2024-11-24T13:44:35",
            "upload_time_iso_8601": "2024-11-24T13:44:35.796175Z",
            "url": "https://files.pythonhosted.org/packages/de/9e/b09605f88f53f7fa23f898b13f1e13551d52b7968523266b57719c70201e/invokeai_models_cli-1.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-24 13:44:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "regiellis",
    "github_project": "invokeai_models_cli",
    "github_not_found": true,
    "lcname": "invokeai-models-cli"
}
        
Elapsed time: 0.37981s