How to convert python script to pascal script? [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have app that need Inno Setup to pack it. And aslo i need to write some Pascal code in [Code] section.The problem is that i am very familiar with python but not familiar with Pascal,So i want to know it's there have any tool covert python code to pascal code, or some other methods, thanks.

Unfortunately you won't be able to directly convert python code to pascal
Python is a dynamically typed interpreted language, whereas Pascal is a statically typed compiled language. This means that any converter would need to know the type of every variable used in your python script, which can change throughout a script.
Providing you know the typings of your python code your easiest solution if the Pascal is 100% required would be to go through your python line by line and re-write in Pascal using online resources to find the equivalant syntaxes.
Some things won't convert cleanly due to changing of types mid script, these will need to be corrected.

Related

A cryptographic tool for specific fields in data [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I was thinking of building a piece of software that would be able to encrypt specific fields in a data file. So I started to consider writing some code in Python using cryptographic libraries. However I wonder: is it really safe? Should I rather use existing cryptographic tools?
If so, do you know a good cryptographic tool I could rely on? The only tools I find only encrypt entire files or disks. Thank you!
This greatly depends (obviously), on how you write it.
There are libraries like cryptography which already provide this solution though and are considered very safe.
https://github.com/fugue/credstash, for instance, which is widely used, uses cryptography.
https://github.com/lyft/confidant uses it also.
I implemented a locally usable secret store using cryptography (which you could use to encrypt any type of data) - https://github.com/nir0s/ghost which you could use as a reference implementation or simply use it (hope I'm not breaking any rules here)

Runtime Statistics in Python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm looking for a library for gathering "runtime statistics" in python, by which I mean an interface for outputting structured log files. A good example of what I would like is Twitter's ostrich project in Scala, wherein one simply executes a statement notifying the logger of an event. Ideally, this would then be automatically aggregated into a suitable visualization for application monitoring.
Does anyone know if such a library exists? Alternatively, does anyone know a more generic way of combining traditional message logging with some simply graphing for runtime analytics?
Thanks!
Graphite is one such system, written in Python.
I'm not familiar with ostrich, but a quick look at the readme suggests that the python project mmstats might be close to what you're looking for.

convert vb.net to python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 10 months ago.
Improve this question
hello guys i'm wondering if i can convert vb.net codes to python ?!
i have this code
VB.net
dim t as new threading.thread( adressof x,100)
t.start
sub x
do work
end sub
i guess it's like
def thread(self):
t = threading.thread(adressof)
self.x()
def x(self):
pass
so there any converter ? it would be so nice because i got source code for program in vb.net and as you know it's work on only Windows and i want to make it work in Linux so i need Vb to python converter .. thanks a lot guys
No, there is no converter. They are wildly different languages and VB.NET relies on the .NET framework to function, which Python doesn't.
If you need to get your .NET program working under Linux, you would be much better off utilizing Mono.
There is Visual Basic -> Python translator called vb2py, but it hasn't been updated in several years. I'm currently working on a tool called universal-transpiler that translates a subset of VB.NET into several other languages, including Python.
Here there are two converters:
http://vb2py.sourceforge.net/
https://www.digitalcoding.com/tools/vb-csharp-to-python-code-converter.html

Gui Library in Python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am in need of making an interface for Automata Construction. For those who are unaware of what an automata is, I basically need circles and arrows, extending them on the user interface and then various text to describe it. For example :- http://en.wikipedia.org/wiki/File:DFAexample.svg
I was wondering if there is any advanced library in Python which could let me do all of this. Please give me suggestions. I plan to use lots of internal frames and showing parsing of strings diagramatically . I had planned to use jython to use the swing libraries but I would like to know if there any other suggestions that I can use.
I've used PyQt4 to produce something like this:
http://doc.qt.nokia.com/4.6/graphicsview-diagramscene.html
which is the C++ version. Draw boxes, draw arrows, drag them around and so forth. Actually I think I pretty much ported the C++ version line-by-line to Python. Or someone else did.
PySide (Qt), WxPython, PyGtk
I looked at your picture and have another one idea - you can use graphviz and pydot.

What is a good configuration file library for c thats not xml (preferably has python bindings)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am looking for a good config file library for c that is not xml. Optimally I would really like one that also has python bindings. The best option I have come up with is to use a JSON library in both c and python. What would you recommend, or what method of reading/writing configuration settings do you prefer?
YaML :)
If you're not married to Python, try Lua. It was originally designed for configuration.
You could use a pure python solution like ConfigObj and then simply use the CPython API to query for settings. This assumes that your application embeds Python. If it doesn't, and if you are shipping Python anyway, it might make sense to just embed it. Your C .exe won't get that much bigger if it's a dynamic link, and you will have all the flexibility of Python at your disposal.
Despite being hated by techies and disowned by Microsoft, INI files are actually quite popular with users, as they are easy to understand and edit. They are also very simple to write parsers for, should your libraries not already support them.

Categories