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

Uploaded Python 3

File details

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

File metadata

  • Download URL: humanticclient-0.1.2.tar.gz
  • Upload date:
  • Size: 7.1 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.2.tar.gz
Algorithm Hash digest
SHA256 0e700f2f09f09186d7fdc3cb53ab942c32b8c8f5878c013caa956dfb26dee973
MD5 da5a23bcd3a611852072fb92ddc93821
BLAKE2b-256 ba48f15ad1d7bcc4add22f62666839ad04894333944aa2dd90257531e26c34f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for humanticclient-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: humanticclient-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d0a2d8322bba3764a015e5c683ecc05c519e9bb63c0b86f5cd2ee4a742f2331
MD5 d7817a1a55605df6f3044b16359b71d1
BLAKE2b-256 38363ac5168f0310fc571947b6844834b7023a9a71720f2d3a0b94cc60bc3c2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for humanticclient-0.1.2-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