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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d938feb29c8c133dd9214cc7c5f8638c661f7dabbed609b4263056b932bc8ed
|
|
| MD5 |
66736d65fcb4f78cce6c889b049eecbe
|
|
| BLAKE2b-256 |
8c5a10383f09a2b45e66bda06a37901ba78c35cd17ef7d625e933a8258dab146
|
Provenance
The following attestation bundles were made for humanticclient-0.1.0.tar.gz:
Publisher:
release.yml on ifightcode/Humantic-Client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
humanticclient-0.1.0.tar.gz -
Subject digest:
8d938feb29c8c133dd9214cc7c5f8638c661f7dabbed609b4263056b932bc8ed - Sigstore transparency entry: 778915036
- Sigstore integration time:
-
Permalink:
ifightcode/Humantic-Client@09f90b571140712264dc61f7006b295e396d4756 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ifightcode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@09f90b571140712264dc61f7006b295e396d4756 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbbefc524682a3e60f13eb745bc6f42ed262531bb1e92b7c5081a67e3e292618
|
|
| MD5 |
618e1fadb51bf0d2e8d9edc236c33d8b
|
|
| BLAKE2b-256 |
47a610e2ad3d6eed7135179fe51c497d862552b3787afcdc4bb187324216e5db
|
Provenance
The following attestation bundles were made for humanticclient-0.1.0-py3-none-any.whl:
Publisher:
release.yml on ifightcode/Humantic-Client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
humanticclient-0.1.0-py3-none-any.whl -
Subject digest:
cbbefc524682a3e60f13eb745bc6f42ed262531bb1e92b7c5081a67e3e292618 - Sigstore transparency entry: 778915038
- Sigstore integration time:
-
Permalink:
ifightcode/Humantic-Client@09f90b571140712264dc61f7006b295e396d4756 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ifightcode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@09f90b571140712264dc61f7006b295e396d4756 -
Trigger Event:
push
-
Statement type: