f-klubben / stregsystemet-cli

A command line interface to buy things in stregsystemet
Other
15 stars 7 forks source link

Separate functionality - Creation of stslib.py #107

Closed joandrsn closed 1 year ago

joandrsn commented 2 years ago

Currently I'm trying to create a rofi script for STS. In this regard, I would like to use the get-wares-functionality. However this function is tightly bound to the main python file. I suggest splitting the functionality into the following files:

And here is where I would be able to create sts-rofi.py which interacts with rofi.

This split does however come with a drawback: The update script needs to support updating multiple files.

Currently it is only a suggestion. I don't know if there is even any support a change like this.

falkecarlsen commented 2 years ago

:+1:

Zaph-x commented 1 year ago

This issue has been implemented in #117, where STS was updated to V2, which includes classes and classtypes for STS. With this, it is possible to simply import the sts main file as a library, and use the classes.

STS python android app when?