Tired of dealing with complex CrossChex Cloud API authentication and pagination?
crosschexcloudapi is a clean Python SDK that simplifies working with the Anviz CrossChex Cloud API.
✔ Automatic token management ✔ Built-in pagination handling ✔ Clean and structured responses ✔ Minimal setup, production-ready
Perfect for HRMS, attendance sync systems, and cloud integrations.
from crosschexcloudapi import CrossChexCloudAPI
api = CrossChexCloudAPI(
api_url="https://api.crosschexcloud.com",
api_key="YOUR_API_KEY",
api_secret="YOUR_API_SECRET",
anviz_request_id="REQUEST_ID"
)
# Fetch attendance records
records = api.get_attendance_records()
print(records)pip install crosschexcloudapiWorking directly with CrossChex Cloud API involves:
- Token expiration handling
- Complex payload structure
- Manual pagination
- Repeated authentication calls
This library solves it by:
- 🔐 Automatically generating & refreshing tokens
- 🔁 Handling expired tokens internally
- 📄 Managing pagination transparently
- ⚙️ Providing simple Python methods
- 🧠 Reducing API complexity drastically
- 🔐 Automatic token generation & renewal
- 📊 Fetch attendance logs with pagination support
- ⏱ ISO timestamp handling
- 🔁 Retry on token expiration
- 📦 Clean structured response format
- ⚡ Lightweight (
requestsonly)
- Sync attendance data to HRMS
- Build payroll automation pipelines
- Integrate Anviz devices into SaaS platforms
- Centralize biometric data from multiple locations
token_info = api.test_connection()
print(token_info)from datetime import datetime
records = api.get_attendance_records(
begin_time=datetime(2025, 10, 1, 0, 0, 0),
end_time=datetime(2025, 10, 18, 23, 59, 59)
)
print(records){
"token": "abc123",
"expires": "2025-10-20T10:00:00",
"count": 2,
"list": [
{
"employee_id": "E1001",
"check_time": "2025-10-18T09:00:00",
"type": "checkin"
}
]
}- Generates token using API key & secret
- Stores token + expiry internally
- Auto-refreshes token when expired
- Fetches paginated data until complete
- Returns a single merged dataset
No manual handling needed.
get_token()test_connection()
get_attendance_records()get_attendance_payload()
_post()_is_token_expired()
- Python 3.10+
requests>=2.28.0
- Async support
- Webhook support
- Filtering helpers
- Better error handling
Contributions are welcome!
- Fork the repository
- Create a branch:
git checkout -b feature-name - Commit:
git commit -m "Add feature" - Push:
git push origin feature-name - Open a Pull Request
Licensed under LGPL-3.0 👉 https://www.gnu.org/licenses/lgpl-3.0.html
- GitHub: https://github.com/KSreethul/crosschexcloudapi
- Issues: https://github.com/KSreethul/crosschexcloudapi/issues
If this project helps you:
- ⭐ Star the repo
- 🐛 Report issues
- 🔁 Share with others
If you're integrating Anviz CrossChex Cloud with your backend, this library removes 80% of the complexity.
Build faster. Integrate smarter.