pydiverse-common 0.2.0__tar.gz → 0.2.1__tar.gz
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.
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/PKG-INFO +1 -1
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/docs/source/changelog.md +3 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/pyproject.toml +2 -1
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/src/pydiverse/common/dtypes.py +8 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/.gitattributes +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/.github/CODEOWNERS +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/.github/dependabot.yml +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/.github/workflows/release.yml +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/.github/workflows/tests.yml +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/.github/workflows/update-lockfiles.yml +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/.gitignore +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/.pre-commit-config.yaml +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/.readthedocs.yaml +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/LICENSE +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/README.md +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/docs/Makefile +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/docs/make.bat +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/docs/package/README.md +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/docs/source/conf.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/docs/source/index.md +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/docs/source/license.md +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/docs/source/reference/api.rst +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/pixi.lock +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/pixi.toml +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/pytest.ini +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/src/pydiverse/common/__init__.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/src/pydiverse/common/errors/__init__.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/src/pydiverse/common/util/__init__.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/src/pydiverse/common/util/computation_tracing.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/src/pydiverse/common/util/deep_map.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/src/pydiverse/common/util/deep_merge.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/src/pydiverse/common/util/disposable.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/src/pydiverse/common/util/hashing.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/src/pydiverse/common/util/import_.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/src/pydiverse/common/util/structlog.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/tests/conftest.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/tests/dtypes/test_dtype_pandas.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/tests/dtypes/test_dtype_polars.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/tests/dtypes/test_dtype_pyarrow.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/tests/dtypes/test_dtype_sqlalchemy.py +0 -0
- {pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/tests/test_util.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pydiverse-common
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.1
|
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,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.2.1 (2025-06-06)
|
4
|
+
- also support to_xxx() for generic Int and Float Dtype classes
|
5
|
+
|
3
6
|
## 0.2.0 (2025-06-06)
|
4
7
|
- moved many utility functions from `pydiverse.pipedag` to `pydiverse.common`;
|
5
8
|
this includes deep_map, ComputationTracer, @disposable, @requires, stable_hash,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "pydiverse-common"
|
3
|
-
version = "0.2.
|
3
|
+
version = "0.2.1"
|
4
4
|
description = "Common functionality shared between pydiverse libraries"
|
5
5
|
authors = [
|
6
6
|
{ name = "QuantCo, Inc." },
|
@@ -32,6 +32,7 @@ packages = ["src/pydiverse"]
|
|
32
32
|
|
33
33
|
[tool.ruff]
|
34
34
|
fix = true
|
35
|
+
target-version = "py310"
|
35
36
|
extend-exclude = ["docs/*"]
|
36
37
|
|
37
38
|
[tool.ruff.lint]
|
@@ -207,6 +207,7 @@ class Dtype:
|
|
207
207
|
import sqlalchemy as sqa
|
208
208
|
|
209
209
|
return {
|
210
|
+
Int(): sqa.BigInteger(), # we default to 64 bit
|
210
211
|
Int8(): sqa.SmallInteger(),
|
211
212
|
Int16(): sqa.SmallInteger(),
|
212
213
|
Int32(): sqa.Integer(),
|
@@ -215,6 +216,7 @@ class Dtype:
|
|
215
216
|
Uint16(): sqa.Integer(),
|
216
217
|
Uint32(): sqa.BigInteger(),
|
217
218
|
Uint64(): sqa.BigInteger(),
|
219
|
+
Float(): sqa.Float(53), # we default to 64 bit
|
218
220
|
Float32(): sqa.Float(24),
|
219
221
|
Float64(): sqa.Float(53),
|
220
222
|
Decimal(): sqa.DECIMAL(),
|
@@ -245,6 +247,7 @@ class Dtype:
|
|
245
247
|
raise TypeError("pandas doesn't have a native time dtype")
|
246
248
|
|
247
249
|
return {
|
250
|
+
Int(): pd.Int64Dtype(), # we default to 64 bit
|
248
251
|
Int8(): pd.Int8Dtype(),
|
249
252
|
Int16(): pd.Int16Dtype(),
|
250
253
|
Int32(): pd.Int32Dtype(),
|
@@ -253,6 +256,7 @@ class Dtype:
|
|
253
256
|
Uint16(): pd.UInt16Dtype(),
|
254
257
|
Uint32(): pd.UInt32Dtype(),
|
255
258
|
Uint64(): pd.UInt64Dtype(),
|
259
|
+
Float(): pd.Float64Dtype(), # we default to 64 bit
|
256
260
|
Float32(): pd.Float32Dtype(),
|
257
261
|
Float64(): pd.Float64Dtype(),
|
258
262
|
Decimal(): pd.Float64Dtype(), # NumericDtype is
|
@@ -267,6 +271,7 @@ class Dtype:
|
|
267
271
|
import pyarrow as pa
|
268
272
|
|
269
273
|
return {
|
274
|
+
Int(): pa.int64(), # we default to 64 bit
|
270
275
|
Int8(): pa.int8(),
|
271
276
|
Int16(): pa.int16(),
|
272
277
|
Int32(): pa.int32(),
|
@@ -275,6 +280,7 @@ class Dtype:
|
|
275
280
|
Uint16(): pa.uint16(),
|
276
281
|
Uint32(): pa.uint32(),
|
277
282
|
Uint64(): pa.uint64(),
|
283
|
+
Float(): pa.float64(), # we default to 64 bit
|
278
284
|
Float32(): pa.float32(),
|
279
285
|
Float64(): pa.float64(),
|
280
286
|
Decimal(): pa.decimal128(35, 10), # Arbitrary precision
|
@@ -289,6 +295,7 @@ class Dtype:
|
|
289
295
|
import polars as pl
|
290
296
|
|
291
297
|
return {
|
298
|
+
Int(): pl.Int64, # we default to 64 bit
|
292
299
|
Int64(): pl.Int64,
|
293
300
|
Int32(): pl.Int32,
|
294
301
|
Int16(): pl.Int16,
|
@@ -297,6 +304,7 @@ class Dtype:
|
|
297
304
|
Uint32(): pl.UInt32,
|
298
305
|
Uint16(): pl.UInt16,
|
299
306
|
Uint8(): pl.UInt8,
|
307
|
+
Float(): pl.Float64, # we default to 64 bit
|
300
308
|
Float64(): pl.Float64,
|
301
309
|
Float32(): pl.Float32,
|
302
310
|
Decimal(): pl.Decimal(scale=10), # Arbitrary precision
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pydiverse_common-0.2.0 → pydiverse_common-0.2.1}/src/pydiverse/common/util/computation_tracing.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|