Skip to main content

Python client for Humantic AI API - Analyze LinkedIn profiles for sales and hiring insights

Project description

humanticclient

Python client for Humantic AI API - Analyze LinkedIn profiles for sales and hiring insights.

Features

  • Get or Create Pattern - Automatically creates profile analysis if it doesn't exist
  • Sales & Hiring Personas - Get insights tailored for sales outreach or hiring evaluations
  • CLI Tool - Command-line interface for quick analysis
  • Python Library - Use as a library in your Python projects
  • JSON Output - Output to stdout or save to file

Installation

pip install humanticclient

Configuration

Set your API key via environment variable or .env file:

export HUMANTIC_API_KEY=your_api_key_here

Or create a .env file:

HUMANTIC_API_KEY=your_api_key_here

CLI Usage

# Print JSON to stdout
humantic "https://www.linkedin.com/in/username/"

# Save to file
humantic "https://www.linkedin.com/in/username/" -o output.json

# Specify persona (sales or hiring)
humantic "https://www.linkedin.com/in/username/" -p hiring -o output.json

# Pass API key directly
humantic "https://www.linkedin.com/in/username/" --api-key YOUR_KEY

CLI Options

Option Short Description
--output -o Save output to JSON file
--persona -p Persona: sales (default) or hiring
--api-key API key (overrides env var)

Python Library Usage

from humantic import HumanticClient

# Initialize client (reads HUMANTIC_API_KEY from env)
with HumanticClient() as client:
    # Get or create profile analysis
    result = client.get_or_create_profile(
        "https://www.linkedin.com/in/username/",
        persona="sales"
    )
    print(result)

API Methods

from humantic import HumanticClient

client = HumanticClient(api_key="your_key")

# Create a new profile analysis
client.create_profile("https://www.linkedin.com/in/username/")

# Fetch existing profile
result = client.fetch_profile("https://www.linkedin.com/in/username/", persona="sales")

# Get or create (waits for analysis to complete)
result = client.get_or_create_profile("https://www.linkedin.com/in/username/", persona="sales")

Response Structure

{
  "status": "200",
  "message": "Success",
  "results": {
    "first_name": "John",
    "last_name": "Doe",
    "display_name": "John Doe",
    "user_description": "...",
    "personality_analysis": {
      "disc_assessment": {...},
      "ocean_assessment": {...}
    },
    "persona": {
      "sales": {
        "email_personalization": {...},
        "cold_calling_advice": {...},
        "communication_advice": {...}
      }
    }
  },
  "metadata": {
    "status": "FOUND",
    "analysis_status": "COMPLETE"
  }
}

Development

# Install with dev dependencies
pip install -e .

# Run CLI directly
python -m humantic.cli "https://www.linkedin.com/in/username/"

License

MIT License

Links

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

humanticclient-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

humanticclient-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file humanticclient-0.1.0.tar.gz.

File metadata

  • Download URL: humanticclient-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for humanticclient-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8d938feb29c8c133dd9214cc7c5f8638c661f7dabbed609b4263056b932bc8ed
MD5 66736d65fcb4f78cce6c889b049eecbe
BLAKE2b-256 8c5a10383f09a2b45e66bda06a37901ba78c35cd17ef7d625e933a8258dab146

See more details on using hashes here.

Provenance

The following attestation bundles were made for humanticclient-0.1.0.tar.gz:

Publisher: release.yml on ifightcode/Humantic-Client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: humanticclient-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for humanticclient-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbbefc524682a3e60f13eb745bc6f42ed262531bb1e92b7c5081a67e3e292618
MD5 618e1fadb51bf0d2e8d9edc236c33d8b
BLAKE2b-256 47a610e2ad3d6eed7135179fe51c497d862552b3787afcdc4bb187324216e5db

See more details on using hashes here.

Provenance

The following attestation bundles were made for humanticclient-0.1.0-py3-none-any.whl:

Publisher: release.yml on ifightcode/Humantic-Client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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