Skip to content

Commit 71edab2

Browse files
author
BoboTiG
committed
Huge change: split the module into several files
1 parent 519af6b commit 71edab2

24 files changed

Lines changed: 937 additions & 847 deletions

.coafile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pylint_disable = locally-disabled[Default]
22
bears = LineLengthBear, SpaceConsistencyBear, PEP8Bear, PyImportSortBear, PyLintBear, PyUnusedCodeBear
3-
files = mss.py
3+
files = mss/*.py
44
use_spaces = yeah
55

66
pylint_disable = locally-disabled

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
build/
22
dist/
3-
MANIFEST*
3+
MANIFEST
44
*.orig
55
*.png
66
*.png.old

MANIFEST.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include *.rst
2+
recursive-include mss *
3+
include doc/*
4+
5+
exclude mss/*.pyc
6+
prune mss/__pycache__
7+
prune test*

README.rst

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
***********************************************************************************
2-
A very fast cross-platform multiple screenshots module in pure python using ctypes
3-
***********************************************************************************
1+
************************************************************************************
2+
An ultra fast cross-platform multiple screenshots module in pure python using ctypes
3+
************************************************************************************
44

55
Very basic, it will grab one screen shot by monitor or a screen shot of all monitors and save it to a PNG file, Python 2.6/3.5 compatible & PEP8 compliant.
66
It could be easily embedded into games and other softwares which require fast and plateforme optimized methods to grab screenshots.
@@ -10,6 +10,25 @@ MSS stands for Multiple ScreenShots.
1010
It's under zlib licence.
1111

1212

13+
API change
14+
==========
15+
16+
**Warning**: from the version 2.0.0 for specific system import, now you do as::
17+
18+
# MacOS X
19+
from mss.darwin import MSSMac as mss
20+
21+
# GNU/Linux
22+
from mss.linux import MSSLinux as mss
23+
24+
# Microsoft Windows
25+
from mss.windows import MSSWindows as mss
26+
27+
The second change is the split into several files. Each OS implementation is into a `platform.system()`.py. For GNU/Linux, you will find the `MSSLinux` class into the file "mss/linux.py".
28+
29+
This make life easier for contributors and reviewers.
30+
31+
1332
Installation
1433
============
1534

@@ -23,13 +42,13 @@ Support
2342
========= ========= ======== =======
2443
Python GNU/linux MacOS X Windows
2544
========= ========= ======== =======
26-
3.5.0a3 True True True
27-
**3.4.3** **True** **True** **True**
45+
**3.5.1** **True** **True** **True**
46+
3.4.3 True True True
2847
3.3.6 True True True
2948
3.2.6 True True True
3049
3.1.5 True True True
3150
3.0.1 True True True
32-
**2.7.9** **True** **True** **True**
51+
**2.7.11** **True** **True** **True**
3352
2.6.9 True True True
3453
========= ========= ======== =======
3554

@@ -43,7 +62,7 @@ Testing
4362

4463
You can try the MSS module directly from the console::
4564

46-
python mss.py
65+
python tests.py
4766

4867

4968
Instance the good class
@@ -56,7 +75,9 @@ So MSS can be used as simply as::
5675

5776
Or import the good one::
5877

59-
from mss import MSSLinux as mss
78+
# from mss.darwin import MSSMac as mss
79+
# from mss.windows import MSSWindows as mss
80+
from mss.linux import MSSLinux as mss
6081
screenshotter = mss()
6182

6283

dep/linux/32/libmss.so

-4.48 KB
Binary file not shown.

dep/linux/64/libmss.so

-6.2 KB
Binary file not shown.

dep/linux/Makefile

Lines changed: 0 additions & 10 deletions
This file was deleted.

doc/CONTRIBUTORS

Whitespace-only changes.

doc/QUALITY

Lines changed: 0 additions & 17 deletions
This file was deleted.

doc/TESTING

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ You have another version to add or a patch to support a new one? Let us know, op
33

44
Python:
55
2.6.9
6-
2.7.9
6+
2.7.11
77
3.0.1
88
3.1.5
99
3.2.6
1010
3.3.6
1111
3.4.3
12-
3.5.0a3
12+
3.5.1
1313

1414

1515
---

0 commit comments

Comments
 (0)