Comments

You must log in or register to comment.

surreal wrote

was looking for a chance to try and interface python with rust. there are some cool projects out there like PyO3, is that postmill lib sans-io?

nice rust repos you're cultivating there.

3

Fossidarity OP wrote

Cool, I'm interested to see how that will work in practice. What do you mean sans-io? The library itself does the network calls using reqwest if that's what you're asking. It's basically a HTML scraper using HTTP calls but when emma will implement a proper API I'll make it a lot more robust.

3

surreal wrote

yep i meant if the library does the I/O.

an API would be sweet.

2

Fossidarity OP wrote

Ah right yeah it does. I used to do it with a Selenium instance but that was a lot more sensitive for faults and required running WebDriver which sucks on servers.

1

Fossidarity OP wrote (edited )

Off topic but do you know if there's a way to create an Android app with python gui stuff?

1

surreal wrote

i've used Kivy a lot in the past, its an easy and nice framework but kinda slow if you go too far. There is also an effort going on at the Pybee project but last time i checked about a year ago it was pretty basic.

2

Fossidarity OP wrote

That looks pretty good! Do you think it will be hard to create an Android app with this and a Rust backend?

2

surreal wrote

not sure how to do this. Kivy has a utility called buildozer that takes care of building the .apk but i don't know how you can link binaries. Rust compiles for Android though so there must be a way.

2

Fossidarity OP wrote

Would that be this: https://python-for-android.readthedocs.io/en/latest/recipes/#using-an-ndkrecipe ?

I've never done anything for Android so I'm just guessing..

2

surreal wrote

iirc that's what kivy's buildozer uses underneath. I haven't done much for Android either and everything was through Kivy which i mainly used for RPI projects. Android and buildozer was not a fun experience. You will probably need the AndroidSDK too.

2

Fossidarity OP wrote

Hmmm this doesn't sound like much fun. I'm looking to create a simple Android app which exposes some basic functionality from my Rust API, but I think this will be quite hard and tedious.

2

surreal wrote

i think it would be easier to do it all in Rust but i have no idea about the frameworks/libs for Android GUI apps in Rust atm.

2

ziq wrote

Nice.

2