Skip to main content

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

Metadata

Release files for dnpak.py 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dnpak.py 2.0.0
File Size Uploaded
dnpak.py-2.0.0.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dnpak.py 2.0.0
File Interpreter ABI Platform
dnpak.py-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / dnpak.py-2.0.0.tar.gz

Download URL dnpak.py-2.0.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c41d5f1a2065efa17eff8c0d5f08b3f0dad0c78a9e6039733e534c5204399d63
BLAKE2b-256 checksum
How to use checksums
ec9404422ea8fb18b1d5b733a08a67a92bd406322ea9a03f36f57af285fcec84
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / dnpak.py-2.0.0-py3-none-any.whl

Download URL dnpak.py-2.0.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7880ccd137a037ebdc37262df2ab03039605a88344b8cac0b9e42ee1620f8f3b
BLAKE2b-256 checksum
How to use checksums
cfeba6f99027bac85494812edfd154300a36cbfa8d36d0f241e9a11190117f36
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page