async-tiff 0.5.0b2__cp310-cp310-macosx_11_0_arm64.whl → 0.5.0b4__cp310-cp310-macosx_11_0_arm64.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.
async_tiff/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- from . import enums, store
1
+ from . import enums
2
2
  from ._async_tiff import (
3
3
  TIFF,
4
4
  Array,
@@ -17,7 +17,6 @@ __version__: str = ___version()
17
17
 
18
18
  __all__ = [
19
19
  "enums",
20
- "store",
21
20
  "Array",
22
21
  "Colormap",
23
22
  "Decoder",
async_tiff/_ifd.pyi CHANGED
@@ -138,12 +138,11 @@ class ImageFileDirectory:
138
138
  Returns:
139
139
  Tile response.
140
140
  """
141
- async def fetch_tiles(self, x: Sequence[int], y: Sequence[int]) -> list[Tile]:
141
+ async def fetch_tiles(self, xy: Sequence[tuple[int, int]]) -> list[Tile]:
142
142
  """Fetch multiple tiles concurrently.
143
143
 
144
144
  Args:
145
- x: The column indexes within the ifd to read from.
146
- y: The row indexes within the ifd to read from.
145
+ xy: The (column, row) indexes within the ifd to read from.
147
146
 
148
147
  Returns:
149
148
  Tile responses.
async_tiff/_input.py CHANGED
@@ -1,8 +1,11 @@
1
1
  from typing import Protocol
2
2
 
3
- # Fix exports
4
- from obspec._get import GetRangeAsync, GetRangesAsync
3
+ from obspec import GetRangeAsync, GetRangesAsync
5
4
 
6
5
 
7
6
  class ObspecInput(GetRangeAsync, GetRangesAsync, Protocol):
8
- """Supported obspec input to reader."""
7
+ """Supported obspec input to reader.
8
+
9
+ Anything that implements [GetRangeAsync][obspec.GetRangeAsync] and
10
+ [GetRangesAsync][obspec.GetRangesAsync] can be used as an input to the TIFF reader.
11
+ """
async_tiff/_tiff.pyi CHANGED
@@ -63,14 +63,11 @@ class TIFF:
63
63
  Returns:
64
64
  Tile response.
65
65
  """
66
- async def fetch_tiles(
67
- self, x: Sequence[int], y: Sequence[int], z: int
68
- ) -> list[Tile]:
66
+ async def fetch_tiles(self, xy: Sequence[tuple[int, int]], z: int) -> list[Tile]:
69
67
  """Fetch multiple tiles concurrently.
70
68
 
71
69
  Args:
72
- x: The column indexes within the ifd to read from.
73
- y: The row indexes within the ifd to read from.
70
+ xy: The (column, row) indexes within the ifd to read from.
74
71
  z: The IFD index to read from.
75
72
 
76
73
  Returns:
async_tiff/enums.py CHANGED
@@ -20,6 +20,7 @@ class Compression(IntEnum):
20
20
  OldDeflate = 0x80B2
21
21
  PackBits = 0x8005
22
22
  WebP = 50001
23
+ LZMA = 34925
23
24
  JPEG2k = 34712
24
25
  ZSTD = 0xC350
25
26
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: async-tiff
3
- Version: 0.5.0b2
3
+ Version: 0.5.0b4
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -1,18 +1,18 @@
1
- async_tiff/__init__.py,sha256=hFou5CyaCeqAHIpsxyfNv28t15tehoFv7iLbgchVW54,579
1
+ async_tiff/__init__.py,sha256=gdLgfl7BLntXTceX9JdojgOwy_8sH7-YuEuQedBr3o4,559
2
2
  async_tiff/_array.pyi,sha256=muitV2BmObMPBF1O1mgo9a89posx7-ubsl4XftG5WO4,1257
3
- async_tiff/_async_tiff.cpython-310-darwin.so,sha256=9tUUodgJcJojxDr64Fil8FDbS3sxR1hF5sHTgSRwEBg,7857008
3
+ async_tiff/_async_tiff.cpython-310-darwin.so,sha256=dd82Uy38oDZZ4yMURNiWE2NesTq0UgTM-zmtYDyTbqo,7960256
4
4
  async_tiff/_async_tiff.pyi,sha256=I0Z9ey5GYZYfjJB4ZEyPUzHTsw0GcA5KBrAbTiThMc8,410
5
5
  async_tiff/_colormap.pyi,sha256=NrXLqUq3U81bI0zG8OLgQwv_JM0YS-MrVgx-1nD6j3g,402
6
6
  async_tiff/_decoder.pyi,sha256=tRHzZbZj1V6lDireFpNQ-f2h2tPFqh2ExYu4L6v0Cqc,709
7
7
  async_tiff/_decoder_runtime.py,sha256=N2IC7XTgC1TmGmB7ZXCJbrVVSbn6G85cWgJ6k87XpT8,553
8
8
  async_tiff/_geo.pyi,sha256=h71Y9zZ5vYxXaXAR4QAYmBJ0FOhLfXMMJA85p474eTE,3451
9
- async_tiff/_ifd.pyi,sha256=eKH2FAboDE3B5kK2U45j0RsN5MwD3cUeDVF5WTgu0as,4755
10
- async_tiff/_input.py,sha256=f6FCam4uyKaWXy-npUQ-nePaXeOsWMdXt2WcyH5fhq0,203
9
+ async_tiff/_ifd.pyi,sha256=zjU_fENQr8roZMyTFRJpClLzOpHJHHeNhO--iN0XwMA,4698
10
+ async_tiff/_input.py,sha256=CXgxr2kCxmKWQ3Ev3Jud6N5R1Vpl1r4YXpnr7485c8U,349
11
11
  async_tiff/_thread_pool.pyi,sha256=fbDu9kbo8RNlq7bBBxuuu_6ub20L5cAfXBM-J7Y0PC8,181
12
- async_tiff/_tiff.pyi,sha256=8MtZcmOPjr72lo8ohNuSwRi9N8YRZBtcjZwwJxEAO0Q,2249
12
+ async_tiff/_tiff.pyi,sha256=-TSMH4-k6moaDE1zoXPDkzGF1xLfd_1DzYMzAcALVu0,2178
13
13
  async_tiff/_tile.pyi,sha256=NBUciMH6nan6qQLt30p9msUiY4BKh4ZmW4r9CsqtYho,1961
14
- async_tiff/enums.py,sha256=C1XnevNtV_Hp5gTU7pLZRsNAfNx-4nu_f1NpbE1dN0U,1030
14
+ async_tiff/enums.py,sha256=81S3s7eKtCgxuLxuI2pw5K_43S7I3wJ8m7LRpKAzj_I,1047
15
15
  async_tiff/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- async_tiff-0.5.0b2.dist-info/METADATA,sha256=50rXi50a5Ku3aism82VG4fsq0XisM-DsVDykkRdjGWQ,2741
17
- async_tiff-0.5.0b2.dist-info/WHEEL,sha256=lgXxQDOXaD3ZlhS7NozX7pozuWR_5xphTDPgxH3-aMg,105
18
- async_tiff-0.5.0b2.dist-info/RECORD,,
16
+ async_tiff-0.5.0b4.dist-info/METADATA,sha256=HP-ILZqvAvK-1GAhkTTnzw1Qyq17dZfdJ1-lgpYiX8Q,2741
17
+ async_tiff-0.5.0b4.dist-info/WHEEL,sha256=lgXxQDOXaD3ZlhS7NozX7pozuWR_5xphTDPgxH3-aMg,105
18
+ async_tiff-0.5.0b4.dist-info/RECORD,,