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.3.tar.gz (6.9 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.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: humanticclient-0.1.3.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for humanticclient-0.1.3.tar.gz
Algorithm Hash digest
SHA256 31820735e94ba67002765551711ce79ad3c68c626875c640bef0aad6fe6e2c26
MD5 a4dabb9c05058c48112cf72fec92b515
BLAKE2b-256 fdb2198f6277e479525893a2482f43c283ee7023381b6d29e21f12a2379ff93d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for humanticclient-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6988fed67a3143f5cc9f90ccac0878d61e1a97e8b4fb68920366ddcf9dc9016b
MD5 0e1d9e8367432863328954019b5f4ca3
BLAKE2b-256 fc79d9f18e71a34da60d00a56a22e34005038d2f9b0fc4b8199eb288f557fcf5

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