jobstreaming 0.0.2__tar.gz → 0.0.4__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 (55) hide show
  1. jobstreaming-0.0.4/CHANGELOG.md +111 -0
  2. jobstreaming-0.0.4/CONTRIBUTING.md +56 -0
  3. jobstreaming-0.0.4/PKG-INFO +718 -0
  4. jobstreaming-0.0.4/README.md +686 -0
  5. jobstreaming-0.0.4/SECURITY.md +38 -0
  6. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/__init__.py +73 -2
  7. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/api.py +79 -37
  8. jobstreaming-0.0.4/jobstreaming/batch.py +29 -0
  9. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/bayt/__init__.py +11 -7
  10. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/bdjobs/__init__.py +14 -11
  11. jobstreaming-0.0.4/jobstreaming/checkpoint.py +741 -0
  12. jobstreaming-0.0.4/jobstreaming/collector.py +131 -0
  13. jobstreaming-0.0.4/jobstreaming/context.py +358 -0
  14. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/events.py +55 -13
  15. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/exception.py +78 -5
  16. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/glassdoor/__init__.py +80 -35
  17. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/glassdoor/constant.py +0 -1
  18. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/google/__init__.py +45 -12
  19. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/indeed/__init__.py +64 -26
  20. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/indeed/constant.py +0 -1
  21. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/linkedin/__init__.py +74 -33
  22. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/linkedin/util.py +2 -2
  23. jobstreaming-0.0.4/jobstreaming/model.py +850 -0
  24. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/naukri/__init__.py +54 -18
  25. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/naukri/constant.py +0 -1
  26. jobstreaming-0.0.4/jobstreaming/outcome.py +194 -0
  27. jobstreaming-0.0.4/jobstreaming/protocols.py +37 -0
  28. jobstreaming-0.0.4/jobstreaming/py.typed +1 -0
  29. jobstreaming-0.0.4/jobstreaming/registry.py +372 -0
  30. jobstreaming-0.0.4/jobstreaming/result.py +102 -0
  31. jobstreaming-0.0.4/jobstreaming/runtime.py +857 -0
  32. jobstreaming-0.0.4/jobstreaming/salary.py +426 -0
  33. jobstreaming-0.0.4/jobstreaming/testing.py +106 -0
  34. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/util.py +39 -87
  35. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/ziprecruiter/__init__.py +75 -21
  36. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/ziprecruiter/constant.py +0 -4
  37. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/ziprecruiter/util.py +5 -4
  38. jobstreaming-0.0.4/pyproject.toml +115 -0
  39. jobstreaming-0.0.2/PKG-INFO +0 -361
  40. jobstreaming-0.0.2/README.md +0 -336
  41. jobstreaming-0.0.2/jobstreaming/checkpoint.py +0 -101
  42. jobstreaming-0.0.2/jobstreaming/model.py +0 -435
  43. jobstreaming-0.0.2/jobstreaming/registry.py +0 -85
  44. jobstreaming-0.0.2/jobstreaming/result.py +0 -108
  45. jobstreaming-0.0.2/jobstreaming/runtime.py +0 -714
  46. jobstreaming-0.0.2/pyproject.toml +0 -62
  47. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/LICENSE +0 -0
  48. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/bdjobs/constant.py +0 -0
  49. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/bdjobs/util.py +0 -0
  50. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/glassdoor/util.py +0 -0
  51. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/google/constant.py +0 -0
  52. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/google/util.py +0 -0
  53. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/indeed/util.py +0 -0
  54. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/linkedin/constant.py +0 -0
  55. {jobstreaming-0.0.2 → jobstreaming-0.0.4}/jobstreaming/naukri/util.py +0 -0
@@ -0,0 +1,111 @@
1
+ # Changelog
2
+
3
+ All notable changes to JobStreaming are documented here. The project follows semantic
4
+ versioning where practical during its `0.0.x` alpha series; adapter compatibility can
5
+ still change when upstream boards drift.
6
+
7
+ ## [0.0.4] - 2026-08-28
8
+
9
+ ### Changed
10
+
11
+ - LinkedIn continuation requests use a measured randomized one-to-two-second delay
12
+ and the provider's observed ten-card page size for offset calculations.
13
+
14
+ ### Fixed
15
+
16
+ - LinkedIn stops after a partial terminal page instead of waiting and issuing an
17
+ empty follow-up request, and skips detail enrichment for stable identities already
18
+ seen during the current or resumed search.
19
+
20
+ ## [0.0.3] - 2026-08-09
21
+
22
+ ### Added
23
+
24
+ - Value-level adapter capability warnings for unsupported job types.
25
+ - Public security, contribution, support, and adapter-configuration guidance.
26
+ - `Retry-After` metadata on retryable terminal error events.
27
+ - Isolated wheel and source-distribution consumer checks in CI and the release
28
+ workflow.
29
+ - Bounded `wait_closed()` lifecycle diagnostics and adapter transport ownership.
30
+ - Transactional `SqliteCheckpointStore` persistence with compare-and-swap revisions
31
+ and incremental seen-key acknowledgements.
32
+ - An `AtomicCheckpointStore` capability for all-or-nothing checkpoint replacement.
33
+ - DataFrame-independent `collect_jobs()` outcomes with sourced jobs, invocation-local
34
+ per-site counters, chronological failures, explicit partial/failed status, and
35
+ aggregate `SearchFailedError` strict mode; cancellation remains distinct.
36
+ - SHA-256 release checksums and GitHub-hosted SLSA build provenance for wheel and
37
+ source distributions.
38
+ - Open, validated custom adapter identifiers plus an `Adapter` protocol and offline
39
+ `AdapterTestKit`.
40
+ - Typed search-filter and resume-capability declarations, a `py.typed` marker, and a
41
+ static type-check gate for the SDK/core runtime surface.
42
+ - A `batch` extra and typed `MissingOptionalDependencyError` for the optional
43
+ DataFrame compatibility API.
44
+ - Explicit conservative description-salary inference with multilingual interval and
45
+ currency parsing plus typed provenance and confidence metadata.
46
+ - Immutable, normalized `ProviderProgress` payloads with typed phases/units,
47
+ cumulative provider counts, explicit unknown totals, and tri-state continuation.
48
+
49
+ ### Changed
50
+
51
+ - Cancellation callbacks are latched after their first `True` result.
52
+ - Adapter detail transports are page-scoped, and repeated stream closure cannot
53
+ retroactively acknowledge an event.
54
+ - Public retry counts are now owned solely by the stream coordinator, with bounded
55
+ `Retry-After` handling.
56
+ - Naukri and Glassdoor `max_pages` limits count fetched pages independently of the
57
+ starting offset.
58
+ - Google continuation failures retain cursor context and can request a checkpoint
59
+ reset when the board reports an expired cursor.
60
+ - TLS-client adapters now reject custom CA-file configuration instead of silently
61
+ ignoring it.
62
+ - Indeed, Naukri, ZipRecruiter, and Glassdoor no longer use package-embedded shared
63
+ credentials or fallback tokens.
64
+ - Runtime adapter calls no longer inspect `scrape` signatures; legacy signatures are
65
+ isolated behind a deprecated registration bridge.
66
+ - Pandas is no longer installed or imported by the default streaming package;
67
+ `jobstreaming[batch]` preserves the existing `scrape_jobs` DataFrame behavior.
68
+ - Description salary extraction is now off by default instead of implicitly applying
69
+ a USD numeric-threshold heuristic; opt in with
70
+ `description_salary_policy="conservative"`.
71
+ - Structured board compensation always takes precedence over description inference,
72
+ and batch rows expose flattened salary provenance fields.
73
+ - PyPI releases use a separated, least-privilege Trusted Publishing job with
74
+ attestations enabled.
75
+ - `ProgressEvent` now exposes client-safe provider progress while keeping opaque
76
+ cursors and adapter resume state private; acknowledging the event still commits the
77
+ same durable restart boundary.
78
+ - Static SDK and core-runtime checks now use pinned Pyrefly instead of mypy, and the
79
+ `AdapterFactory` protocol reflects that class-level capability declarations are
80
+ optional until the first adapter instance is validated.
81
+
82
+ ### Fixed
83
+
84
+ - SQLite replacement now rolls back to the previous checkpoint when reseeding fails,
85
+ advances the revision to fence stale owners, rejects future schemas before creating
86
+ current tables, and closes connections when setup fails. Checkpoint generations
87
+ fence owners across an explicit clear and same-request reseed; version-1 SQLite and
88
+ legacy serialized checkpoints without the field use a stable legacy generation.
89
+ - ZipRecruiter rounds partial-day age filters up and preserves an explicit zero-mile
90
+ radius.
91
+ - Unsupported Indeed and LinkedIn job-type values are omitted rather than raised or
92
+ sent as empty parameters.
93
+ - Legacy adapter bridges preserve registration cursor versions and non-resume
94
+ capability declarations, and forward lifecycle cleanup to wrapped adapters.
95
+ - Custom adapter identifiers round-trip through SQLite checkpoints and typed outcome
96
+ summaries without being narrowed to built-in sites.
97
+ - Resume granularities retain legacy/custom values through a normalized, open value
98
+ object.
99
+ - Adapter factories and instances fail with typed contract errors when identifiers,
100
+ capabilities, or scrape callables are malformed.
101
+ - Public protocol annotations remain resolvable from installed distributions.
102
+
103
+ ## [0.0.2] - 2026-07-17
104
+
105
+ - Hardened acknowledgement, checkpoint, cancellation, adapter error, and compatibility
106
+ contracts.
107
+ - Added Python 3.10 through 3.14 CI coverage and pinned release automation.
108
+
109
+ [0.0.4]: https://github.com/ebarti/jobstreaming/compare/v0.0.3...v0.0.4
110
+ [0.0.3]: https://github.com/ebarti/jobstreaming/compare/v0.0.2...v0.0.3
111
+ [0.0.2]: https://github.com/ebarti/jobstreaming/releases/tag/v0.0.2
@@ -0,0 +1,56 @@
1
+ # Contributing to JobStreaming
2
+
3
+ Thanks for helping improve JobStreaming. This is an alpha integration library, so
4
+ small, well-tested changes that preserve public contracts are especially valuable.
5
+
6
+ ## Development setup
7
+
8
+ Install Python 3.10 or newer and Poetry 2.4.1, then run:
9
+
10
+ ```bash
11
+ poetry install --all-extras
12
+ poetry check --lock
13
+ poetry run pytest --cov
14
+ poetry run python scripts/check_coverage.py
15
+ poetry run ruff check jobstreaming tests scripts
16
+ poetry run pyrefly check
17
+ poetry run black --check jobstreaming tests scripts
18
+ poetry build
19
+ python scripts/verify_release_artifacts.py \
20
+ --expected-version "$(poetry version --short)" \
21
+ --dist-dir dist
22
+ ```
23
+
24
+ The continuous-integration matrix runs on Python 3.10 through 3.14.
25
+
26
+ ## Change guidelines
27
+
28
+ - Add a focused regression test for every behavior change.
29
+ - Keep tests offline and deterministic. Use representative fixtures or fake sessions;
30
+ do not call live job boards from the test suite.
31
+ - Never commit API keys, authorization headers, session tokens, cookies, personal
32
+ data, or captures that may contain them.
33
+ - Treat board responses as untrusted and tolerate malformed individual listings where
34
+ the adapter can safely continue.
35
+ - Preserve typed errors, cancellation, acknowledgement, and checkpoint semantics.
36
+ - Declare both filter names and supported filter values accurately. If an adapter
37
+ cannot honor a value, warn and omit it instead of silently sending a misleading
38
+ parameter.
39
+ - Increment an adapter's `cursor_schema_version` only when its prior saved state can no
40
+ longer be interpreted safely.
41
+ - Keep third-party GitHub Actions pinned to immutable commit SHAs.
42
+
43
+ ## Pull requests
44
+
45
+ Explain the user-visible outcome, the board or runtime contract affected, and the
46
+ verification you ran. Keep unrelated refactors out of the change. Update
47
+ `CHANGELOG.md` and public documentation when behavior, configuration, or compatibility
48
+ changes.
49
+
50
+ Use [GitHub issues](https://github.com/ebarti/jobstreaming/issues) for non-sensitive
51
+ bugs and support questions. Follow [SECURITY.md](SECURITY.md) for vulnerabilities.
52
+ Maintainers should follow [RELEASING.md](RELEASING.md) for the tag, provenance, and
53
+ post-publication verification contract.
54
+
55
+ By contributing, you agree that your contribution is provided under the repository's
56
+ MIT license.