Controlling computer hardware using Python [closed] - python

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm a beginner programmer . I want to build an OS using Python and assembly . And for that I guess I will have to control the hardware. My question is " Is it possible to control computer's hardware parts using python ."

Unfortunately Python is classified as a very high level programming
language. It cannot be used, for example, to directly access
hardware and perform low-level data structure manipulation. It is
completely dependent on something to abstract the hardware from it,
and that is the Kernel. It is, however, technically possible to create
an operating system centered on Python, that is; have only the very
low level stuff in written in C and assembly and have most of the rest
of the operating system written in Python.
This article discusses with more detail what languages are
suitable for writing operating system kernels.
More

Related

Is there a Rust equivalent of what bigInt is to python? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed last year.
Improve this question
Is there a Rust equivalent of what bigInt is to python? If not, then what is the rationale behind not going with python's way of integer handling?
Yes there are. Search for "bigint" on crates.io and there are plenty of results. They are not in the standard library but that's nothing unusual for Rust. Rust's standard library is kept small intentionally to minimise binary size ease maintenance (among other reasons).
Because Rust is not Python, and there's no reason for it to "Pythonise". Rust is a systems programming language without GC and with a focus on performance. There are many ways you can go about implementing a BigInt type, and there is no universal "best" way to do it. The most performant implementation heavily depends on your particular use case, which again is why there are many crates you can choose from, depending on what you need exactly.

Could you check it's possible (Selenium python automation + PHP) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Our system is developed with PHP and one of our coworkers developed Amazon automation program with Python.
I am wondering if it's possible to integrate together ?
if it is please recommend what ways i can do this
https://github.com/jasonminsookim/order_automation/blob/master/src/amzn.py
Here's code Amazon automation program
Thank you
There are lots of ways to do this, but I would weigh what you have available to you and go from there. The tempfile solution is the most general, and is a common interface pattern for any two or more languages, but you can get more exotic if performance is a major concern with pipes.
Temp-file
I guess the most rudimentary way to do this would be to have the python file output some data to a file that can be read in by php or vice versa.
Something like creating a directory called /orders where php put's in order.json files and python takes those in, reads them and gets the result, then puts it back as a order-result.json. Essentially a temp-file system to communicate between the two.
Pipes
Alternatively depending on your setup you could pipe results into php from python with something like the subprocessing module and a php CLI that interfaces with your DB.

how can I translate efficiently a Java code to python? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I would be greatfull if you could tell me how one can translate a code from Java to python.
Should one do it manually ? is there any tool to convert it automatically?
If you want to translate java code to python you have to translate it manually. Automatic conversion generally does not have the appropriate quality. It looks like there are some tools out e.g. java2python but the author states
The generated Python code is not guaranteed to run, nor is guaranteed to be syntactically valid Python.
Converting a library to another programming language is never an easy task.
If you simply want to use a java library in a application that you want to write in python you could give jython a try.

Python - First Interface with a Program [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have spent the last six months learning python as a way to automate my working environment. So far I have automated data extraction and report downloading from various web-based sources through the use of webcrawlers, interacted with excel files, created visual representations of data through matplotlib, and removed almost all the monotony from bank reconciliation.
I now come to a new task which takes up a large amount of my daily workload. We use an accounts program called Sage 50 Accounts. I effectively want to begin to learn how to manipulate the data contained within this program so that my daily thought patterns can be put into Python code.
Because this hasn't been done, there's no pre-made API. So my question is:
When wishing to interact with a new program through Python, how does a programmer begin such an inquiry?
Please accept that this question is only vague and general because I'm incredibly new to such a task.
SData is Sage's general data access API layer and should suit your purposes.
Otherwise you might need to invest in or obtain a Sage Development SDK.

Writing Apache Storm Spouts and Bolts using Python and Pandas [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to turn an existing python-based implementation (a data analysis tool on a stream of events) into a storm topology.
During the research phase my team and I used python pandas a lot to develop a prototype of our tool and found it to be very helpful in terms of programmer productivity. Now we want to create a storm topology that does the same thing and aim to reuse our existing python modules as bolts or at least make an informed decision about whether it is a good idea performance-wise to do so.
Any restrictions on using a python script depending on external libs as a Storm Bolt on a cluster? Also, does anybody have a feeling for what the performance penalty will be for using an interpreted and non-JVM language like Python instead of Java for our bolts? The pandas library itself is designed with high-performance in mind.
Thanks

Categories

Resources