doceme / py-spidev

MIT License
461 stars 203 forks source link

Python 3 #2

Closed CplSyx closed 10 years ago

CplSyx commented 12 years ago

Are there any plans to port this to Python 3? At present forced to use Python 2 solely due to this extension.

Have attempted porting it myself but couldn't quite get there!

doceme commented 12 years ago

I don't have any current plans on porting to Python 3, but I'll look into it.

lluar commented 11 years ago

It's done. https://github.com/lluar/py-spidev

meltwater2000 commented 10 years ago

Unfortunately. The link is dead, is it still available somewhere? Python3 version would be a massive help.

doceme commented 10 years ago

I haven't used Python 3 much yet, so I haven't had a need to make this work in Python 3. It sounded like lluar had something working, but it appears that project has been removed. :( There is another (more active) project that might suit your needs better: https://github.com/quick2wire/quick2wire-python-api. It's geared toward Raspberry Pi, but should work with other boards (like BeagleBone). It uses Python 3 and makes direct ioctl calls for spidev without relying on any C code. The performance might not be as good, although you might not care about that.

meltwater2000 commented 10 years ago

Thank you for your reply. I was asking since py-spi seems to work nicely with python2.7. I'll take a look at the quick2wire one thanks, I was using wiringpi2 which seems to work although the documentation on the spi part is a little limited when it comes to the python part. Thanks again.

rpodgorny commented 10 years ago

https://github.com/rpodgorny/py-spidev