A Python SDK for the IDSecure API
Project description
IDSecure Python SDK
A Python client for interacting with the IDSecure API. This SDK provides a simple and intuitive interface to manage users, devices, and view logs within your IDSecure instance.
Installation
You can install the package directly from PyPI (once published) or via pip:
pip install idsecure-cli
Or install from source:
git clone https://github.com/tsuriu/idsecure-cli.git
cd idsecure-cli
pip install .
Usage
Initialization
First, import the client and initialize it with your IDSecure instance credentials:
from idsecure_cli import IDSecureClient
# Initialize the client
client = IDSecureClient(
base_url="https://your-idsecure-instance.com",
username="your-username",
password="your-password"
)
# Login is handled automatically on the first request,
# but you can also call it explicitly to verify credentials immediately.
try:
client.login()
print("Login successful!")
except Exception as e:
print(f"Login failed: {e}")
User Management
# List all users
users = client.list_users()
for user in users:
print(f"User: {user['name']} (ID: {user['id']})")
# specific user operations would go here if implemented in the client methods
Features
- Authentication: automatic JWT token management.
- User Management: Create, List, Update, and Delete users easily.
- Device Management: List connected devices.
- Reports: Access global logs.
Requirements
- Python 3.8+
requestshttpx
License
This project is licensed under the MIT License.
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 idsecure_cli-0.1.0.tar.gz.
File metadata
- Download URL: idsecure_cli-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83d354581aabde5285f413c6975fd4f1e920b29fa354dfbd2e6dedad026ecfdc
|
|
| MD5 |
bd901e0b1164f4b01412148a5b781931
|
|
| BLAKE2b-256 |
f43e50803a787c9f63ac12564960c6ded9c9f584577d0b1b8eaca525c06c442f
|
File details
Details for the file idsecure_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: idsecure_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7ef5e28a7ba725a2ecd9666a4ad725f70cced15c2155c42525b66813310b022
|
|
| MD5 |
31ef38f417c6ca23bc7d8789711dddab
|
|
| BLAKE2b-256 |
65693a7777cc90d092bf614e963442a4521e4a1b666d98cd1950cd5d4606abe9
|