Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have a simple project in mind that would take a long list of triplets as input (coordinates describing a path in 3 dimensions), and generates an STL file as output. (STL is a file format that describes 3-D surface geometry for use in CAD and 3-D printing applications.)
I'm a scientist, not a developer, and I'm capable with Python, so I can handle parsing an input text file if needed. What I am looking for is a command line utility, library, or simple programming language that can automate a few simple CAD tasks (e.g. extrude a cross section along a path) to create a true 3-D surface for STL output.
Thanks.
Have you considered using Blender?
It has a Python API, and can also be used in headless mode (without a GUI) by using blender --python script.py.
It also has an STL import/export plugin (make sure to enable it in Preferences -> Addons if you decide to try it). I'd also suggest to look at its source code if you decide to roll your own.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm working in a project to analyze and create PDF file.
I almost done with analysis part but I reached the part of creation pdf files.
is there any library or tool in Python I could use to create pdf and also to emmbed actctions within it?
There are several libraries that can create PDF files for different purposes. A couple of examples.
The matplotlib library can generate plots in PDF format.
The Python binding to the cairo graphics library, pycairo. Very good for drawing, but less suited for typesetting.
Reportlab, written in pure Python.
Not really a library, but definitely an option;
For high-quality typesetting, you can use Python to generate (La)TeX source code, which can be converted into PDF with pdftex. This requires that you have a TeX distribution installed though.
One way to embad actions in PDF files is to use javascript. E.g. this TUGboat article describes how to include javascript in PDF files generated with LaTeX.
Note however that not all PDF viewers support this.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Blender has a powerful, fun-to-use, flexible node editor:
Is there a Python library that will allow me to easily create a visual developing environment like this? In Blender, the node editor works with shaders, images, colors and the like, and I'd like to define the types of nodes, sockets and preview widgets myself, as in building a "visual DSL".
Edit: I don't want to create custom nodes within Blender, but use a component LIKE the node editor in my own projects. I removed the Blender tag to avoid confusion.
You can find how to do that in the documentation:
http://wiki.blender.org/index.php/User:Phonybone/Python_Nodes
If you want to use the nodes to build objects and meshes procedurally with it then I recommend you to use and/or fork and and improve this project:
http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Nodes/Sverchok
(These guys are also using the API linked above)
If you have blender specific questions, like this, I also recommend you to ask it on this blender dedicated stack exchange site:
https://blender.stackexchange.com/
EDIT:
As far as I know, there isn't any pre-made node-editor widget or anything similar like that in any UI libraries. However it is quite easy to implement the basic rectangles , input and output ports and the bezier lines to connect them. After the first steps it is only a matter of preference how many hours you put into design and smaller details.
I implemented my own in Python with the builtin tkinter library:
And then later in Pyglet and after that to improve speed I implemented it in pure C with OpenGL wrapped with Cython for Python usage:
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
In my Go language command line application, I need the ability to copy certain snippets of text to the system clipboard using Go. Basically something like PyperClip, but for Go.
I'm looking for a platform agnostic solution! Any help would be great :)
One project (just for Windows and Mac) seems approaching what you want: atotto/clipboard.
Provide copying and pasting to the Clipboard for Go.
func ReadAll() (string, error)
func WriteAll(text string) error
Linux support is in this clipboard_linux.go class: a simple wrapper to xsel --output/input --clipboard system command.
Another approach: try and take advantage of third-party libraries, like GLFW:
a free, Open Source, multi-platform library for opening a window, creating an OpenGL context and managing input
Its Go wrapper glfw3 does provide a clipboard.go file, with supposedly multi-platform methods.
func (w *Window) SetClipboardString(str string)
func (w *Window) GetClipboardString() (string, error)
But that would be in the context of GLFW windows, not any shell window of course.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am going to design a Fingerprint Recognition System that involves recognizing fingerprint from image, feature extraction and matching. I am willing to implement it through C and Python, that library will be written in C and docked to Python as a module. Here are my questions:
Is there any books that you can recommend me in this field (except Handbook of Fingerprint Recognition)?
I need a device that will simply scan the fingerprint and save it as an image which I can use later through my code. But I can't seem to find one. All of them have their own software for matching and don't allow me to bypass it. Are there any known devices for such task or shall I write my own driver for one of them?
Would you recommend OpenCV?
This is clearly computer vision task, so the answer is: yes, OpenCV is good for the task.
The question of fingerprint recognition already was discussed in in OpenCV forum. So you can start from here .
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there some tool that can provide the flow of a python program at a functional level (eg. function A called function B with args1 which in turn called function C with args2). If not, what could be a possible starting point to create it? I thought cProfile might be of some help, but it doesn't give the proper stack trace iirc. Is there a better solution than using pdb and parsing the stack trace and providing the result in a better format?
A very interesting project to visualize the program flow is pythontutor!
There are a number of Python visual debuggers that'll do what you want:
pudb (console visual debugger, open-source)
WinPDB (free, open-source)
PyCharm (shareware, free trial, cross-platform, not open source but probably has the best interface of the three)