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.
Related
I have an application, which needs to be tested using in-house developed python automation. Originally, the application was developed using Swagger 2.x spec. Now it is migrated to use Open API 3.x
When it was on Swagger 2.x spec, I used to use swagger-codegen-cli-2.4.21.jar to generate the python client libraries, which we eventually consumed to write our automation. With the 2.4.21 jar we could disable the client side validation (configuration.py)
But after moving to OpenAPI 3.x, I am not able to use 2.4.21 jar because its not supported. So I used 3.0.36 jar to generate the python client libraries. But this doesn't have the option to disable the client side validation (in configuration.py). This is actually creating lot of problems because we are getting ValueErrors during GET calls.
I see that there are some discussions happened on the same, but none of them are conclusive enough that it is actually fixed in 3.x
https://github.com/OpenAPITools/openapi-generator/pull/4137
https://github.com/swagger-api/swagger-codegen/issues/5530
https://github.com/swagger-api/swagger-codegen/pull/9717
So I need help to understand whether this is still a open issue (or) it is fixed in some 3.x release..? If its not fixed yet, is there a workaround to overcome this issue..?
As of now, we are commenting all the ValueErrors to get around the issue, but this is not recommended because we lose the validation capability during POST calls.
On python-nextgen (latest Python generator) it is not implemented (you can indicate which type of validation can be skipped using disabled_client_side_validations when creating the configuration object, maybe works for you?).
The configuration object also includes a property client_side_validation which seems to be intended for this purpose but at the moment there is no implementation.
The only option at the moment is to keep it or remove it for all operations.
I need to run the system.data.sqlite library which is a .net library that creates a password in the sqlite database, and for me to be able to read this database in nodejs I need to install this library. It's possible? If so how can I do this?
Your simplest option may be to create a stand-alone .NET program using the desired .NET library that does what you want. This stand-alone program can work off either command line arguments or environment variables or stdin depending what you need to send to the program in order to do its thing.
You can then run that stand-alone program from within nodejs using the child_process module. You can pass it arguments or retrieve results if necessary.
So I have built a application using hug, a python web framework. Now I am looking to move the system to pyramid, but pyramid is very confusing to me, even the tutorial. All that I really need for now is create endpoints (ie get: index.html, get: upload.html, post: upload) and attach python functions that I have already written to those endpoints
I have tried doing the pyramid tutorial, but even that seems confusing to me, and it seems like I am missing steps, or they were left out
Just to summarize, I am looking for a way to create a number of endpoints, both get and post, and attach python functions that I have already written to these endpoints
Wanting to give Swift a try and cheaply as possible.
I'm running
Ubuntu 16.04
SQLite 3.11.0
Swift 3.0-dev
All is working, not pretty though, but I'm having a hell of a time connecting to SQLite within Swift.
Has anyone successfully connected and run a query against SQLite with this setup?
While I've seen a bunch of post for iOS solutions I'm not entirely sure these will work on Ubuntu. I wasn't sure if you could or needed to compile Objective-C on Ubuntu.
Since Objective-C as used on Apple's platforms is not well supported on Linux, I think a better approach might be to access the SQLite C API from Swift by either using a system module or bridging header. You might also want to wrap the SQLite API in a C library exposing a subset of the API that you need in a simplified form more suitable to be called from Swift. You would then invoke the wrapper by creating a system module for it (no system module is needed in this case for the SQLite API) or by using a bridging header.
The following may help:
Compile C code and expose it to Swift under Linux
Linking a C library and its supporting library in Swift (linux)
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?