hired.taxonomy.sources#
Fetch the ESCO and O*NET taxonomies into SkillNode / Occupation.
Network access is a seam: get_json(url, params) -> dict for the ESCO API and
get_bytes(url) -> bytes for the O*NET archive, defaulting to requests
(a core dependency) with timeouts and retries. Every page or archive fetched is
written to a cache mapping first, so an interrupted build resumes where it
stopped (the ESCO occupation pages are slow — tens of seconds each).
ESCO (
fetch_esco()): all skills (labels, alternative labels, skill type → KSAO kind, reuse level) and all occupations with their essential and optional skills, paged through the public search API (no key needed).O*NET (
fetch_onet()): the text database archive. Technology examples (Technology Skills.txt; hot technologies essential, others optional) and the Skills / Knowledge / Abilities descriptors an occupation rates at or abovemin_importanceon the importance scale.
Functions
|
An |
|
A |
|
All ESCO skills and occupations (with their skill links). |
|
O*NET technology and K/S/A nodes, and occupations (downloads ~13 MB once). |
|
Stable node id for an O*NET technology example ( |
|
Nodes and occupations from the bytes of an O*NET text-database archive. |
|
Default O*NET fetcher: the archive's bytes, with retries. |
|
Default ESCO fetcher: |
- hired.taxonomy.sources.esco_occupation(record, *, language='en')[source]#
An
Occupationfrom one ESCO search result (full or brief).- Return type:
- hired.taxonomy.sources.esco_skill_node(record, *, language='en')[source]#
A
SkillNodefrom one ESCO search result (full or brief).- Return type:
- hired.taxonomy.sources.fetch_esco(*, get_json=None, cache=None, page_size=100, language='en', progress=None)[source]#
All ESCO skills and occupations (with their skill links).
Occupation↔skill links are the union of both sides — an occupation’s
hasEssential/OptionalSkilland a skill’sisEssential/OptionalForOccupation— so a record that only came back in brief form still gets its links.- Return type:
tuple[list[SkillNode],list[Occupation]]
- hired.taxonomy.sources.fetch_onet(*, get_bytes=None, cache=None, version='30_0', min_importance=3.5, progress=None)[source]#
O*NET technology and K/S/A nodes, and occupations (downloads ~13 MB once).
- Return type:
tuple[list[SkillNode],list[Occupation]]
- hired.taxonomy.sources.onet_tech_id(example)[source]#
Stable node id for an O*NET technology example (
C++→onet:tech:c++).- Return type:
- hired.taxonomy.sources.parse_onet_archive(data, *, min_importance=3.5)[source]#
Nodes and occupations from the bytes of an O*NET text-database archive.
- Return type:
tuple[list[SkillNode],list[Occupation]]