Common Utilities
Operation Battleship is spread among several different repositories. We've got the data pipeline and also the microservices deployed to Digital Ocean that provide the job recomendations for the job applicants. In order to follow basic engineering practices and support modular code, we have split out some of the common and shared classes into their own repo.
Files and Classes
Here's a quick list of the files that are in the Common Utilities and a short description for each file.
-
ApifyJobsCaller.py This file is the one that interacts directly with the Apify SDK. No other instances of the Apify dependency should exist outside this Python class
-
CandidateRequirementsDao.py This Python script is a data access object (DAO) for managing candidate requirements data in a PostgreSQL database. It includes a method for inserting multiple records from a DataFrame into the Candidate_Requirements table in the database. The script uses environment variables for database connection parameters, ensuring secure handling of sensitive data.
-
CompanyDao.py This Python script is a data access object (DAO) for managing company data in a PostgreSQL database. It includes methods for checking if a company exists in the database, retrieving a company’s UUID by its LinkedIn URL, and inserting new company data from a DataFrame into the Companies table.
-
FailureLogger.py This Python script is designed to handle and log instances where a Language Learning Model (LLM) fails to generate a well-formed JSON response. It saves the LLM response and the associated job title to disk for later analysis, aiding in the identification of potential issues with job postings.
-
GenaricDatabaseDao.py This script is intended to be the only class that actually calls the PostGres DB. All other DAO Classes will reference this Class.
-
GeographyHelper.py This Python script, GeographyHelper, is designed to parse and extract city and state information from a given string. It uses regular expressions to match patterns and returns the results as a DataFrame, making it useful for processing and standardizing geographical data.
-
JobKeyWordsDao.py This Python script defines a class JobKeyWordsDao that connects to a PostgreSQL database and inserts job keywords from a pandas DataFrame into the ‘Job_Keywords’ table. It uses environment variables for secure database access and includes logging for execution tracking.
-
JobPostingDao.py
-
JobTitleCategoryClassifier.py
-
OpenAICaller.py
Metadata
Release files for OperationBattleshipCommonUtilities 0.4.17
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 |
|---|---|---|---|---|
| OperationBattleshipCommonUtilities-0.4.17.tar.gz | 17.6 kB | Without provenance | Details for OperationBattleshipCommonUtilities-0.4.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| OperationBattleshipCommonUtilities-0.4.17-py3-none-any.whl | Python 3 | none | any | Details for OperationBattleshipCommonUtilities-0.4.17-py3-none-any.whl |
Total release size: 46.5 kB
Release files / OperationBattleshipCommonUtilities-0.4.17.tar.gz
| Download URL | OperationBattleshipCommonUtilities-0.4.17.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63e2473b22219de38e092f0c42f85911c8657c1805cf15dcd6baccf915b4dc74
|
|
BLAKE2b-256 checksum How to use checksums |
3015350cc400282d77d25e75d219513c9cdff6a95e7cf8ac766029a6631baf9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / OperationBattleshipCommonUtilities-0.4.17-py3-none-any.whl
| Download URL | OperationBattleshipCommonUtilities-0.4.17-py3-none-any.whl |
|---|---|
| Size | 28.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5bb53064201716ed2c1eafaecb64b54995facb1a4ded420af84b0da31d4c9468
|
|
BLAKE2b-256 checksum How to use checksums |
bb476e124491092ae6e7d4faea57b14d3a43a1145b43db20d014dc7c55a3ee15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Security for OperationBattleshipCommonUtilities 0.4.17
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.