Files
Kvan7 06c396f0cc v0.5.0 (#308)
* change discord id #278

* Update config & data

* Commit mockup image

* update mockup

* feat: filter quick update (#247)

* feat: filter generator in renderer

* feat: filter generator in main

* chore: some polishing

* feat: about section

* feat: i18n (-ish), only en text

* chore: cleanup

* chore: clarification regarding original filter

* chore: safety checks to ignore empty or not full identifier, or empty filters all together

* fix: linting fixes

* chore: locked version of winreg

* fix: dont hide divine orbs :O

* fix: set filter to hide would always hide it, even after turning it back
fix: updated config version

* fix: moved ignore low lvl area items down in filter order

* fix: drop winreg in favor of existing solution

* Change config file handling

* add in empty string check

* feat: changing filter generator into filter updater

* chore: simplify generator pages

* chore: removed code that is no longer needed

* chore: linter fixes

* fix: remove debug text

* feat: customizable folder path

* Add russian localization

* Merge commit 'ec35412d2694eb6a677415893776939b496b8aae'

* Revert "Merge commit 'ec35412d2694eb6a677415893776939b496b8aae'"

This reverts commit 8a3d84af91.

* Merge branch 'dev' into pr/tmakuch/247

* update config version

* Add note about case sensitivity

* run linter/formatter

* Features/germanLang (#300)

* add app_i18n.json

Co-authored-by: @professorspoon

* Update files

* official site

* Build files

* update description parser?

* [Not Recognized Modifier] - %phys #298

* add new unique stats, don't have roll values yet

* Update uniques again

* [PoE2] - Checking log book hard crashes #305

* run data script again?

* data files update for 0.1.1

* version bump
2025-01-16 15:57:50 -06:00

49 lines
1.2 KiB
Python

import os
from pprint import pprint
from descriptionParser.description import Description
from descriptionParser.descriptionFile import DescriptionFile
if __name__ == "__main__":
# Test functionality
with open(
f"{os.path.dirname(os.path.realpath(__file__))}/descriptionParser/singleDesc.csd",
"r",
encoding="utf-8",
) as f:
lines = f.readlines()
desc = Description(lines)
pprint(desc.data["English"])
print(desc.english_ref)
print(desc.id)
other_desc = DescriptionFile(
f"{os.path.dirname(os.path.realpath(__file__))}/descriptionParser/fewDesc.csd",
encoding="utf-8",
)
with open(
f"{os.path.dirname(os.path.realpath(__file__))}/descriptionParser/manyLineDesc.csd",
"r",
encoding="utf-8",
) as f:
lines2 = f.readlines()
desc2 = Description(lines2)
pprint(desc2.data["English"])
print(desc2.english_ref)
print(desc2.id)
with open(
f"{os.path.dirname(os.path.realpath(__file__))}/descriptionParser/arrowDesc.csd",
"r",
encoding="utf-8",
) as f:
lines3 = f.readlines()
desc3 = Description(lines3)
pprint(desc3.data["English"])
print(desc3.english_ref)
print(desc3.id)