txqr icon indicating copy to clipboard operation
txqr copied to clipboard

Python, Java/Kotlin and Swift wrapper

Open DonaldTsang opened this issue 6 years ago • 11 comments

Adding this to https://github.com/hydrusnetwork/hydrus and associated mobile apps would be useful.
Hydrus is written in Python, BooruNav, AnimeBoxes and Nori are on Android, Mignori is on iOS

DonaldTsang avatar Nov 28 '18 18:11 DonaldTsang

I would agree, I'd definitely like a Python and Java wrapper. I attempted to generate a Python one using https://github.com/go-python/gopy, but I'm fresh new to Go and don't understand any of it. @divan A python binding would be appreciated, and I think I know how to do a Java one.

fionafibration avatar Jan 08 '19 19:01 fionafibration

@ThePlasmaRailgun I would say the minimum would be Swift for iOS, Java/Kotlin for android and Python/JS for prototyping and scripting.

DonaldTsang avatar Jan 09 '19 13:01 DonaldTsang

Agreed. IDK whether there are facilities for compiling/importing/binding Go into JS, Java, or Swift, but I do know Python can import compiled Go with the tool I sent above.

fionafibration avatar Jan 09 '19 17:01 fionafibration

the closest concept I have found is gomobile, but they note the bindings have performance overhead

NovaLogicDev avatar Jan 09 '19 22:01 NovaLogicDev

GoMobile should be easy bindings, but my attempts at Python bindings have failed miserably. If anyone knows more about this or has more experience, then I'd love if you could take a crack at it.

fionafibration avatar Jan 09 '19 22:01 fionafibration

@ThePlasmaRailgun any progress on the TxQR java app?

DonaldTsang avatar Jan 14 '19 03:01 DonaldTsang

Not yet, I'm still working on it.

On Sun, Jan 13, 2019, 8:15 PM Donald Tsang <[email protected] wrote:

@ThePlasmaRailgun https://github.com/ThePlasmaRailgun any progress on the TxQR java app?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/divan/txqr/issues/4#issuecomment-453893618, or mute the thread https://github.com/notifications/unsubscribe-auth/AQDJZBv9UJsp8L7AyxB6u15SlNPnJJU8ks5vC_Y3gaJpZM4Y4Muo .

fionafibration avatar Jan 14 '19 03:01 fionafibration

@ThePlasmaRailgun is Kotlin better than Java?

DonaldTsang avatar Jan 14 '19 03:01 DonaldTsang

We're writing it in Kotlin, I prefer it to Java.

On Sun, Jan 13, 2019, 8:24 PM Donald Tsang <[email protected] wrote:

@ThePlasmaRailgun https://github.com/ThePlasmaRailgun is Kotlin better than Java?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/divan/txqr/issues/4#issuecomment-453894591, or mute the thread https://github.com/notifications/unsubscribe-auth/AQDJZNxAHmErNYOqkfr-oJN93RMbmoq4ks5vC_iHgaJpZM4Y4Muo .

fionafibration avatar Jan 14 '19 03:01 fionafibration

As someone who learned Java and then switched over, I can definitely say its a better language

NovaLogicDev avatar Jan 14 '19 04:01 NovaLogicDev

Referecne: https://github.com/divan/txqr-reader/issues/2

DonaldTsang avatar Jan 14 '19 07:01 DonaldTsang