deapi 5.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. deapi/__init__.py +33 -0
  2. deapi/buffer_protocols/__init__.py +29 -0
  3. deapi/buffer_protocols/pb_2_3_0.py +666 -0
  4. deapi/buffer_protocols/pb_3_11_4.py +741 -0
  5. deapi/buffer_protocols/pb_3_19_3.py +114 -0
  6. deapi/buffer_protocols/pb_3_23_3.py +41 -0
  7. deapi/buffer_protocols/pb_3_6_1.py +745 -0
  8. deapi/client.py +2159 -0
  9. deapi/conf.py +184 -0
  10. deapi/data_types.py +586 -0
  11. deapi/fake_data/__init__.py +7 -0
  12. deapi/fake_data/base_fake_data.py +113 -0
  13. deapi/fake_data/grains.py +87 -0
  14. deapi/index.rst +10 -0
  15. deapi/prop_dump.json +450 -0
  16. deapi/python_3_instruction.txt +31 -0
  17. deapi/release_notes.txt +34 -0
  18. deapi/simulated_server/__init__.py +0 -0
  19. deapi/simulated_server/fake_server.py +721 -0
  20. deapi/simulated_server/initialize_server.py +66 -0
  21. deapi/tests/__init__.py +0 -0
  22. deapi/tests/conftest.py +95 -0
  23. deapi/tests/original_tests/01_fps.py +102 -0
  24. deapi/tests/original_tests/02_hwRoisize.py +155 -0
  25. deapi/tests/original_tests/03_hwBinning.py +117 -0
  26. deapi/tests/original_tests/04_swBinning.py +141 -0
  27. deapi/tests/original_tests/05_swhwBinning.py +113 -0
  28. deapi/tests/original_tests/06_patternPixel.py +139 -0
  29. deapi/tests/original_tests/07_reference.py +92 -0
  30. deapi/tests/original_tests/08_virtmask.py +114 -0
  31. deapi/tests/original_tests/09_scanRoi.py +104 -0
  32. deapi/tests/original_tests/10_imageStatistics.py +247 -0
  33. deapi/tests/original_tests/__init__.py +0 -0
  34. deapi/tests/original_tests/func.py +76 -0
  35. deapi/tests/original_tests/propertyName.py +725 -0
  36. deapi/tests/original_tests/test_legacy.py +132 -0
  37. deapi/tests/speed_tests/__init__.py +0 -0
  38. deapi/tests/speed_tests/test_internal_file_saving.py +54 -0
  39. deapi/tests/speed_tests/test_movie_buffer_transfer.py +54 -0
  40. deapi/tests/test_client.py +270 -0
  41. deapi/tests/test_fake_server/__init__.py +0 -0
  42. deapi/tests/test_fake_server/test_server.py +35 -0
  43. deapi/tests/test_file_saving/__init__.py +0 -0
  44. deapi/tests/test_file_saving/test_file_loading_libertem.py +49 -0
  45. deapi/tests/test_file_saving/test_file_loading_rsciio.py +53 -0
  46. deapi/tests/test_file_saving/test_scan_pattern_saving.py +68 -0
  47. deapi/version.py +3 -0
  48. deapi-5.2.0.dist-info/METADATA +44 -0
  49. deapi-5.2.0.dist-info/RECORD +52 -0
  50. deapi-5.2.0.dist-info/WHEEL +5 -0
  51. deapi-5.2.0.dist-info/entry_points.txt +2 -0
  52. deapi-5.2.0.dist-info/top_level.txt +1 -0
deapi/__init__.py ADDED
@@ -0,0 +1,33 @@
1
+ from deapi.client import Client
2
+ from deapi.version import version as __version__
3
+
4
+ from deapi.data_types import (
5
+ FrameType,
6
+ PixelFormat,
7
+ DataType,
8
+ MovieBufferStatus,
9
+ MovieBufferInfo,
10
+ VirtualMask,
11
+ ContrastStretchType,
12
+ Attributes,
13
+ Histogram,
14
+ PropertySpec,
15
+ PropertyCollection,
16
+ )
17
+
18
+
19
+ __all__ = [
20
+ "Client",
21
+ "__version__",
22
+ "FrameType",
23
+ "PixelFormat",
24
+ "DataType",
25
+ "MovieBufferStatus",
26
+ "MovieBufferInfo",
27
+ "VirtualMask",
28
+ "ContrastStretchType",
29
+ "Attributes",
30
+ "Histogram",
31
+ "PropertySpec",
32
+ "PropertyCollection",
33
+ ]
@@ -0,0 +1,29 @@
1
+ # Choose the right protocol buffer version based on the python version
2
+
3
+ import sys
4
+
5
+ pyVersion = sys.version.split("(")[0][0:4].split(".")
6
+
7
+
8
+ if int(pyVersion[0]) < 3:
9
+ from cStringIO import (
10
+ StringIO,
11
+ ) # use string io to speed up, refer to http://www.skymind.com/~ocrow/python_string/
12
+ import deapi.buffer_protocols.pb_2_3_0 as pb
13
+ else:
14
+ from io import (
15
+ StringIO,
16
+ ) # use string io to speed up, refer to http://www.skymind.com/~ocrow/python_string/
17
+
18
+ long = int # python 3 no longer has int
19
+ if int(pyVersion[1]) >= 10:
20
+ # import pb_3_19_3 as pb
21
+ import deapi.buffer_protocols.pb_3_23_3 as pb
22
+ elif int(pyVersion[1]) >= 8:
23
+ import deapi.buffer_protocols.pb_3_11_4 as pb
24
+ else:
25
+ import deapi.buffer_protocols.pb_3_6_1 as pb
26
+
27
+ __all__ = [
28
+ "pb",
29
+ ]