Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
f0f965d
Setup MainWindow
tralph3 Nov 10, 2023
a905916
Initial app list display
tralph3 Nov 10, 2023
2de6fc7
Set column width
tralph3 Nov 10, 2023
bc22030
Add search bar
tralph3 Nov 10, 2023
3ebac65
Rename _create_columns -> _make_columns
tralph3 Nov 10, 2023
c26378c
Consolidate type and id columns inside the name column
tralph3 Nov 11, 2023
f920ac8
Load VDF via function instead of constructor parameter
tralph3 Nov 11, 2023
f5f4e27
Improved layout
tralph3 Nov 11, 2023
1a1e515
Added details view
tralph3 Nov 12, 2023
755a20a
Add date pickers
tralph3 Nov 12, 2023
4e2ac8a
Fetch data from apps on double click
tralph3 Nov 13, 2023
6a15ddd
Add action bar
tralph3 Nov 13, 2023
10e4d7b
Abstract appinfo to its own module
tralph3 May 7, 2024
d034059
Bump copyright year
tralph3 May 8, 2024
0e558de
Hook view to new model, allow saving
tralph3 May 8, 2024
25b7199
Lowercase labels
tralph3 May 8, 2024
9fce264
Abstract widget creation
tralph3 May 14, 2024
b8a73da
Formatting
tralph3 May 14, 2024
9d8c06f
add exit button functionality
tralph3 Jun 2, 2024
0873af2
add event system
tralph3 Jun 2, 2024
2aba6a1
add save_changes event
tralph3 Jun 2, 2024
efa2a8c
rename exit to quit
tralph3 Jun 2, 2024
6d99ea6
update conner file
tralph3 Jun 2, 2024
e10052d
pass in *args to adw.application init
tralph3 Jun 2, 2024
919030a
wip launch menu and styling
tralph3 Jun 3, 2024
c08601a
use border-radious 2px for everything
tralph3 Jun 4, 2024
a8096fb
add os checkbuttons
tralph3 Jun 4, 2024
c8f920f
allo entry deletion
tralph3 Jun 4, 2024
e8a2c31
more steam-like styling
tralph3 Jun 4, 2024
1b68292
allow entry creation
tralph3 Jun 4, 2024
9ddd40d
dynamically apply css classes to entries
tralph3 Jun 4, 2024
4b3262c
save updated launch entries
tralph3 Jun 4, 2024
d5bccc4
add empty entry status page
tralph3 Jun 4, 2024
62f49d3
remove tool bar
tralph3 Jun 4, 2024
50402b1
add initial status page and add entry button
tralph3 Jun 5, 2024
1a86983
load app name from appinfo
tralph3 Jun 5, 2024
f5c0091
fix typo
tralph3 Jun 13, 2024
f787e0e
pass appid to LaunchEntry
tralph3 Jun 13, 2024
4554ff2
mark attributes as private
tralph3 Jun 13, 2024
6241c45
scaffolding for textvdf parser
tralph3 Jun 13, 2024
c31424b
first decoder implementation
tralph3 Jun 13, 2024
c1bc27c
abstract dictionary check
tralph3 Jun 15, 2024
0cfed19
implement textvdf encoder
tralph3 Jun 16, 2024
3d80d2d
add empty dictionary check
tralph3 Jun 16, 2024
3e12635
fix type hints
tralph3 Jun 16, 2024
a3b87f0
read file as text
tralph3 Jun 16, 2024
0149aa2
add steam libraries model
tralph3 Jun 16, 2024
931bda3
mark model as private
tralph3 Jun 16, 2024
6558fd7
store indent state in encoder class
tralph3 Jun 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .conner
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
;;; -*- lisp-data -*-
((:name "Test with coverage"
:command "pytest --cov"
:type "compile")
(:name "Run"
:command "python src/main.py"
:type "compile"))
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/__pycache__
**/.coverage
331 changes: 0 additions & 331 deletions src/appinfo.py

This file was deleted.

25 changes: 25 additions & 0 deletions src/appinfo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from .decoder import AppinfoDecoder, AppinfoDecodeError
from .encoder import AppinfoEncoder


__version__ = '0.1'
__all__ = [
'dump', 'dumps', 'load', 'loads',
'AppinfoDecoder', 'AppinfoDecodeError', 'AppinfoEncoder',
]

__author__ = 'Tomás Ralph <tomasralph2000@gmail.com>'


def dump(obj: dict, fp) -> None:
fp.write(dumps(obj))

def dumps(obj: dict) -> bytearray:
return AppinfoEncoder(obj).encode()

def load(fp) -> dict:
return AppinfoDecoder(fp.read()).decode()

def loads(file_path: str) -> dict:
with open(file_path, "rb") as f:
return load(f)
24 changes: 24 additions & 0 deletions src/appinfo/common.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import struct


COMPATIBLE_MAGIC_NUMBERS = [ 0x07564428 ]
COMPATIBLE_UNIVERSES = [ 0x01 ]

HEADER_FORMAT = "<4IQ20sI20s"
HEADER_SIZE = struct.calcsize(HEADER_FORMAT)

LAST_APPID = 0x00

SEPARATOR = b"\x00"
TYPE_DICT = b"\x00"
TYPE_STRING = b"\x01"
TYPE_INT32 = b"\x02"
TYPE_INT64 = b"\x07"
SECTION_END = b"\x08"

INT_SEPARATOR = int.from_bytes(SEPARATOR, "little")
INT_TYPE_DICT = int.from_bytes(TYPE_DICT, "little")
INT_TYPE_STRING = int.from_bytes(TYPE_STRING, "little")
INT_TYPE_INT32 = int.from_bytes(TYPE_INT32, "little")
INT_TYPE_INT64 = int.from_bytes(TYPE_INT64, "little")
INT_SECTION_END = int.from_bytes(SECTION_END, "little")
Loading