Name | azurpaint JSON |
Version |
1.0.2
JSON |
| download |
home_page | None |
Summary | Azur Lane painting reconstructor/extractor. |
upload_time | 2025-07-11 02:01:39 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | MIT License
Copyright (c) 2024 Fernando
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 |
python
unity
azurlane
azur-lane
extractor
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# azurpaint
[](https://pypi.python.org/pypi/azurpaint)
[](https://github.com/Fernando2603/azurpaint/blob/main/LICENSE)
Azur Lane painting reconstructor/extractor.
## Install
**Python 3.9.0 or higher is required**
```cmd
pip install azurpaint
```
## Usage
Simple example to extract painting
- create new folder
- get and extract `/Android/obb/com.YoStarEN.AzurLane/*.obb` to new folder
- copy `AssetBundles` from `/Android/data/com.YoStarEN.AzurLane/files/AssetBundles`
> [!NOTE]
> only `painting`, `paintings` and `paintingface` folder are required from `AssetBundles`.
```Python
from pathlib import Path
from azurpaint import Azurpaint
from azurpaint.exception import PrefabNotFound
# extract painting with default expression/face
def extract(asset_bundle_path, prefab_path):
try:
azurpaint = Azurpaint(asset_bundle_path, prefab_path)
# search dependencies automatically within AssetBundles (root)
# this is still in experimental mode so far on testing the result is good
# load_dependencies only searching in local file and it doesn't know
# if there any missing dependency it doesn't know what file it is
# so you should provide complete asset include extracted OBB before running this
azurpaint.load_dependencies()
# PIL.Image.Image
return azurpaint.create()
except PrefabNotFound:
print(f"{prefab_path} is not an prefab.")
# extract painting with all face/expression into output_dir
def extract_all_face(asset_bundle_path, prefab_path, output_dir):
try:
azurpaint = Azurpaint(asset_bundle_path, prefab_path)
azurpaint.load_dependencies()
Path(output_dir).mkdir(parents=True, exist_ok=True)
azurpaint.create().save(Path(output_dir, f"{azurpaint.prefab.name}-default.png"))
for face in azurpaint.face_list:
azurpaint.change_face(face)
azurpaint.create().save(Path(output_dir, f"{azurpaint.prefab.name}-{face}.png"))
except PrefabNotFound:
print(f"{prefab_path} is not an prefab.")
if __name__ == '__main__':
# azurpaint require asset that have .prefab
# will raise PrefabNotFound if file is not an prefab
extract('path_to/AssetBundles', 'painting/tashigan')
```
Raw data
{
"_id": null,
"home_page": null,
"name": "azurpaint",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "python, unity, azurlane, azur-lane, extractor",
"author": null,
"author_email": "Fernando <81207411+Fernando2603@users.noreply.github.com>",
"download_url": "https://files.pythonhosted.org/packages/4b/ed/b9544e7fe3b0585634b95c4f27bed57cec0adb99668558f1cfecade6f5e0/azurpaint-1.0.2.tar.gz",
"platform": null,
"description": "# azurpaint\n\n[](https://pypi.python.org/pypi/azurpaint)\n[](https://github.com/Fernando2603/azurpaint/blob/main/LICENSE)\n\n\nAzur Lane painting reconstructor/extractor.\n\n## Install\n**Python 3.9.0 or higher is required**\n```cmd\npip install azurpaint\n```\n\n## Usage\n\nSimple example to extract painting\n\n- create new folder\n- get and extract `/Android/obb/com.YoStarEN.AzurLane/*.obb` to new folder\n- copy `AssetBundles` from `/Android/data/com.YoStarEN.AzurLane/files/AssetBundles`\n\n> [!NOTE]\n> only `painting`, `paintings` and `paintingface` folder are required from `AssetBundles`.\n\n\n```Python\nfrom pathlib import Path\nfrom azurpaint import Azurpaint\nfrom azurpaint.exception import PrefabNotFound\n\n# extract painting with default expression/face\ndef extract(asset_bundle_path, prefab_path):\n try:\n azurpaint = Azurpaint(asset_bundle_path, prefab_path)\n\n # search dependencies automatically within AssetBundles (root)\n # this is still in experimental mode so far on testing the result is good\n # load_dependencies only searching in local file and it doesn't know\n # if there any missing dependency it doesn't know what file it is\n # so you should provide complete asset include extracted OBB before running this\n azurpaint.load_dependencies()\n\n # PIL.Image.Image\n return azurpaint.create()\n except PrefabNotFound:\n print(f\"{prefab_path} is not an prefab.\")\n\n\n# extract painting with all face/expression into output_dir\ndef extract_all_face(asset_bundle_path, prefab_path, output_dir):\n try:\n azurpaint = Azurpaint(asset_bundle_path, prefab_path)\n azurpaint.load_dependencies()\n\n Path(output_dir).mkdir(parents=True, exist_ok=True)\n azurpaint.create().save(Path(output_dir, f\"{azurpaint.prefab.name}-default.png\"))\n\n for face in azurpaint.face_list:\n azurpaint.change_face(face)\n azurpaint.create().save(Path(output_dir, f\"{azurpaint.prefab.name}-{face}.png\"))\n\n except PrefabNotFound:\n print(f\"{prefab_path} is not an prefab.\")\n\n\nif __name__ == '__main__':\n # azurpaint require asset that have .prefab\n # will raise PrefabNotFound if file is not an prefab\n extract('path_to/AssetBundles', 'painting/tashigan')\n```\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2024 Fernando\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n ",
"summary": "Azur Lane painting reconstructor/extractor.",
"version": "1.0.2",
"project_urls": {
"Bug Tracker": "https://github.com/Fernando2603/azurpaint/issues",
"Homepage": "https://github.com/Fernando2603/azurpaint"
},
"split_keywords": [
"python",
" unity",
" azurlane",
" azur-lane",
" extractor"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "6738b58d43e9edc3ccc26d05adcc22a97e198e96413ee58f7cb30709dcd49818",
"md5": "a654a810df45eb5a6ed5da63b2da6dd8",
"sha256": "540f7cfcaf7a64404d387d23500951fbc4ed54a25a5f24e9f8b12a0389317129"
},
"downloads": -1,
"filename": "azurpaint-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a654a810df45eb5a6ed5da63b2da6dd8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 15918,
"upload_time": "2025-07-11T02:01:38",
"upload_time_iso_8601": "2025-07-11T02:01:38.548309Z",
"url": "https://files.pythonhosted.org/packages/67/38/b58d43e9edc3ccc26d05adcc22a97e198e96413ee58f7cb30709dcd49818/azurpaint-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "4bedb9544e7fe3b0585634b95c4f27bed57cec0adb99668558f1cfecade6f5e0",
"md5": "eb6ce85985baa7853445a3d33d3973b7",
"sha256": "5b84c4216b1ba1bba954da2d95e4b0a93629615645dbaff14a03c7780a654707"
},
"downloads": -1,
"filename": "azurpaint-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "eb6ce85985baa7853445a3d33d3973b7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 14984,
"upload_time": "2025-07-11T02:01:39",
"upload_time_iso_8601": "2025-07-11T02:01:39.556598Z",
"url": "https://files.pythonhosted.org/packages/4b/ed/b9544e7fe3b0585634b95c4f27bed57cec0adb99668558f1cfecade6f5e0/azurpaint-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-11 02:01:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Fernando2603",
"github_project": "azurpaint",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "azurpaint"
}