lunarphase-orm 0.1.0__tar.gz → 0.1.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.
Files changed (39) hide show
  1. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/Cargo.lock +1 -1
  2. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/Cargo.toml +1 -1
  3. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/PKG-INFO +2 -1
  4. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/README.md +1 -0
  5. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/__init__.py +3 -1
  6. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/core/model.py +1 -0
  7. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/core/relations.py +1 -0
  8. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/query/builder.py +3 -2
  9. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/pyproject.toml +1 -1
  10. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/.github/workflows/ci.yml +0 -0
  11. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/.github/workflows/pypi-publish.yml +0 -0
  12. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/.gitignore +0 -0
  13. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/BENCHMARK.md +0 -0
  14. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/DOCUMENTATION.md +0 -0
  15. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/LICENSE +0 -0
  16. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/ROADMAP.md +0 -0
  17. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/benchmarks/advanced_scale_benchmark.py +0 -0
  18. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/benchmarks/comprehensive_orm_benchmark.py +0 -0
  19. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/benchmarks/diagnostic_3way_benchmark.py +0 -0
  20. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/cli/main.py +0 -0
  21. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/core/ast.py +0 -0
  22. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/core/fields.py +0 -0
  23. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/core/state.py +0 -0
  24. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/core/uow.py +0 -0
  25. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/db/engine.py +0 -0
  26. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/query/batcher.py +0 -0
  27. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/src/batcher.rs +0 -0
  28. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/src/compiler.rs +0 -0
  29. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/src/lib.rs +0 -0
  30. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/src/migration_diff.rs +0 -0
  31. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/src/state_tracker.rs +0 -0
  32. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_benchmarks.py +0 -0
  33. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_coverage_boost.py +0 -0
  34. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_fase1_core_ast.py +0 -0
  35. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_fase2_async_drivers.py +0 -0
  36. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_fase3_auto_batching_relations.py +0 -0
  37. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_fase4_dirty_tracking_uow.py +0 -0
  38. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_fase5_auto_migrations_cli.py +0 -0
  39. {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_rust_performance.py +0 -0
@@ -43,7 +43,7 @@ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
43
43
 
44
44
  [[package]]
45
45
  name = "lunarphase_rs"
46
- version = "0.1.0"
46
+ version = "0.1.1"
47
47
  dependencies = [
48
48
  "pyo3",
49
49
  "rustc-hash",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "lunarphase_rs"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  edition = "2021"
5
5
  readme = "README.md"
6
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lunarphase-orm
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: Programming Language :: Rust
6
6
  Classifier: Framework :: AsyncIO
@@ -20,6 +20,7 @@ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
20
20
 
21
21
  > **Smart Sync. Zero N+1. High-Performance Python & Rust ORM.**
22
22
 
23
+ [![PyPI version](https://img.shields.io/pypi/v/lunarphase-orm.svg?color=blue&nocache=1)](https://pypi.org/project/lunarphase-orm/)
23
24
  [![Python 3.9+](https://img.shields.io/badge/python-3.9%2B-blue.svg)](https://www.python.org/downloads/)
24
25
  [![Rust Engine](https://img.shields.io/badge/core-Rust%20%2F%20PyO3-orange.svg)](https://www.rust-lang.org/)
25
26
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
@@ -5,6 +5,7 @@
5
5
 
6
6
  > **Smart Sync. Zero N+1. High-Performance Python & Rust ORM.**
7
7
 
8
+ [![PyPI version](https://img.shields.io/pypi/v/lunarphase-orm.svg?color=blue&nocache=1)](https://pypi.org/project/lunarphase-orm/)
8
9
  [![Python 3.9+](https://img.shields.io/badge/python-3.9%2B-blue.svg)](https://www.python.org/downloads/)
9
10
  [![Rust Engine](https://img.shields.io/badge/core-Rust%20%2F%20PyO3-orange.svg)](https://www.rust-lang.org/)
10
11
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
@@ -2,6 +2,8 @@
2
2
  LunarPhaseORM: Smart, Async-Native, High-Performance Python & Rust Object-Relational Mapper
3
3
  """
4
4
 
5
+ from __future__ import annotations
6
+
5
7
  from lunarphase.core.model import Model, ModelBase
6
8
  from lunarphase.core.fields import (
7
9
  FieldDescriptor,
@@ -20,7 +22,7 @@ from lunarphase.query.builder import QueryBuilder
20
22
  from lunarphase.query.batcher import DeferredAutoBatcher
21
23
  from lunarphase.migrations.runner import MigrationRunner
22
24
 
23
- __version__ = "0.1.0"
25
+ __version__ = "0.1.1"
24
26
  __all__ = [
25
27
  "Model",
26
28
  "ModelBase",
@@ -1,3 +1,4 @@
1
+ from __future__ import annotations
1
2
  from typing import Any, Dict, List, Optional, Set, Type, TypeVar
2
3
  from lunarphase.core.fields import FieldDescriptor, PrimaryKeyField
3
4
  from lunarphase.core.state import create_state_tracker
@@ -1,3 +1,4 @@
1
+ from __future__ import annotations
1
2
  from typing import Any, Dict, List, Optional, Type, Union
2
3
  import asyncio
3
4
  from lunarphase.query.batcher import DeferredAutoBatcher
@@ -1,4 +1,5 @@
1
- from typing import Any, List, Optional, Tuple, Type, TypeVar, Dict
1
+ from __future__ import annotations
2
+ from typing import Any, Generic, List, Optional, Tuple, Type, TypeVar, Dict
2
3
  import math
3
4
  from lunarphase.core.ast import BinaryOp, ColumnRef, Literal
4
5
  from lunarphase.db.engine import get_engine
@@ -11,7 +12,7 @@ except ImportError:
11
12
 
12
13
  T = TypeVar("T", bound="Model")
13
14
 
14
- class QueryBuilder:
15
+ class QueryBuilder(Generic[T]):
15
16
  def __init__(self, model_cls: Type[T]):
16
17
  self.model_cls = model_cls
17
18
  self.table_name = getattr(model_cls, "__tablename__", model_cls.__name__.lower())
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "lunarphase-orm"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "Smart, Async-Native, High-Performance Python & Rust Object-Relational Mapper"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
File without changes