Extractor for .unitypackage files
Project description
Unity Package Extractor
Extract your .unitypackage
Usage without Python
- Download the unitypackage_extractor.zip from the Releases tab.
- Extract everything into a new directory
- Drag and drop your
.unitypackage
ontoextractor.exe
OR - Run from the command line with
extractor.exe [path/to/your/package.unitypackage] (optional/output/path)
Usage with Python 3.6+
-
pip install unitypackage_extractor
-
From the command line
python -m unitypackage_extractor.extractor [path/to/your/package.unitypackage] (optional/output/path)
-
OR in your Python file:
from unitypackage_extractor.extractor import extractPackage
extractPackage("path/to/your/package.unitypackage", outputPath="optional/output/path")
Contributing
Building (requires pyenv)
pyenv global 3.6.8-amd64
- Originally wasn't able to get this to run on Python 3.7 when it was new, but 3.6 is guarenteed to build the
.exe
pyenv exec python -m venv venv64
venv64\scripts\activate.bat
orvenv64/scripts/activate
for Linuxpip install -r requirements-dev.txt
(Installspyinstaller
andpytest
)python build_exe.py
venv64\scripts\deactivate.bat
(or you'll use the wrong python when you make anothervenv
)- Do the same with
pyenv and 3.6.8
and make a folder calledvenv32
instead
Testing
python -m venv venv
venv\scripts\activate.bat
orvenv/scripts/activate
for Linuxpip install -r requirements-dev.txt
(Installspyinstaller
andpytest
)pytest -v -s
in the root directory
Releasing
Refer to the python docs on packaging for clarification.
Make sure you've updated setup.py
, and have installed twine
, setuptools
, and wheel
python3 setup.py sdist bdist_wheel
- Create a source distribution and a binary wheel distribution into dist/
twine upload dist/unitypackage_extractor-x.x.x*
- Upload all dist/
files to PyPI of a given version
Make sure to tag the commit you released
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for unitypackage_extractor-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b6d48c238f034076cece394850b3886e53c4b5009067d4dce62598a625c2403 |
|
MD5 | dc353102e1c811e45f19f3206b069521 |
|
BLAKE2b-256 | d122f3aa33d88e20c6829a6813f29924aa981d665b6f2c1116464ffae9c68ead |
Hashes for unitypackage_extractor-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 609b96059c211c125795fe3ec5b216aeed4a9d33723456cba11a7fe7d9e88a88 |
|
MD5 | 5b9269eb2b5adc3f42d9576514289d09 |
|
BLAKE2b-256 | d49e09650c65bb78d9dac5be4c384f5a89376c654eccfa49f1e89006acdd2052 |