Registry / auth-security / zi-api-auth-client

zi-api-auth-client

JSON →
library2.0.3pypypi✓ verified 83d ago

A Python library supporting username-password and PKI authentication methods for ZoomInfo enterprise APIs. Current version 2.0.3, released under an MIT-like license. Release cadence is irregular.

pip install zi-api-auth-client
INSTALL
IMPORT
SIG · ZI-API-AUTH-CLIENT
Z
zi-api-auth-client
auth-securitypythonv2.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AuthClient
from zi_api_auth_client import AuthClient
from ziapi.auth import AuthClient
Old package naming used underscores and different module path.

Initialize AuthClient with credentials and obtain an access token.

from zi_api_auth_client import AuthClient client = AuthClient( username=os.environ.get('ZI_USERNAME', ''), password=os.environ.get('ZI_PASSWORD', ''), ) token = client.get_access_token() print(token)
Debug
Known issues
breakingVersion 2.0.0+ changed the package name from 'ziapi_auth_client' to 'zi_api_auth_client'. Existing imports will break.
fix
Update imports to 'from zi_api_auth_client import AuthClient' and reinstall package.
affects: <2.0.0
deprecatedThe method 'get_token()' is deprecated in favor of 'get_access_token()' since version 1.5.0.
fix
Replace 'client.get_token()' with 'client.get_access_token()'.
affects: >=1.5.0, <2.0.0
gotchaEnvironment variables are not automatically loaded. You must explicitly pass credentials or set them via os.environ.
fix
Ensure you call load_dotenv() if using .env files, or pass credentials directly.
affects: all
Errors
Common errors & fixes
ImportError: No module named 'zi_api_auth_client'
Installed version <2.0.0 where package name was 'ziapi_auth_client'.
fix
Install latest version: pip install --upgrade zi-api-auth-client
AttributeError: 'AuthClient' object has no attribute 'get_token'
Using deprecated method name. get_token() was removed in version 2.0.0.
fix
Use 'get_access_token()' instead.
Upgrade
Version history
2.0.3latest on PyPI · released Sep 4, 2025
Audit
Dependencies
requestsrequiredUsed for HTTP requests to authentication endpoints.
Agent activity
32 hits · last 30 days
node
26
OpenAI (training)
1
Resources
zi-api-auth-client — pip install zi-api-auth-client · libregistry