Skip to main content

A python package to manipulate DragonNest pak file

Project description

dnpak.py

PyPI License: WTFPL CodeFactor

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dnpak.py-2.0.0.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

dnpak.py-2.0.0-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page