AWS API Tools vs AWS CLI: ec2-import-instance - python

I'm wondering... in the "new" AWS CLI tool, which would be the equivalent to the "old" ec2-import-instance command? Can't find anything useful in the AWS Docs, help output or on the web.
Reason why I'm asking is that I'm curious to see their Python implementation of it, as I want to incorporate it into my own code. AWS CLI uses Python/boto (as opposed to the old API tools which used Java), which might be an explanation why the functionality is missing (couldn't find it in boto either).
If you happen to know how to achieve an instance import in pure Python, I'd be very curious about that too!
Any pointers are greatly appreciated. Thanks!

It will be supported in a later release. As of now, there is no support for it.
For more info

Related

Problem uploading a python script in Microsoft Azure using App Service

I make this topic as we have a problem uploading a python archive in Azure. We did a modular code with python, which is a text generator. The code is working on python environment, besides we wanted to upload it to the cloud. When we tried it, we used the App service of Microsoft azure, we didn’t have any trouble while we were doing the process this way. Nevertheless, at the end, the program gave us a json, when we tried to put that URL into the navigator… There’s were the problem is, the generated Jason doesn’t connect with the navigator. We don’t have any clue of what’s happening, because the console doesn´t give any warning or error.
If any of you knows or have a tip for us to solve this problem, I would appreciate it,
Thanks for your attention and have a nice day.
Welcome to Stack Overflow! From what I understand, I suppose you should be going with Azure Automation Runbooks instead of Azure App Service, if you intend to execute or automate a task-like job. You can also test your runbook and implement error handling streams to ensure it works as expected. Please refer to this example for a detailed walkthrough.
Please elaborate your requirement if this is not what you were looking for, and we can explore other alternatives.

Amazon machine image in AWS for Anaconda python

Are there any amazon machine image available for Anaconda python in Amazon web services? I am looking for something that is similar to R AMI like this -->http://www.louisaslett.com/RStudio_AMI/
Please let me know
I strongly believe that you can use Predictive Analytics Framework AMI, unfortunately it isn't free (but you can get free trial).
You can get probably best results with your own AMI. The easiest way is to use one of free AMI, install all necessary packages, then create image from it.
Hope that this will help you.
Yes, there may not have been one when you first asked, but hopefully this answer will help others. There are several free Anaconda AMI options, for both Python 2 and 3. See https://aws.amazon.com/marketplace/seller-profile?id=29f81979-a535-4f44-9e9f-6800807ad996&ref=dtl_B07CNFWMPC

How to receive the Events from .NET using Python

I want to consume the events/Signals exposed by the Application via .NET SignalR.
My requirement is to receive those signals using Python.
Kindly help me out.
A similar question was asked here:
Using SignalR server from Python code
There are no Python SignalR libraries available, so your only option would be to port a lightweight version of SignalR to python yourself. See https://github.com/davidfowl/SignalR.Lite
Obviously this is not a trivial undertaking!
I just wanted to offer another approach. Maybe the simpler solution would be to execute the SignalrR javascript library in python and just create a translational layer to get it back into python objects.
I do not have code proving this, but I was hoping this would encourage someone in the future to try it.

Python interface with SWI-Prolog

I want to use a Python script as a frontend to a Prolog program that uses the SWI-PL engine.
So, the components of the setup are:
Python (2.7 or higher)
SWI-PL: website here
I've been looking around for an interface between SWI-PL and Python.
What I found are:
PySwip but it seems to be lacking from what i see from old questions here, and also seems unsupported.
PyLog, which seems newer but also has some activity. Although i don't know how good it is.
What is the recommended way of using Python to communicate with SWI-prolog?
Are there perhaps other ways to accomplish this?
Maybe with another prolog engine?
I'm stuck with the Prolog language and Python because I know them best, so that would be necessary (I know for instance there are also tools for Java).
I've personally used PySWIP successfully. Here's a link to a project I did for my AI class in university in which I used PySWIP.
I think the difference is that PySWIP is a bridge (just send queries to a Prolog database and get responses) whereas PyLog seems to be an implementation of Prolog (or a built-in Prolog engine) in Python, with abstractions on Prolog code using objects.
I have no particular recommendation for you. Choose whichever you deem will suit your project best. Consider the licenses under which these libraries are published if you will need to worry about your code's license.

Different Python Google APIs

I am trying to figure out the difference between Google's GData API ( http://code.google.com/p/gdata-python-client/ ) and Google's APIs Client Library for Python ( http://code.google.com/p/google-api-python-client/ ).
They both seem to be by Google. Which is the official one? How are they different? The second seems to use OAuth primarily.
If anyone has knowledge or experience using either it would be great to get some information about this!
PS: I though about putting this on superuser, but because it is programming related I thought it would be better here.
The difference is the same as the difference between the corresponding Java libraries (http://code.google.com/p/google-api-java-client/ and http://code.google.com/p/gdata-java-client/)
That is, the gdata- version of the code has gone into maintenance mode, probably won't be updated to cover new APIs, but will have bugs fixed as they're found. The google-api- version is under very active development.
There's a good discussion of the pros and cons of each version of the Java api here: http://code.google.com/p/gdata-java-client/wiki/MigratingToGoogleApiJavaClient
The non-java-specific parts of that document also apply to the python api libraries.
These libraries are also intended to support different protocols.
The APIs supported by google-api-python-client are discovery based, while those supported by gdata-python-client use the GData protocol.

Categories