pydiverse-common 0.2.1__py3-none-any.whl → 0.3.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.
@@ -20,10 +20,10 @@ from .dtypes import (
20
20
  PandasBackend,
21
21
  String,
22
22
  Time,
23
- Uint8,
24
- Uint16,
25
- Uint32,
26
- Uint64,
23
+ UInt8,
24
+ UInt16,
25
+ UInt32,
26
+ UInt64,
27
27
  )
28
28
 
29
29
  __all__ = [
@@ -44,10 +44,10 @@ __all__ = [
44
44
  "NullType",
45
45
  "String",
46
46
  "Time",
47
- "Uint8",
48
- "Uint16",
49
- "Uint32",
50
- "Uint64",
47
+ "UInt8",
48
+ "UInt16",
49
+ "UInt32",
50
+ "UInt64",
51
51
  "List",
52
52
  "PandasBackend",
53
53
  ]
@@ -102,13 +102,13 @@ class Dtype:
102
102
  raise TypeError
103
103
  if pd.api.types.is_unsigned_integer_dtype(pandas_type):
104
104
  if is_np_dtype(pandas_type, np.uint64):
105
- return Uint64()
105
+ return UInt64()
106
106
  elif is_np_dtype(pandas_type, np.uint32):
107
- return Uint32()
107
+ return UInt32()
108
108
  elif is_np_dtype(pandas_type, np.uint16):
109
- return Uint16()
109
+ return UInt16()
110
110
  elif is_np_dtype(pandas_type, np.uint8):
111
- return Uint8()
111
+ return UInt8()
112
112
  raise TypeError
113
113
  if pd.api.types.is_float_dtype(pandas_type):
114
114
  if is_np_dtype(pandas_type, np.float64):
@@ -143,13 +143,13 @@ class Dtype:
143
143
  raise TypeError
144
144
  if pa.types.is_unsigned_integer(arrow_type):
145
145
  if pa.types.is_uint64(arrow_type):
146
- return Uint64()
146
+ return UInt64()
147
147
  if pa.types.is_uint32(arrow_type):
148
- return Uint32()
148
+ return UInt32()
149
149
  if pa.types.is_uint16(arrow_type):
150
- return Uint16()
150
+ return UInt16()
151
151
  if pa.types.is_uint8(arrow_type):
152
- return Uint8()
152
+ return UInt8()
153
153
  raise TypeError
154
154
  if pa.types.is_floating(arrow_type):
155
155
  if pa.types.is_float64(arrow_type):
@@ -186,10 +186,10 @@ class Dtype:
186
186
  pl.Int32: Int32(),
187
187
  pl.Int16: Int16(),
188
188
  pl.Int8: Int8(),
189
- pl.UInt64: Uint64(),
190
- pl.UInt32: Uint32(),
191
- pl.UInt16: Uint16(),
192
- pl.UInt8: Uint8(),
189
+ pl.UInt64: UInt64(),
190
+ pl.UInt32: UInt32(),
191
+ pl.UInt16: UInt16(),
192
+ pl.UInt8: UInt8(),
193
193
  pl.Float64: Float64(),
194
194
  pl.Float32: Float32(),
195
195
  pl.Decimal: Decimal(),
@@ -212,10 +212,10 @@ class Dtype:
212
212
  Int16(): sqa.SmallInteger(),
213
213
  Int32(): sqa.Integer(),
214
214
  Int64(): sqa.BigInteger(),
215
- Uint8(): sqa.SmallInteger(),
216
- Uint16(): sqa.Integer(),
217
- Uint32(): sqa.BigInteger(),
218
- Uint64(): sqa.BigInteger(),
215
+ UInt8(): sqa.SmallInteger(),
216
+ UInt16(): sqa.Integer(),
217
+ UInt32(): sqa.BigInteger(),
218
+ UInt64(): sqa.BigInteger(),
219
219
  Float(): sqa.Float(53), # we default to 64 bit
220
220
  Float32(): sqa.Float(24),
221
221
  Float64(): sqa.Float(53),
@@ -252,10 +252,10 @@ class Dtype:
252
252
  Int16(): pd.Int16Dtype(),
253
253
  Int32(): pd.Int32Dtype(),
254
254
  Int64(): pd.Int64Dtype(),
255
- Uint8(): pd.UInt8Dtype(),
256
- Uint16(): pd.UInt16Dtype(),
257
- Uint32(): pd.UInt32Dtype(),
258
- Uint64(): pd.UInt64Dtype(),
255
+ UInt8(): pd.UInt8Dtype(),
256
+ UInt16(): pd.UInt16Dtype(),
257
+ UInt32(): pd.UInt32Dtype(),
258
+ UInt64(): pd.UInt64Dtype(),
259
259
  Float(): pd.Float64Dtype(), # we default to 64 bit
260
260
  Float32(): pd.Float32Dtype(),
261
261
  Float64(): pd.Float64Dtype(),
@@ -276,10 +276,10 @@ class Dtype:
276
276
  Int16(): pa.int16(),
277
277
  Int32(): pa.int32(),
278
278
  Int64(): pa.int64(),
279
- Uint8(): pa.uint8(),
280
- Uint16(): pa.uint16(),
281
- Uint32(): pa.uint32(),
282
- Uint64(): pa.uint64(),
279
+ UInt8(): pa.uint8(),
280
+ UInt16(): pa.uint16(),
281
+ UInt32(): pa.uint32(),
282
+ UInt64(): pa.uint64(),
283
283
  Float(): pa.float64(), # we default to 64 bit
284
284
  Float32(): pa.float32(),
285
285
  Float64(): pa.float64(),
@@ -300,10 +300,10 @@ class Dtype:
300
300
  Int32(): pl.Int32,
301
301
  Int16(): pl.Int16,
302
302
  Int8(): pl.Int8,
303
- Uint64(): pl.UInt64,
304
- Uint32(): pl.UInt32,
305
- Uint16(): pl.UInt16,
306
- Uint8(): pl.UInt8,
303
+ UInt64(): pl.UInt64,
304
+ UInt32(): pl.UInt32,
305
+ UInt16(): pl.UInt16,
306
+ UInt8(): pl.UInt8,
307
307
  Float(): pl.Float64, # we default to 64 bit
308
308
  Float64(): pl.Float64,
309
309
  Float32(): pl.Float32,
@@ -351,16 +351,16 @@ class Int16(Int): ...
351
351
  class Int8(Int): ...
352
352
 
353
353
 
354
- class Uint64(Int): ...
354
+ class UInt64(Int): ...
355
355
 
356
356
 
357
- class Uint32(Int): ...
357
+ class UInt32(Int): ...
358
358
 
359
359
 
360
- class Uint16(Int): ...
360
+ class UInt16(Int): ...
361
361
 
362
362
 
363
- class Uint8(Int): ...
363
+ class UInt8(Int): ...
364
364
 
365
365
 
366
366
  class String(Dtype): ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydiverse-common
3
- Version: 0.2.1
3
+ Version: 0.3.0
4
4
  Summary: Common functionality shared between pydiverse libraries
5
5
  Author: QuantCo, Inc.
6
6
  Author-email: Martin Trautmann <windiana@users.sf.net>, Finn Rudolph <finn.rudolph@t-online.de>
@@ -1,5 +1,5 @@
1
- pydiverse/common/__init__.py,sha256=dMbOmWvQjkFv0agRnVGxvShqLzIR3ItAfshmbStoF7M,732
2
- pydiverse/common/dtypes.py,sha256=f29krHaatqDBfxZMBtyvyDS95LVqkeXhhkSCypQasJk,12074
1
+ pydiverse/common/__init__.py,sha256=2t3wnZGY_KITo5lysb-GAgXizeyd_iZvPjEHKnMsYpA,732
2
+ pydiverse/common/dtypes.py,sha256=7qPxKH1yqVSacANi5Kl36DdBTHKSMZI2WkZCiEEejyU,12074
3
3
  pydiverse/common/errors/__init__.py,sha256=FNeEfVbUa23b9sHkFsmxHYhY6sRgjaZysPQmlovpJrI,262
4
4
  pydiverse/common/util/__init__.py,sha256=fGdKZtLaTVBW7NfCpX7rZhKHwUzmBnsuY2akDOnAnjc,315
5
5
  pydiverse/common/util/computation_tracing.py,sha256=HeXRHRUI8vxpzQ27Xcpa0StndSTP63EMT9vj4trPJUY,9697
@@ -9,7 +9,7 @@ pydiverse/common/util/disposable.py,sha256=4XoGz70YRWA9TAqnUBvRCTAdsOGBviFN0gzxU
9
9
  pydiverse/common/util/hashing.py,sha256=6x77BKg-w61u59fuTe9di0BtU-kEKH6UTRcKsRoYJ84,1196
10
10
  pydiverse/common/util/import_.py,sha256=K7dSgz4YyrqEvqhoOzbwgD7D8HScMoO5XoSWtjbaoUs,4056
11
11
  pydiverse/common/util/structlog.py,sha256=g0d8yaXBzAxmGNGZYMnMP9dsSQ__jN44GAY8Mb0ABeI,3487
12
- pydiverse_common-0.2.1.dist-info/METADATA,sha256=Ax5YkSWgxpZ8tHM_pPAlmC-ZD-x3SIlj0P4xyepi76Y,3357
13
- pydiverse_common-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
- pydiverse_common-0.2.1.dist-info/licenses/LICENSE,sha256=AcE6SDVuAq6v9ZLE_8eOCe_NvSE0rAPR3NR7lSowYh4,1517
15
- pydiverse_common-0.2.1.dist-info/RECORD,,
12
+ pydiverse_common-0.3.0.dist-info/METADATA,sha256=5pwbOinMHcsH1Nbhe69cbh0eouevUvFNGt-QlLdl-HU,3357
13
+ pydiverse_common-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
+ pydiverse_common-0.3.0.dist-info/licenses/LICENSE,sha256=AcE6SDVuAq6v9ZLE_8eOCe_NvSE0rAPR3NR7lSowYh4,1517
15
+ pydiverse_common-0.3.0.dist-info/RECORD,,