feat: add 9 advanced features with performance-optimized implementations#14
Merged
Conversation
github.actor reflects the last pusher, not the PR author. When a human rebases a Dependabot branch, actor changes and the skip no longer matches. Use github.event.pull_request.user.login which always returns the PR author regardless of who pushed.
Add constraint engine, time-series, chaos mode, schema inference, anonymizer, database seeder, OpenAPI parser, streaming emitters, and TUI builder. All modules use __slots__, lazy imports, and zero runtime deps. Includes comprehensive test suite (1870 passed) and benchmarks showing 5-18% schema speedup, 12% faster startup, zero scalar regressions.
e84e965 to
a080f05
Compare
Add 10 example files covering time-series, schema inference, chaos testing, constraints, PII anonymization, database seeding, OpenAPI import, streaming, TUI, and combined real-world scenarios. Update README with documentation for all 9 advanced features, updated benchmarks (343K rows/s schema generation), new ToC entries, installation instructions with optional extras, and examples directory listing.
048cdb4 to
c995c80
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds 9 major new feature modules to dataforge-py, all zero-runtime-dependency, with
__slots__on every class, lazy-loaded imports, and performance-optimized hot paths. Includes comprehensive test coverage (1870 tests pass, 9 skipped for optional TUI dependency).New Feature Modules
Phase 1: Correlated/Conditional Fields (
constraints.py+data/correlations/geo.py)depends_on(geographic),temporal(before/after),correlate(statistical via Cholesky),conditional(value-dependent pools),range, and custom{"field": "address.city", "depends_on": "country"}Phase 2A: Time-Series Generation (
timeseries.py)TimeSeriesSchemawith trend, seasonality (sinusoidal), noise (Gaussian), anomaly injection, spiky patternsPhase 2B: Data Quality/Chaos Mode (
chaos.py)ChaosTransformerwith configurable injection: nulls, type mismatches, boundary values, duplicates, whitespace, encoding chaos, format inconsistency, truncationchaos=parameterPhase 3A: Schema Inference (
inference.py)SchemaInferrer: analyze CSV/DataFrame/database/list-of-dicts to auto-create matching SchemaPhase 3B: Data Anonymization (
anonymizer.py)Phase 4A: Database Seeding (
seeder.py)DatabaseSeederusing SQLAlchemy (optional dep) with table introspectionPhase 4B: OpenAPI/JSON Schema Import (
openapi.py)OpenAPIParserwith$refresolution, type mapping (string+format to provider field)regexify()method inbackend.pyfor pattern-based generationPhase 4C: Streaming to Message Queues (
streaming.py)HttpEmitter(stdlib urllib, zero-dep),KafkaEmitter(optional),RabbitMQEmitter(optional)TokenBucketRateLimiterusingtime.monotonic()schema.generate(count=chunk)for throughputPhase 5: TUI Schema Builder (
tui/)dataforge --tuiIntegration Updates
Performance (vs main branch, same machine)
Test Coverage
Files Changed