Name | model-resolver JSON |
Version |
1.2.1
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2025-01-24 18:16:27 |
maintainer | None |
docs_url | None |
author | edayot |
requires_python | <4.0,>=3.12 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Model Resolver
A beet plugin that render all models in the beet project.
## Usage
### Renders project
Without any installlation, all vanilla models are rendered in this [repository](https://github.com/edayot/renders/tree/renders)
### As a beet service
Example plugin to render an apple:
```python
from beet import Context
from model_resolver import Render, Item
def beet_default(ctx: Context):
render = Render(ctx)
item = Item(
id="minecraft:apple",
)
render.add_item_task(item, path_ctx="my_namespace:my_apple")
render.run()
```
Additionally, you can customize the config :
```yaml
meta:
model_resolver:
# load vanilla item models
minecraft_version: "1.21.4-pre1"
use_cache: true
special_rendering: true
```
## Installation
### Windows
Install https://visualstudio.microsoft.com/fr/visual-cpp-build-tools/ and add C++ build tools in the installation.
### Ubuntu
Generally, you don't need to install anything, but if you have an error, you can try to install the following packages:
```bash
sudo apt-get -y install \
freeglut3-dev \
libgl1-mesa-dev \
libxcursor-dev \
libpulse-dev \
libxinerama-dev \
libxrandr-dev \
libxv-dev \
mesa-utils \
libgl1-mesa-glx \
mesa-common-dev \
libglapi-mesa \
libgbm1 \
libgl1-mesa-dri \
libsdl1.2-dev \
libfreetype6-dev \
xvfb \
x11-utils
```
This is particularly useful in CI, see [the github action](./.github/workflows/artifact.yml) for an example.
### Common installation
Install the plugin by running:
```bash
pip install model-resolver
```
Pypi: https://pypi.org/project/model-resolver/
## Credits
- RedCoal27 for this big item model : https://github.com/RedCoal27/Custom-Item
Raw data
{
"_id": null,
"home_page": null,
"name": "model-resolver",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.12",
"maintainer_email": null,
"keywords": null,
"author": "edayot",
"author_email": "pro.e.dayot@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/95/ec/ac71018b74122cc5356ba3ea450125b99de2229c537b0ee9b555193eaae7/model_resolver-1.2.1.tar.gz",
"platform": null,
"description": "# Model Resolver\n\nA beet plugin that render all models in the beet project.\n\n\n## Usage\n\n\n### Renders project\n\nWithout any installlation, all vanilla models are rendered in this [repository](https://github.com/edayot/renders/tree/renders)\n\n\n### As a beet service\n\nExample plugin to render an apple:\n```python\n\nfrom beet import Context\nfrom model_resolver import Render, Item\n\n\n\n\ndef beet_default(ctx: Context):\n render = Render(ctx)\n\n item = Item(\n id=\"minecraft:apple\",\n )\n render.add_item_task(item, path_ctx=\"my_namespace:my_apple\")\n render.run()\n```\n\nAdditionally, you can customize the config :\n```yaml\nmeta:\n model_resolver:\n # load vanilla item models\n minecraft_version: \"1.21.4-pre1\"\n use_cache: true\n special_rendering: true\n```\n\n## Installation\n\n### Windows\n\nInstall https://visualstudio.microsoft.com/fr/visual-cpp-build-tools/ and add C++ build tools in the installation.\n\n### Ubuntu\n\nGenerally, you don't need to install anything, but if you have an error, you can try to install the following packages:\n\n```bash\nsudo apt-get -y install \\\n freeglut3-dev \\\n libgl1-mesa-dev \\\n libxcursor-dev \\\n libpulse-dev \\\n libxinerama-dev \\\n libxrandr-dev \\\n libxv-dev \\\n mesa-utils \\\n libgl1-mesa-glx \\\n mesa-common-dev \\\n libglapi-mesa \\\n libgbm1 \\\n libgl1-mesa-dri \\\n libsdl1.2-dev \\\n libfreetype6-dev \\\n xvfb \\\n x11-utils\n```\n\nThis is particularly useful in CI, see [the github action](./.github/workflows/artifact.yml) for an example.\n\n### Common installation\n\nInstall the plugin by running:\n\n```bash\npip install model-resolver\n```\n\nPypi: https://pypi.org/project/model-resolver/\n\n\n\n\n## Credits\n\n- RedCoal27 for this big item model : https://github.com/RedCoal27/Custom-Item",
"bugtrack_url": null,
"license": "MIT",
"summary": null,
"version": "1.2.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b0d9f4d530ef4385124cd3f5166d558cf5f96173067bb985f19ddc28ac9cfd0a",
"md5": "1746251fb504951c1efac437fd91b8f1",
"sha256": "c3efd15f5aaabfb395a48bc8a6e3c3614a994de00c12bf972a76153887715b2f"
},
"downloads": -1,
"filename": "model_resolver-1.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1746251fb504951c1efac437fd91b8f1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.12",
"size": 39475,
"upload_time": "2025-01-24T18:16:25",
"upload_time_iso_8601": "2025-01-24T18:16:25.605717Z",
"url": "https://files.pythonhosted.org/packages/b0/d9/f4d530ef4385124cd3f5166d558cf5f96173067bb985f19ddc28ac9cfd0a/model_resolver-1.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "95ecac71018b74122cc5356ba3ea450125b99de2229c537b0ee9b555193eaae7",
"md5": "e56e18e7682b5d628174d2904d48a2f1",
"sha256": "f4e45560e7c17a7356026952b9d7be2fd826c6a05c3be612c6bb99468dbeac60"
},
"downloads": -1,
"filename": "model_resolver-1.2.1.tar.gz",
"has_sig": false,
"md5_digest": "e56e18e7682b5d628174d2904d48a2f1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.12",
"size": 29313,
"upload_time": "2025-01-24T18:16:27",
"upload_time_iso_8601": "2025-01-24T18:16:27.399944Z",
"url": "https://files.pythonhosted.org/packages/95/ec/ac71018b74122cc5356ba3ea450125b99de2229c537b0ee9b555193eaae7/model_resolver-1.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-24 18:16:27",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "model-resolver"
}