python-corekit 0.6.0__tar.gz → 0.6.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.
- {python_corekit-0.6.0/python_corekit.egg-info → python_corekit-0.6.1}/PKG-INFO +1 -1
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/connection.py +25 -3
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/operations/statements.py +12 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/pyproject.toml +1 -1
- {python_corekit-0.6.0 → python_corekit-0.6.1/python_corekit.egg-info}/PKG-INFO +1 -1
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_operations.py +8 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_sql.py +26 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/LICENSE +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/README.md +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/api/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/api/application.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/api/handler.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/api/lifespan.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/api/middleware.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/api/responses.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/api/routers.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/concurrency/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/concurrency/decorators.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/concurrency/thread_local.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/concurrency/worker.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/config/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/config/loader.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/config/settings.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/config/sources.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/connectable.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/decorators.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/redis/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/redis/connection.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/registry.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/fields/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/fields/jsonb.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/migration/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/migration/base.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/migration/operations.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/migration/registry.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/migration/table.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/operations/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/operations/base.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/query.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/table.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/crypto/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/crypto/constants.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/crypto/enum.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/crypto/hasher.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/data/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/data/dataset.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/data/expressions/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/data/expressions/comparison.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/data/expressions/expression.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/data/expressions/operator.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/data/expressions/target.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/data/record.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/data/stats.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/decorators/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/decorators/exception_handling.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/decorators/warnings.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/docker/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/docker/client.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/docker/constants.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/docker/disk/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/docker/disk/constants.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/docker/disk/inspector.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/docker/disk/models.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/docker/watchdog.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/etl/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/etl/connection.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/etl/extract/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/etl/extract/extractor.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/etl/extract/schemas.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/etl/load/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/etl/load/loader.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/etl/load/schemas.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/etl/orchestrator.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/etl/schemas.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/etl/transform/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/etl/transform/schemas.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/etl/transform/transformer.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/events/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/events/enum.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/events/frames.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/events/models.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/events/publisher.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/events/reader.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/events/sse.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/events/websocket.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptionator/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptionator/actions.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptionator/asgi.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptionator/constants.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptionator/exceptionator.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptionator/fingerprint.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptionator/guard.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptionator/jobs.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptionator/models.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptions/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptions/base.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptions/custom/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptions/enum.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptions/http/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/exceptions/types.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/files/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/files/base.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/files/disk.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/files/enum.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/files/json.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/files/toml.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/html/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/html/client.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/html/models.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/html/parser.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/html/scraper.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/html/settings.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/html/state.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/http/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/http/api.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/http/client.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/http/exceptions.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/http/exponential_backoff.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/http/response.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/http/status.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/http/stream.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/jobs/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/jobs/registry.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/jobs/runner.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/jobs/task.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/client.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/enum.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/events.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/messages.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/prompts/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/prompts/enum.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/prompts/exceptions.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/prompts/loader.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/prompts/template.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/protocols.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/streaming.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/tools/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/tools/base.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/tools/detection.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/tools/loop.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/tools/registry.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/llm/wire.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/log_monitor/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/log_monitor/constants.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/log_monitor/models.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/log_monitor/service.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/notifications/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/notifications/base.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/notifications/models.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/observability/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/observability/benchmarkable.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/observability/loggable.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/observability/request_context.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/observability/timing/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/observability/timing/constants.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/observability/timing/split.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/observability/timing/timer.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/process/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/process/runner.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/py.typed +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/registry/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/registry/ordered.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/registry/registry.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/schemas/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/schemas/dataclasses/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/schemas/enum.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/schemas/models/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/schemas/models/arbitrary.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/schemas/models/date_models.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/schemas/pydantic/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/schemas/pydantic/fields.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/schemas/size.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/schemas/types.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/schemas/version.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/serialization/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/serialization/enum.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/serialization/pickle_file.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/serialization/serializable.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/serialization/serializer.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/utils/__init__.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/utils/coercion.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/utils/collections.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/utils/ids.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/utils/parsers.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/utils/payload.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/utils/raise_exc.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/utils/text.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/utils/time.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/utils/validators.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/utils/void.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/python_corekit.egg-info/SOURCES.txt +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/python_corekit.egg-info/dependency_links.txt +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/python_corekit.egg-info/requires.txt +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/python_corekit.egg-info/top_level.txt +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/setup.cfg +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/setup.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_api.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_application.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_architecture.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_concurrency.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_config.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_connections.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_data.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_docker.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_etl.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_events.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_exceptionator.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_exceptions.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_expressions.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_expressions_sqlalchemy.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_files.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_html.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_imports.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_imports_are_top_level.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_jobs.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_lifespan.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_llm.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_log_monitor.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_middleware_stack.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_migration.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_notifications.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_observability.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_ordered_registry.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_process.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_redis.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_registry.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_request_context.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_requests.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_schemas_arbitrary.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_schemas_enum.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_schemas_size.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_serialization.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_utils.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_utils_coercion.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_utils_collections.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_utils_ids.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_utils_parsers.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_utils_payload.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_utils_text.py +0 -0
- {python_corekit-0.6.0 → python_corekit-0.6.1}/tests/test_utils_time.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-corekit
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.1
|
|
4
4
|
Summary: Shared foundations for Python projects: logging, benchmarking, registries, FastAPI application and routers, SQL statements and migrations, background tasks, ETL, LLM chat/tool primitives, and HTML scraping
|
|
5
5
|
Author: Steven Jacobsen
|
|
6
6
|
License-Expression: MIT
|
|
@@ -220,14 +220,36 @@ class SQLConnection(Connectable):
|
|
|
220
220
|
# Writes
|
|
221
221
|
# =============
|
|
222
222
|
|
|
223
|
-
def
|
|
223
|
+
def add(self, *items: Any) -> None:
|
|
224
224
|
"""
|
|
225
|
-
|
|
225
|
+
Stage rows in the open transaction. Call commit to keep them.
|
|
226
226
|
"""
|
|
227
227
|
self.require_writable()
|
|
228
228
|
self._start_session()
|
|
229
229
|
self.session.add_all(items)
|
|
230
|
-
|
|
230
|
+
|
|
231
|
+
def flush(self) -> None:
|
|
232
|
+
"""
|
|
233
|
+
Send staged rows to the database without ending the transaction.
|
|
234
|
+
"""
|
|
235
|
+
self.require_writable()
|
|
236
|
+
self._start_session()
|
|
237
|
+
self.session.flush()
|
|
238
|
+
|
|
239
|
+
def commit(self) -> None:
|
|
240
|
+
"""
|
|
241
|
+
Persist the open transaction.
|
|
242
|
+
"""
|
|
243
|
+
self.require_writable()
|
|
244
|
+
if self._session is not None:
|
|
245
|
+
self._session.commit()
|
|
246
|
+
|
|
247
|
+
def insert(self, *items: Any) -> None:
|
|
248
|
+
"""
|
|
249
|
+
Insert new rows.
|
|
250
|
+
"""
|
|
251
|
+
self.add(*items)
|
|
252
|
+
self.commit()
|
|
231
253
|
|
|
232
254
|
def upsert(self, *items: Any) -> None:
|
|
233
255
|
"""
|
{python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/operations/statements.py
RENAMED
|
@@ -28,12 +28,14 @@ class Select(DqlOperation):
|
|
|
28
28
|
Select(table=User).where(Field("age") >= 18)
|
|
29
29
|
|
|
30
30
|
``limit(-1)`` means no cap. ``limit(0)`` returns no rows.
|
|
31
|
+
``for_update`` locks the matching rows until the transaction ends.
|
|
31
32
|
"""
|
|
32
33
|
|
|
33
34
|
order_by_field: Any = None
|
|
34
35
|
order_by_desc: bool = False
|
|
35
36
|
limit_count: int = -1
|
|
36
37
|
offset_count: int = 0
|
|
38
|
+
for_update_lock: bool = False
|
|
37
39
|
|
|
38
40
|
def order_by(self, field: Any, desc: bool = False) -> "Select":
|
|
39
41
|
"""
|
|
@@ -59,6 +61,13 @@ class Select(DqlOperation):
|
|
|
59
61
|
self.offset_count = offset
|
|
60
62
|
return self
|
|
61
63
|
|
|
64
|
+
def for_update(self) -> "Select":
|
|
65
|
+
"""
|
|
66
|
+
Lock the matching rows until the transaction ends.
|
|
67
|
+
"""
|
|
68
|
+
self.for_update_lock = True
|
|
69
|
+
return self
|
|
70
|
+
|
|
62
71
|
def build(self) -> Any:
|
|
63
72
|
"""
|
|
64
73
|
Produce the select statement.
|
|
@@ -77,6 +86,9 @@ class Select(DqlOperation):
|
|
|
77
86
|
if self.limit_count >= 0:
|
|
78
87
|
statement = statement.limit(self.limit_count)
|
|
79
88
|
|
|
89
|
+
if self.for_update_lock:
|
|
90
|
+
statement = statement.with_for_update()
|
|
91
|
+
|
|
80
92
|
return statement
|
|
81
93
|
|
|
82
94
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-corekit"
|
|
7
|
-
version = "0.6.
|
|
7
|
+
version = "0.6.1"
|
|
8
8
|
description = "Shared foundations for Python projects: logging, benchmarking, registries, FastAPI application and routers, SQL statements and migrations, background tasks, ETL, LLM chat/tool primitives, and HTML scraping"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-corekit
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.1
|
|
4
4
|
Summary: Shared foundations for Python projects: logging, benchmarking, registries, FastAPI application and routers, SQL statements and migrations, background tasks, ETL, LLM chat/tool primitives, and HTML scraping
|
|
5
5
|
Author: Steven Jacobsen
|
|
6
6
|
License-Expression: MIT
|
|
@@ -6,6 +6,7 @@ not execute is not evidence of anything.
|
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
8
|
import pytest
|
|
9
|
+
from sqlalchemy.dialects import postgresql
|
|
9
10
|
from sqlmodel import Field as SQLField
|
|
10
11
|
from sqlmodel import Session, SQLModel, create_engine, select
|
|
11
12
|
|
|
@@ -160,6 +161,13 @@ def test_select_offset_skips_rows(session: Session) -> None:
|
|
|
160
161
|
assert [p.name for p in session.exec(statement.build()).all()] == ["Cy"]
|
|
161
162
|
|
|
162
163
|
|
|
164
|
+
def test_for_update_locks_the_selected_rows(session: Session) -> None:
|
|
165
|
+
statement = Select(table=Person).where(Person.name == "Ada").for_update()
|
|
166
|
+
sql = str(statement.build().compile(dialect=postgresql.dialect()))
|
|
167
|
+
assert "FOR UPDATE" in sql
|
|
168
|
+
assert [person.name for person in session.exec(statement.build()).all()] == ["Ada"]
|
|
169
|
+
|
|
170
|
+
|
|
163
171
|
def test_conditions_combine_with_and(session: Session) -> None:
|
|
164
172
|
run(session, Delete(table=Person).where(Field("age") > 15).where(Field("age") < 50))
|
|
165
173
|
assert [name for name, _, _ in rows(session)] == sorted(["Bob", INJECTION])
|
|
@@ -158,6 +158,32 @@ class TestQuery:
|
|
|
158
158
|
db.insert(Person(id="a", age=30))
|
|
159
159
|
assert db.fetch_one_by_query(Query(table=Person).where(Person.age == 30)).id == "a"
|
|
160
160
|
|
|
161
|
+
def test_for_update_returns_the_locked_row(self, db: SQLConnection) -> None:
|
|
162
|
+
db.insert(Person(id="a", age=30))
|
|
163
|
+
row = db.fetch_one_by_query(Query(table=Person).where(Person.id == "a").for_update())
|
|
164
|
+
assert row is not None
|
|
165
|
+
assert row.age == 30
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
class TestTransaction:
|
|
169
|
+
def test_add_is_discarded_by_rollback(self, db: SQLConnection) -> None:
|
|
170
|
+
db.add(Person(id="ada", age=36))
|
|
171
|
+
db.flush()
|
|
172
|
+
assert db.fetch_one_by_id(Person, "ada") is not None
|
|
173
|
+
db.rollback()
|
|
174
|
+
assert db.fetch_one_by_id(Person, "ada") is None
|
|
175
|
+
|
|
176
|
+
def test_commit_keeps_a_staged_row_and_a_change(self, db: SQLConnection) -> None:
|
|
177
|
+
db.add(Person(id="ada", age=36))
|
|
178
|
+
db.commit()
|
|
179
|
+
person = db.fetch_one_by_id(Person, "ada")
|
|
180
|
+
assert person is not None
|
|
181
|
+
person.age = 37
|
|
182
|
+
db.commit()
|
|
183
|
+
db.disconnect()
|
|
184
|
+
db.connect()
|
|
185
|
+
assert db.fetch_one_by_id(Person, "ada").age == 37
|
|
186
|
+
|
|
161
187
|
|
|
162
188
|
class TestPagination:
|
|
163
189
|
def test_page_and_total(self, db: SQLConnection) -> None:
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/migration/operations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_corekit-0.6.0 → python_corekit-0.6.1}/corekit/connections/sql/operations/__init__.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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|