Skip to main content

A Python client library and CLI for the I9 Everywhere API

Project description

I9Everywhere API Python library and CLI

Python client library and CLI for the I9Everywhere API V4.

This is a Python client library and CLI that interacts with the I9EverywhereClient API to add and retrieve customer data.

Requirements

  • Python 3.6 or higher
  • click library
  • pathlib library

Installation

  1. Install Python 3.6 or higher
  2. Install the required libraries using pip: pip install click pathlib i9-everywhere-client

Usage

The CLI program i9everywhere has four main commands:

  • add_customer - adds a single customer to I9Everywhere. Required parameters are first_name, last_name, email, hire_date, and create_date. Optional parameters are company_id, phone_mobile, and external_id.
  • add_customers - adds multiple customers to I9Everywhere. The customers are provided in CSV format, either from a file given by --csv_file or read from standard input. The CSV file must have a header row with the same names as the paramters as add_customer. For example:
first_name,last_name,email,hire_date,create_date
Ethan,Williams,ethan.williams@adhoc.team,4/18/2023,4/18/2023
Madison,Johnson,madison.johnson@adhoc.team,4/18/2023,4/18/2023
Aiden,Brown,aiden.brown@adhoc.team,4/18/2023,4/18/2023
Olivia,Davis,olivia.davis@adhoc.team,4/18/2023,4/18/2023
Benjamin,Garcia,benjamin.garcia@adhoc.team,4/18/2023,4/18/2023
Sophia,Wilson,sophia.wilson@adhoc.team,4/18/2023,4/18/2023
Jacob,Rodriguez,jacob.rodriguez@adhoc.team,4/18/2023,4/18/2023
Isabella,Martinez,isabella.martinez@adhoc.team,4/18/2023,4/18/2023
Michael,Anderson,michael.anderson@adhoc.team,4/18/2023,4/18/2023
Emma,Smith,emma.smith@adhoc.team,4/18/2023,4/18/2023
  • get_customer_status - retrieves the I9 form status for a single customer. Required parameter is hire_date, plus at least one of email, ssn, or external_id.
  • update_termination_date - not yet implemented.
  • update_hire_date - not yet implemented.

The CLI requires an authentication key to access the I9Everywhere API. The key can be provided as a command-line argument using the --auth_key option or as an environment variable named I9_EVERYWHERE_API_KEY.

Example

Add a customer with the following details:

  • First name: John
  • Last name: Doe
  • Email: john.doe@example.com
  • Hire date: 04/18/2022
  • Create date: today's date
  • Company ID: 1234
  • Mobile phone: +1 (555) 555-1212
  • External ID: 5678
i9everywhere add_customer --auth_key <your_auth_key> --first_name John --last_name Doe --email john.doe@example.com --hire_date 04/18/2022 --company_id 1234 --phone_mobile "+1 (555) 555-1212" --external_id 5678

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

i9-everywhere-client-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

i9_everywhere_client-0.1.0-py3.11.egg (12.0 kB view details)

Uploaded Egg

i9_everywhere_client-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file i9-everywhere-client-0.1.0.tar.gz.

File metadata

  • Download URL: i9-everywhere-client-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for i9-everywhere-client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 daf4cec67edb9078d0c40c421c667ea43fd37ed7a7c3349c4243d0ded888474c
MD5 ffdb7a26741bcc4a6d4f151fba6563ac
BLAKE2b-256 25d41e7f9918d3d57eaf1a00b91b00331b6157e31867e81166ef349886f00550

See more details on using hashes here.

File details

Details for the file i9_everywhere_client-0.1.0-py3.11.egg.

File metadata

File hashes

Hashes for i9_everywhere_client-0.1.0-py3.11.egg
Algorithm Hash digest
SHA256 74e809c5bf0fb5f7bfa12dc9fa49abc7a5df696d024cae9cef06455c274c539d
MD5 cc97ef17a5bb2ec5d2e1fa1a2086fc84
BLAKE2b-256 3d0e9749ab674d75c04353013b0861df242d3abfee28fc131cd80e492fb7e05a

See more details on using hashes here.

File details

Details for the file i9_everywhere_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for i9_everywhere_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 095c3f84a7d624b9ca948b71e44c8073da99b741796abe2cdcfa68f0f6e5ac52
MD5 00f606df12df41298b0b085f2f82a844
BLAKE2b-256 d8d3c80f9838e8431ad266aab0e69cb75756ee47404251e69508e209632e3a3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page