https://github.com/pacexy/npk-parser
A parser for NPK(NeoplePack) file.
https://github.com/pacexy/npk-parser
Last synced: about 2 months ago
JSON representation
A parser for NPK(NeoplePack) file.
- Host: GitHub
- URL: https://github.com/pacexy/npk-parser
- Owner: pacexy
- License: mit
- Created: 2020-11-25T15:43:25.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-07T14:57:24.000Z (over 5 years ago)
- Last Synced: 2026-02-10T10:14:23.009Z (4 months ago)
- Language: Python
- Size: 173 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# npk-parser
A parser for NPK(NeoplePack) file.
## Usage
```python
# import
from npk-parser import npk as NPK
# parse npk file
npk = NPK.parse('./npk/my-npk.NPK')
# do something
```
## Interface
```typescript
interface NPK {
children: Image[]
}
interface Image {
name: string
size: number
version: number
children: Texture[]
}
interface Texture {
type: string
compress: string
width?: number
height?: number
size?: number
key_x?: number
key_y?: number
max_width?: number
max_height?: number
data?: byte[]
}
```