big-slpp-1.0.5


توضیحات

SirAnthony's SLPP, but modernized code (also, trailing comma's)
ویژگی مقدار
سیستم عامل -
نام فایل big-slpp-1.0.5
نام big-slpp
نسخه کتابخانه 1.0.5
نگهدارنده []
ایمیل نگهدارنده []
نویسنده NostraDavid
ایمیل نویسنده 55331731+nostradavid@users.noreply.github.com
آدرس صفحه اصلی https://github.com/NostraDavid/big-slpp
آدرس اینترنتی https://pypi.org/project/big-slpp/
مجوز MIT
# Big-SLPP Big-SLPP is a simple lua-python data structures parser that also has trailing comma's. It also has two helper functions to help me re-create the files, as created by WoW. ## Example input ```lua -- This is a lua file from the game World of Warcraft: Wrath of the Lich King -- I need those keys sorted, because WoW/Lua keeps moving around the keys for -- no good damn reason >:( -- HOW DO YOU EXPECT ME TO TRACK MY SETTINGS IN A REPO, BLIZZARD!? -- jk, I know Wrath is still relatively rough around the edges. _NPCScanOptionsCharacter = { ["Achievements"] = { [1312] = true, [2257] = true, }, ["NPCs"] = { [18684] = "Bro'Gaz the Clanless", [32491] = "Time-Lost Proto Drake", }, ["Version"] = "3.3.5.5", ["NPCWorldIDs"] = { [18684] = 3, [32491] = 4, }, } ``` ## `SLPP.decode()` output (not what I was looking for) ```lua -- This is a lua file from the game World of Warcraft: Wrath of the Lich King -- I need those keys sorted, because WoW/Lua keeps moving around the keys for -- no good damn reason >:( -- HOW DO YOU EXPECT ME TO TRACK MY SETTINGS IN A REPO, BLIZZARD!? -- jk, I know Wrath is still relatively rough around the edges. ["_NPCScanOptionsCharacter"] = { ["Achievements"] = { [1312] = true, [2257] = true }, ["NPCWorldIDs"] = { [18684] = 3, [32491] = 4 }, ["NPCs"] = { [18684] = "Bro'Gaz the Clanless", [32491] = "Time-Lost Proto Drake" }, ["Version"] = "3.3.5.5" } ``` Note the lack of trailing comma's, and _NPCScanOptionsCharacter being wrapped in quotes and brackets. ## `big_slpp.utils.unwrap()`'s output ```lua _NPCScanOptionsCharacter = { ["Achievements"] = { [1312] = true, [2257] = true, }, ["NPCWorldIDs"] = { [18684] = 3, [32491] = 4, }, ["NPCs"] = { [18684] = "Bro'Gaz the Clanless", [32491] = "Time-Lost Proto Drake", }, ["Version"] = "3.3.5.5", } ``` Practically the same, but sorted! :D Also, trailing comma's!


زبان مورد نیاز

مقدار نام
>=3.9,<4.0 Python


نحوه نصب


نصب پکیج whl big-slpp-1.0.5:

    pip install big-slpp-1.0.5.whl


نصب پکیج tar.gz big-slpp-1.0.5:

    pip install big-slpp-1.0.5.tar.gz