Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement pure Python/ctypes solution #4

Closed
techtonik opened this issue Apr 9, 2012 · 7 comments
Closed

implement pure Python/ctypes solution #4

techtonik opened this issue Apr 9, 2012 · 7 comments

Comments

@techtonik
Copy link

Maybe not for all platoforms, but having a single script without dependencies would be awesome.

@ponty
Copy link
Owner

ponty commented Apr 10, 2012

Pyscreenshot is a pure Python library. Why do you need a single script? Is it not possible for you to use a library?
I can add a script which calls the library if it helps.

@techtonik
Copy link
Author

From the description I understand that pyscreenshot requires at least one binary library to make screens. Pure Python/ctypes means ability to take screens with no 3rd party extensions.

@ponty
Copy link
Owner

ponty commented Apr 10, 2012

I use "pure Python" for not having C extension module in the library.
This is the same how the Python documentation use it (http://docs.python.org/distutils/builtdist.html):
"pure module distribution (only containing pure Python modules and packages),"
"non-pure distributions, which include extensions that would need to be compiled"

Pyscreenshot is not accessing any C library directly so ctypes can not be used for current back-ends. It is of course possible to create new back-ends using ctypes, but I don't know how. Check the "plugins" directory for examples.

@ponty
Copy link
Owner

ponty commented Apr 10, 2012

@techtonik
Copy link
Author

Ok. The bug report is - pyscreenshot doesn't work standalone without 3rd party libraries.

Nice page, though - you should consider including PySide there.

@ponty
Copy link
Owner

ponty commented Apr 10, 2012

I don't know such solution.
That's why pyscreenshot was created.
The strategy is here: pyscreenshot has a lot of back-ends, if at least one exists then it works.

@techtonik
Copy link
Author

All backends are user level programs, so a backendless solutions is theoretically possible. The corresponding C code from backend with compatible license can be ported to Python.

@ponty ponty closed this as completed Jun 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants