This release is a pre-release and may not be stable for production use.
⚡ PyQuery Core: The Engine ⚙️
Pure Logic. Zero Fluff. The Backend of the Data OS.
🧠 The Brain Behind the Operation
PyQuery Core is the headless, high-performance ETL and Analytics engine that powers the PyQuery ecosystem.
Previously hidden inside a generic monorepo, it has now been extracted into its own pure-python library. It handles the heavy lifting: File I/O, Data Transformation, Statistical Analytics, and Machine Learning.
It has no UI. It has no CLI. It is just raw, unadulterated Polars power wrapped in a strict, type-safe architecture.
⚡ Key Features
- 🚀 Lazy-First Architecture: Built on Polars LazyFrames. Nothing executes until you say so.
- 🛡️ Strict Type Safety: Every transform, every parameter, and every I/O operation is validated with Pydantic models. No more stringly-typed chaos.
- 🔌 Universal I/O:
- Readers: CSV, Parquet, Excel, JSON, IPC.
- Healers: Auto-detects encoding issues and "heals" broken CSVs on the fly.
- 🧪 Analytics Module:
- Built-in
scikit-learnintegration for Clustering and Regression. - Automatic "What-If" simulation engines.
- Built-in
- 🔧 Transform Registry: A modular plugin system for registering data transformation steps.
📦 Installation
pip install pyquery-core
💻 Usage (The SDK)
This is a library for builders. Use it to construct your own data pipelines.
1. The Engine
The PyQueryEngine is the orchestrator.
from pyquery_core.core import PyQueryEngine
from pyquery_core.io.files import FileLoader
# Initialize
engine = PyQueryEngine()
# Load Data (Lazy)
df = FileLoader.read_csv("massive_data.csv")
# Register a Pipeline
pipeline = [
{"type": "filter", "params": {"column": "revenue", "operator": ">", "value": 1000}},
{"type": "group_by", "params": {"by": "region", "agg": {"revenue": "sum"}}}
]
# Execute
result = engine.run(df, pipeline)
print(result.collect())
2. Analytics & ML
Run complex statistical analysis without the boilerplate.
from pyquery_core.analytics.ml import ClusterEngine
# Auto-Clustering
model = ClusterEngine(data=df, n_clusters=3)
segments = model.fit_predict()
print(segments)
📂 Architecture
The library is structured for modularity:
| Module | Description |
|---|---|
pyquery_core.io |
Input/Output. Smart loaders for Excel, CSV, Parquet, and SQL. |
pyquery_core.transforms |
Logic. Atomic data manipulation steps (Filter, Sort, Mutate). |
pyquery_core.analytics |
Intelligence. Statistical tests, ML models, and forecasting. |
pyquery_core.recipes |
Orchestration. JSON-serializable pipeline definitions. |
pyquery_core.jobs |
Async Workers. Background task management for long-running ops. |
🤝 Contributing
This is the Core. Code quality here is paramount.
- Fork it.
- Branch it (
git checkout -b feature/fancy-algo). - Test it. (If it breaks the engine, we break your PR).
- Push it.
📜 License
GPL-3.0. Open source forever. 💖
Made with ☕, 🦀 (Rust), and 💖 by Sudharshan TK
Metadata
Release files for pyquery-core 5.0.0b7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyquery_core-5.0.0b7.tar.gz | 109.4 kB | Without provenance | Details for pyquery_core-5.0.0b7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyquery_core-5.0.0b7-py3-none-any.whl | Python 3 | none | any | Details for pyquery_core-5.0.0b7-py3-none-any.whl |
Total release size: 199.4 kB
Release files / pyquery_core-5.0.0b7.tar.gz
| Download URL | pyquery_core-5.0.0b7.tar.gz |
|---|---|
| Size | 109.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb3a8a788cc1859ca7978a752c9d45c7fe0ca5b5b0cf2ef5c362eae226322b06
|
|
BLAKE2b-256 checksum How to use checksums |
68db69ce65ced8ebf05c84d1fe04f02df3761d92b8ed0c5872dfda9cc247e165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.13
|
Release files / pyquery_core-5.0.0b7-py3-none-any.whl
| Download URL | pyquery_core-5.0.0b7-py3-none-any.whl |
|---|---|
| Size | 90.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
516c5794741809decce14bca0c14dcf943d207f572056f2472da5567b62cf733
|
|
BLAKE2b-256 checksum How to use checksums |
65b59a399ec6cdffa00c98548ccfff60bbe0ad9323b29a6eee08c605296c6c7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.13
|
Security for pyquery-core 5.0.0b7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.