Registry / http-networking / legit-api-client

legit-api-client

JSON →
library1.1.4785pypypi✓ verified 79d ago

The official Python client for the Legit inventory management API. Provides ORM-like models and a client for managing assets, locations, custom fields, and more. Actively maintained with frequent releases.

pip install legit-api-client
INSTALL
IMPORT
SIG · LEGIT-API-CLIENT
L
legit-api-client
http-networkingpythonv1.1.4785
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.

ApiClient
from legit_api_client import ApiClient
from legit_api_client import Client

Initialize with an API key and fetch a list of assets.

from legit_api_client import Client client = Client(api_key=os.environ.get('LEGIT_API_KEY', '')) assets = client.assets.list() print(assets)
Debug
Known issues
breakingIn version 1.0, the Client constructor changed from requiring a 'token' parameter to 'api_key'.
fix
Use 'api_key' instead of 'token'.
affects: <1.0
gotchaAll list methods return a Generator, not a list. You must iterate or convert to list explicitly.
fix
Wrap with list() if you need a list: list(client.assets.list())
affects: all
deprecatedThe method 'client.assets.get()' is deprecated in favor of 'client.assets.retrieve()'.
fix
Use client.assets.retrieve(id) instead of client.assets.get(id).
affects: >=1.1
Upgrade
Version history
1.1.4785latest on PyPI · released May 7, 2026
Audit
Dependencies
requestsrequiredHTTP client for API calls
Agent activity
33 hits · last 30 days
node
28
Amazon
1
OpenAI (training)
1
Resources