# How to use a Python library

**URL:** <https://rubytalk.org/t/how-to-use-a-python-library/153>\
**Category:** ruby-talk\
**Created:** [7 June 2002 19:56 UTC](https://rubytalk.org/t/how-to-use-a-python-library/153 "2002-06-07T19:56:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lyle\_Johnson6](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@Lyle\_Johnson6](https://rubytalk.org/u/Lyle_Johnson6)\
**Post date:** [7 June 2002 19:56 UTC](https://rubytalk.org/t/how-to-use-a-python-library/153/1 "2002-06-07T19:56:35Z")

</div>

> what is the best way to use a python library from Ruby code.  
> Any ideas other then then simply (??) writing a Ruby → C → Python  
> wrapper by hand.

Haven’t tried this at all, but I do see a “Ruby/Python” entry in the  
Ruby Application Archive:

```
 http://www.goto.info.waseda.ac.jp/~fukusima/ruby/python-e.html

```

HTH,

Lyle

---

<div class="post-metadata">

**Author:** ![Paul\_Brannan](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@Paul\_Brannan](https://rubytalk.org/u/Paul_Brannan)\
**Post date:** [8 June 2002 17:42 UTC](https://rubytalk.org/t/how-to-use-a-python-library/153/2 "2002-06-08T17:42:22Z")

</div>

I’ve tried it. The web page looks really nice and has some good  
examples. It worked with some simple tests I wrote, but wasn’t complete  
enough to allow me to use Omniorb with Ruby. (I suspect this might have  
had something to do with exceptions).

Paul

> **···**
>
> On Sat, Jun 08, 2002 at 04:56:35AM +0900, Lyle Johnson wrote:
> 
> > Haven’t tried this at all, but I do see a “Ruby/Python” entry in the  
> > Ruby Application Archive:
> > 
> > ```
> > http://www.goto.info.waseda.ac.jp/~fukusima/ruby/python-e.html
> > 
> > ```
