A python package to manipulate DragonNest pak file
Project description
dnpak.py
A python package to manipulate Dragon Nest pak file.
Based on data definitions from vincentzhang96/DragonNestFileFormats
Installation
Make sure you have pip installed, and run this command:
$ pip install dnpak.py
Getting Started
With this package you can write and read to pak file
Write a new PAK and add files into it
import dnpak
pak = dnpak.EtFileSystem.write("filename.pak")
pak.add_file("path/to/file", "file/location/in/pak")
pak.add_file("another/file", "another/file/location/in/pak")
pak.close_file_system() # Make sure to close file
Write a new PAK and add all files inside a folder
pak = dnpak.EtFileSystem.write("filename.pak")
pak.add_files("path/to/folder")
pak.close_file_system()
Read PAK and extract files inside
pak = dnpak.EtFileSystem.read("filename.pak")
pak.extract()
pak.close_file_system()
Developing
Guide for developing, if you're interested in developing this feel free to make a pull request
Install package locally
$ pip install -e .
Build package
Make sure you have the latest version of PyPA’s build installed:
$ py -m pip install --upgrade build
Now run this command from the same directory where pyproject.toml is located:
$ py -m build
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dnpak.py-2.0.0.tar.gz.
File metadata
- Download URL: dnpak.py-2.0.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c41d5f1a2065efa17eff8c0d5f08b3f0dad0c78a9e6039733e534c5204399d63
|
|
| MD5 |
bd817d5f91ff715c424d7e0ebe67c9d7
|
|
| BLAKE2b-256 |
ec9404422ea8fb18b1d5b733a08a67a92bd406322ea9a03f36f57af285fcec84
|
File details
Details for the file dnpak.py-2.0.0-py3-none-any.whl.
File metadata
- Download URL: dnpak.py-2.0.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7880ccd137a037ebdc37262df2ab03039605a88344b8cac0b9e42ee1620f8f3b
|
|
| MD5 |
c64dd6216514e1157eaae3b00fc9f903
|
|
| BLAKE2b-256 |
cfeba6f99027bac85494812edfd154300a36cbfa8d36d0f241e9a11190117f36
|