apiaryio / api-blueprint

API Blueprint
https://apiblueprint.org
MIT License
8.65k stars 2.14k forks source link

Python2 versus Python3 #459

Closed joshwolff1 closed 4 years ago

joshwolff1 commented 4 years ago

Apiary documentation appears to only provide support for Python2.

Python2 is deprecated.

Is support for Python3 available?

Sample: https://pandurangpatil.docs.apiary.io/#introduction/description-of-usual-server-responses

joshwolff1 commented 4 years ago

An example from the documentation I linked


from urllib2 import Request, urlopen

request = Request('http://sample.pandurangpatil.com/users(?since,limit)')

response_body = urlopen(request).read()
print response_body

This is Python2 and the code is not portable. It is not a great user experience for my users, who primarily use Python3, to have to convert and debug Python2 code.

kylef commented 4 years ago

The code examples on Apiary Interactive Documentation v4 will support Python 3, you can check out one of the examples. User's will need to opt-in to the newer version in the API Project settings.

joshwolff1 commented 4 years ago

Thank you