dsa-downloader


Namedsa-downloader JSON
Version 0.0.8 PyPI version JSON
download
home_pagehttps://github.com/phstudy/dsa-downloader
SummaryDisney Sorcerer's Arena resources downloader
upload_time2023-05-09 04:01:49
maintainerStudy Hsueh
docs_urlNone
authorStudy Hsueh
requires_python>=3.7
licenseMIT
keywords dsa python disney
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # DSA Downloader

DSA Downloader is a Disney Sorcerer's Arena resources downloader, 
which allow developers to download localization files and assets.

## How to use

Show supported commands

```
$ dsa-downloader --help
Usage: dsa-downloader [OPTIONS] COMMAND [ARGS]...

Options:
  --debug / --no-debug
  --help                Show this message and exit.

Commands:
  download-assets   Download assets.
  download-langs    Download localization files.
  download-gamedata Download gamedata.
  extract-config    Extract bootstrap config from APK file.
```

Install the library using pip

```
$ python -m pip install dsa-downloader
```

Extract bootstrap config from *[Disney Sorcerer's Arena APK](https://apkcombo.com/apk-downloader/#package=com.glu.disneygame)* file

```
$ dsa-downloader extract-config com.glu.disneygame.apk
bootstrap_config file is written to out/bootstrap_config.json.
```

Download gamedata

```
$ dsa-downloader download-gamedata
gamedata-static.bin is written to out/gamedata/9c49b3b7-1479-4c28-8894-d1da716e36ce_gamedata.bin

# Convert gamedata binary to json
$ curl -O https://github.com/phstudy/dsa_proto_dumper/blob/main/gamedata/gamedata.fbs
$ flatc --json --defaults-json --strict-json --raw-binary gamedata.fbs -- out/gamedata/9c49b3b7-1479-4c28-8894-d1da716e36ce_gamedata.bin
```

Download localization files

```
$ dsa-downloader download-langs --langs ChineseTraditional --langs English
ChineseTraditional localization file is written to out/langs/Loc_ChineseTraditional.txt.
ChineseTraditional localization file is written to out/langs/Loc_ChineseTraditional.json.
English localization file is written to out/langs/Loc_English.txt.
English localization file is written to out/langs/Loc_English.json.
```

Download assets

```
$ dsa-downloader download-assets
  2%|██▋                                         | 81/3896 [00:03<03:00, 21.08it/s]
```

## Docker

Use docker container to extract bootstrap config from *APK* file 

```
$ docker run --rm -v "$PWD":/dsa study/dsa-downloader dsa-downloader \
        extract-config com.glu.disneygame.apk
bootstrap_config file is written to out/bootstrap_config.json.
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/phstudy/dsa-downloader",
    "name": "dsa-downloader",
    "maintainer": "Study Hsueh",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "ph.study@gmail.com",
    "keywords": "dsa,python,disney",
    "author": "Study Hsueh",
    "author_email": "ph.study@gmail.com",
    "download_url": "",
    "platform": null,
    "description": "# DSA Downloader\n\nDSA Downloader is a Disney Sorcerer's Arena resources downloader, \nwhich allow developers to download localization files and assets.\n\n## How to use\n\nShow supported commands\n\n```\n$ dsa-downloader --help\nUsage: dsa-downloader [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n  --debug / --no-debug\n  --help                Show this message and exit.\n\nCommands:\n  download-assets   Download assets.\n  download-langs    Download localization files.\n  download-gamedata Download gamedata.\n  extract-config    Extract bootstrap config from APK file.\n```\n\nInstall the library using pip\n\n```\n$ python -m pip install dsa-downloader\n```\n\nExtract bootstrap config from *[Disney Sorcerer's Arena APK](https://apkcombo.com/apk-downloader/#package=com.glu.disneygame)* file\n\n```\n$ dsa-downloader extract-config com.glu.disneygame.apk\nbootstrap_config file is written to out/bootstrap_config.json.\n```\n\nDownload gamedata\n\n```\n$ dsa-downloader download-gamedata\ngamedata-static.bin is written to out/gamedata/9c49b3b7-1479-4c28-8894-d1da716e36ce_gamedata.bin\n\n# Convert gamedata binary to json\n$ curl -O https://github.com/phstudy/dsa_proto_dumper/blob/main/gamedata/gamedata.fbs\n$ flatc --json --defaults-json --strict-json --raw-binary gamedata.fbs -- out/gamedata/9c49b3b7-1479-4c28-8894-d1da716e36ce_gamedata.bin\n```\n\nDownload localization files\n\n```\n$ dsa-downloader download-langs --langs ChineseTraditional --langs English\nChineseTraditional localization file is written to out/langs/Loc_ChineseTraditional.txt.\nChineseTraditional localization file is written to out/langs/Loc_ChineseTraditional.json.\nEnglish localization file is written to out/langs/Loc_English.txt.\nEnglish localization file is written to out/langs/Loc_English.json.\n```\n\nDownload assets\n\n```\n$ dsa-downloader download-assets\n  2%|\u2588\u2588\u258b                                         | 81/3896 [00:03<03:00, 21.08it/s]\n```\n\n## Docker\n\nUse docker container to extract bootstrap config from *APK* file \n\n```\n$ docker run --rm -v \"$PWD\":/dsa study/dsa-downloader dsa-downloader \\\n        extract-config com.glu.disneygame.apk\nbootstrap_config file is written to out/bootstrap_config.json.\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Disney Sorcerer's Arena resources downloader",
    "version": "0.0.8",
    "project_urls": {
        "Homepage": "https://github.com/phstudy/dsa-downloader"
    },
    "split_keywords": [
        "dsa",
        "python",
        "disney"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5cd03c6e48b408413ab4c00b363e18c7798adeb9fb322a4ea7d9148f18c327f2",
                "md5": "6c226ab7f7c5f42ed9926608f9834126",
                "sha256": "cac45c2710cb267769b266311a9f2df828af0395a9d12f2f4d4b18aba3d8e303"
            },
            "downloads": -1,
            "filename": "dsa_downloader-0.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6c226ab7f7c5f42ed9926608f9834126",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 11867,
            "upload_time": "2023-05-09T04:01:49",
            "upload_time_iso_8601": "2023-05-09T04:01:49.016539Z",
            "url": "https://files.pythonhosted.org/packages/5c/d0/3c6e48b408413ab4c00b363e18c7798adeb9fb322a4ea7d9148f18c327f2/dsa_downloader-0.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-09 04:01:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "phstudy",
    "github_project": "dsa-downloader",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "dsa-downloader"
}
        
Elapsed time: 0.24918s