mrkn / pycall.rb

Calling Python functions from the Ruby language
MIT License
1.05k stars 72 forks source link

Python async needed for some modules #110

Open Technisha opened 4 years ago

Technisha commented 4 years ago

Heya I just wanted to bring this to your attention, some libs need python's built in async functions like await or async def, and this can break alot of code without it, so would it be possible to get the built in python functions like async and await implemented, or is there a way to import them? (Not asyncio)

Technisha commented 4 years ago

Also, I can't use Ruby's Async module since I need to call the function with Async apparently so idk what to do :\

Technisha commented 4 years ago

@mrkn

mrkn commented 4 years ago

@IpProxyNeon Could you describe what you want to do in more detail. It is better to explain with the concrete code examples. What code do you want to write with PyCall?

Technisha commented 4 years ago

While there is discordrb for making discord bots, I am trying to use Hata (a very unknown discord bot library for python) it's use async and coroutines don't work as expected, async and await from the async gem in ruby isn't working as I need it, since Python's async and Ruby's async gem are different, so could you add a way to use asyncronous functions with pycall somehow? @mrkn

Technisha commented 4 years ago

@mrkn sorry to bother you

mrkn commented 4 years ago

I'm not familiar with discordrb and Hata, so please show me what you want to do in a simple code example.