I see several examples here about sending email with Twisted. However, I've read that twisted-mail isn't going to be ported on Python 3.
Has Twisted got any alternative in Python3 or manipulation with e-mail is away?
According to this page, there is a plan to bring twisted into Python 3 with full functionality.
However, there are also some other e-mail modules available in Python 3.
This is a
tutorial which uses smtplib, a module which uses the SMTP protocol.
There is also an email module built in to Python 3, as detailed here in the docs.
Related
I am wondering if it is possible to use the Docusign APIs with IronPython. My script works fine with Python, but when I use IronPython, I get the following error: LookupError: unknown error handler name 'surrogatepass'. My guess is that it's not possible because IronPython is python 2 whereas the Docusign APIs are written for python 3.
I think you may be right. Looking up this error I found this thread (https://bugs.python.org/issue8438) which suggests that you need to use Python 3.
There was supposed to be an IronPython version that supports Python 3 (https://github.com/IronLanguages/ironpython3) but appears they say not to use it as they migrated to a different approach. So, not sure that would work either. You can always try to make API calls directly without using an SDK, it's just more work unfortunately.
I'm trying to work with the Google contacts API using Python 3.5, this presents an issue because the gdata library that is supposed to be used is not up to date for use with Python 3.5. I can use oAuth2 to grab the contact data in JSON and use that in my project, but part of the application is also adding a contact into the users contact list. I cannot find any documentation on this part, besides using the Gdata library, something I cannot do. The majority of project requires Python 3 so, switching to Python 2 would just not be something I could easily do. Is there any further documentation or a work around using the gdata library with Python 3? I'm actually very surprised that the contacts API seems so thinly supported on Python. If anyone has any further information it would be much appreciated.
For me I had to install like pip install git+https://github.com/dvska/gdata-python3 (without the egg). Since the package itself contains src dir. Otherwise import gdata would fail. (python 3.6.5 in virtual env)
GData Py3k version: pip install -e git+https://github.com/dvska/gdata-python3#egg=gdata
I m working on a little project and I need a way to upload video on youtube using python programm, I searched on github and I find a programm that do this but it is in python2 and I need one in python3 also it is very difficult to manipulate. So does someone knows some programms thats upload video on youtube and it is written in python3
You didn't mention the program that you had found, so I searched github.
The first hit is https://github.com/tokland/youtube-upload, and according to the readme, this is compatible with Python 3.x. You will need the google api python client too, and of course you will need an api key to use with it, but these are available.
An alternative is shoogle https://github.com/tokland/shoogle, which only supports python 3.x
I noticed twisted.conch is not part of dist3.py for python 3.Is it not yet migrated to python 3? I dont find any recent updates on the same when i search. I was planning to use it to establish multiple telnet sessions which ll help asses logs in my django app and also help debug live django application using manhole.
IS there an alternate i can use for my use case?
I checked out asyncio. However, my understanding is it might freeze the application during debug which would not suit my need.do correct me if my understanding is wrong..
pls point me to latest twisted package for python 3 with conch support if available . if not, do you have any alternate suggestions?
I know that the Paramiko api exists for Python 2.x. Is there an emerging method for interacting with a remote server using SFTP functions from within a Python 3.1 script? Extensive searching of the paramiko site uncovered no evidence of 3.x support.
If not, I will either use Python-2.x with Paramiko for my remote access, or maybe just use subprocess.popen() or similar with Python 3.
I had a similar issue with not being able to install paramiko for some reason (don't remember now), and implemented a wrapper for putty's SFTP implmentation, it's in python 2.x, but you may be able to get some reference value from it.
http://psftplib.googlecode.com/svn/trunk/psftplib.py