pdatum 0.1.0__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.
- pdatum-0.1.0/LICENSE +21 -0
- pdatum-0.1.0/PKG-INFO +89 -0
- pdatum-0.1.0/README.md +67 -0
- pdatum-0.1.0/pdatum/__init__.py +3 -0
- pdatum-0.1.0/pdatum/__main__.py +3 -0
- pdatum-0.1.0/pdatum/cli.py +521 -0
- pdatum-0.1.0/pdatum/client.py +113 -0
- pdatum-0.1.0/pdatum/config.py +107 -0
- pdatum-0.1.0/pdatum/output.py +79 -0
- pdatum-0.1.0/pdatum/timespec.py +48 -0
- pdatum-0.1.0/pdatum.egg-info/PKG-INFO +89 -0
- pdatum-0.1.0/pdatum.egg-info/SOURCES.txt +17 -0
- pdatum-0.1.0/pdatum.egg-info/dependency_links.txt +1 -0
- pdatum-0.1.0/pdatum.egg-info/entry_points.txt +2 -0
- pdatum-0.1.0/pdatum.egg-info/requires.txt +3 -0
- pdatum-0.1.0/pdatum.egg-info/top_level.txt +1 -0
- pdatum-0.1.0/pyproject.toml +37 -0
- pdatum-0.1.0/setup.cfg +4 -0
- pdatum-0.1.0/tests/test_pdatum.py +326 -0
pdatum-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Pearachute
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
pdatum-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pdatum
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Job postings and the employers behind them, from the command line -- for scripts and AI agents.
|
|
5
|
+
Author-email: Pearachute <pdatum@pearachute.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://pdatum.pearachute.com
|
|
8
|
+
Project-URL: Documentation, https://pdatum.pearachute.com/api/v1/docs
|
|
9
|
+
Project-URL: Repository, https://github.com/japherwocky/pdatum
|
|
10
|
+
Project-URL: Issues, https://github.com/japherwocky/pdatum/issues
|
|
11
|
+
Keywords: jobs,job-postings,employers,data,api,cli,ai-agents
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Requires-Python: >=3.9
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
License-File: LICENSE
|
|
18
|
+
Requires-Dist: requests>=2.31.0
|
|
19
|
+
Requires-Dist: typer>=0.9.0
|
|
20
|
+
Requires-Dist: rich>=13.0.0
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# pdatum
|
|
24
|
+
|
|
25
|
+
Job postings, and the employers behind them, from the command line. Built for
|
|
26
|
+
scripts and AI agents: everything prints JSON on request, errors go to
|
|
27
|
+
stderr, and large pulls stream JSON lines.
|
|
28
|
+
|
|
29
|
+
pdatum is the data jobwolverine.com and rxraven.com are built on.
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install pdatum
|
|
33
|
+
export PDATUM_API_KEY=pdatum_... # keys are issued by hand for now
|
|
34
|
+
|
|
35
|
+
pdatum jobs count --q "data engineer" --posted-since 30d
|
|
36
|
+
pdatum jobs search --q nurse --remote
|
|
37
|
+
pdatum jobs pull --brand rxraven > jobs.jsonl
|
|
38
|
+
pdatum employers get pfizer --json
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Commands
|
|
42
|
+
|
|
43
|
+
| Command | |
|
|
44
|
+
|---|---|
|
|
45
|
+
| `pdatum jobs count [filters]` | Returns how many open jobs match, and nothing else. It's cheap, so run it first. |
|
|
46
|
+
| `pdatum jobs search [filters] [-n N]` | Shows the newest matches: one page. |
|
|
47
|
+
| `pdatum jobs pull [filters] [--full] [--max N]` | Streams every match to stdout as JSON lines. Progress goes to stderr. |
|
|
48
|
+
| `pdatum jobs get ID` | Returns one job, open or closed, with its full text. |
|
|
49
|
+
| `pdatum jobs changes --since T` | Streams every job added, closed or reopened since `T`. |
|
|
50
|
+
| `pdatum employers list / pull / get SLUG` | Employer records. Each fact names its source. |
|
|
51
|
+
| `pdatum me` | Shows your key, its scopes, and what it has used. |
|
|
52
|
+
| `pdatum skill` | Prints short instructions for an AI agent to save. |
|
|
53
|
+
| `pdatum guide` | Prints the full API reference, from the server. |
|
|
54
|
+
|
|
55
|
+
The job filters are `--brand`, `--employer`, `-q`, `--location`,
|
|
56
|
+
`--remote/--not-remote`, `--posted-since` and `--posted-before`. A time can be
|
|
57
|
+
`2026-09-01`, an age like `7d`, `12h` or `30m`, or epoch seconds.
|
|
58
|
+
|
|
59
|
+
## Keeping a copy in sync
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
pdatum jobs pull > jobs.jsonl # once
|
|
63
|
+
pdatum jobs changes --since 2026-09-01 > delta.jsonl
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Upsert each line of `delta.jsonl` by `id`. A line with `"open": false` means
|
|
67
|
+
that job has closed. The last line on stderr gives the `--since` to use next
|
|
68
|
+
time. A change can arrive twice, but never not at all.
|
|
69
|
+
|
|
70
|
+
## Keys and configuration
|
|
71
|
+
|
|
72
|
+
The key is taken from `--api-key`, then `PDATUM_API_KEY`, then the config
|
|
73
|
+
file, which `pdatum key save <key>` writes after checking the key with the
|
|
74
|
+
server. The config file is `~/.pdatum.json`; `PDATUM_CONFIG_PATH` moves it.
|
|
75
|
+
`PDATUM_URL` or `pdatum config --url` points the CLI at another server.
|
|
76
|
+
|
|
77
|
+
Every command takes `--json`, or set `PDATUM_OUTPUT=json`. Errors go to
|
|
78
|
+
stderr, and the exit code is non-zero: 1 for a failure, 2 for a usage error.
|
|
79
|
+
|
|
80
|
+
## Development
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
pip install -e .
|
|
84
|
+
python -m unittest discover -s tests
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The tests never reach a server. The API this talks to is documented at
|
|
88
|
+
https://pdatum.pearachute.com/api/v1/docs, and `pdatum guide` prints the same
|
|
89
|
+
reference from whichever server you point it at. MIT licensed.
|
pdatum-0.1.0/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# pdatum
|
|
2
|
+
|
|
3
|
+
Job postings, and the employers behind them, from the command line. Built for
|
|
4
|
+
scripts and AI agents: everything prints JSON on request, errors go to
|
|
5
|
+
stderr, and large pulls stream JSON lines.
|
|
6
|
+
|
|
7
|
+
pdatum is the data jobwolverine.com and rxraven.com are built on.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install pdatum
|
|
11
|
+
export PDATUM_API_KEY=pdatum_... # keys are issued by hand for now
|
|
12
|
+
|
|
13
|
+
pdatum jobs count --q "data engineer" --posted-since 30d
|
|
14
|
+
pdatum jobs search --q nurse --remote
|
|
15
|
+
pdatum jobs pull --brand rxraven > jobs.jsonl
|
|
16
|
+
pdatum employers get pfizer --json
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Commands
|
|
20
|
+
|
|
21
|
+
| Command | |
|
|
22
|
+
|---|---|
|
|
23
|
+
| `pdatum jobs count [filters]` | Returns how many open jobs match, and nothing else. It's cheap, so run it first. |
|
|
24
|
+
| `pdatum jobs search [filters] [-n N]` | Shows the newest matches: one page. |
|
|
25
|
+
| `pdatum jobs pull [filters] [--full] [--max N]` | Streams every match to stdout as JSON lines. Progress goes to stderr. |
|
|
26
|
+
| `pdatum jobs get ID` | Returns one job, open or closed, with its full text. |
|
|
27
|
+
| `pdatum jobs changes --since T` | Streams every job added, closed or reopened since `T`. |
|
|
28
|
+
| `pdatum employers list / pull / get SLUG` | Employer records. Each fact names its source. |
|
|
29
|
+
| `pdatum me` | Shows your key, its scopes, and what it has used. |
|
|
30
|
+
| `pdatum skill` | Prints short instructions for an AI agent to save. |
|
|
31
|
+
| `pdatum guide` | Prints the full API reference, from the server. |
|
|
32
|
+
|
|
33
|
+
The job filters are `--brand`, `--employer`, `-q`, `--location`,
|
|
34
|
+
`--remote/--not-remote`, `--posted-since` and `--posted-before`. A time can be
|
|
35
|
+
`2026-09-01`, an age like `7d`, `12h` or `30m`, or epoch seconds.
|
|
36
|
+
|
|
37
|
+
## Keeping a copy in sync
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pdatum jobs pull > jobs.jsonl # once
|
|
41
|
+
pdatum jobs changes --since 2026-09-01 > delta.jsonl
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Upsert each line of `delta.jsonl` by `id`. A line with `"open": false` means
|
|
45
|
+
that job has closed. The last line on stderr gives the `--since` to use next
|
|
46
|
+
time. A change can arrive twice, but never not at all.
|
|
47
|
+
|
|
48
|
+
## Keys and configuration
|
|
49
|
+
|
|
50
|
+
The key is taken from `--api-key`, then `PDATUM_API_KEY`, then the config
|
|
51
|
+
file, which `pdatum key save <key>` writes after checking the key with the
|
|
52
|
+
server. The config file is `~/.pdatum.json`; `PDATUM_CONFIG_PATH` moves it.
|
|
53
|
+
`PDATUM_URL` or `pdatum config --url` points the CLI at another server.
|
|
54
|
+
|
|
55
|
+
Every command takes `--json`, or set `PDATUM_OUTPUT=json`. Errors go to
|
|
56
|
+
stderr, and the exit code is non-zero: 1 for a failure, 2 for a usage error.
|
|
57
|
+
|
|
58
|
+
## Development
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
pip install -e .
|
|
62
|
+
python -m unittest discover -s tests
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
The tests never reach a server. The API this talks to is documented at
|
|
66
|
+
https://pdatum.pearachute.com/api/v1/docs, and `pdatum guide` prints the same
|
|
67
|
+
reference from whichever server you point it at. MIT licensed.
|