Skip to main content

crosschexcloudapi

Python Version
License
CrossChexCloudAPI Python Library for Anviz Biometric Devices

crosschexcloudapi is a Python library that simplifies interaction with Anviz CrossChex Cloud API. It provides high-level methods for fetching attendance records, managing authentication tokens, and handling API communication securely.


Features

  • Fetch and manage authentication tokens with automatic renewal.
  • Retrieve attendance logs for employees between specific time ranges.
  • Handle paginated API responses automatically.
  • Lightweight and minimal dependencies (requests only).
  • Fully compatible with Python 3.10+.

Installation

Install via pip:

pip install crosschexcloudapi

Usage

from crosschexcloudapi import CrossChexCloudAPI
from datetime import datetime

# Initialize the CrossChexCloudAPI client
api = CrossChexCloudAPI(
    api_url="https://api.crosschexcloud.com",
    api_key="YOUR_API_KEY",
    api_secret="YOUR_API_SECRET",
    anviz_request_id="REQUEST_ID"
)

# Test connection and fetch token
token_info = api.test_connection()
print(token_info)

# Fetch attendance records for a specific date range
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)

# Access token and expiry
print("Token:", records["token"])
print("Expires:", records["expires"])

Documentation

  • Token Management: get_token(), test_connection()
  • Attendance Records: get_attendance_records(), get_attendance_payload()
  • Internal Methods: _post(), _is_token_expired()

Dependencies

  • requests>=2.28.0

License

This project is licensed under the LGPL 3.0 License.


Author

Sreethul Krishna Email: sreethulkrishna24@gmail.com


Metadata

Release files for crosschexcloudapi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crosschexcloudapi 0.1.0
File Size Uploaded Provenance Actions
crosschexcloudapi-0.1.0.tar.gz 5.0 kB Without provenance Details for crosschexcloudapi-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crosschexcloudapi 0.1.0
File Interpreter ABI Platform Actions
crosschexcloudapi-0.1.0-py3-none-any.whl Python 3 none any Details for crosschexcloudapi-0.1.0-py3-none-any.whl

Total release size: 10.3 kB

Release files / crosschexcloudapi-0.1.0.tar.gz

Download URL crosschexcloudapi-0.1.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bc6b8926901830eaec40fccdcc2301f577b78a877eb7a9ea4cf71e7f946a1400
BLAKE2b-256 checksum
How to use checksums
beb938f893b0c370a5560009b670e3eeef603de9e2512d0e6ca791334e74501b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Release files / crosschexcloudapi-0.1.0-py3-none-any.whl

Download URL crosschexcloudapi-0.1.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5159f638cac1b6e5f61883b1c9459d761968f0e7abb9819b0fbdd4bc3004a089
BLAKE2b-256 checksum
How to use checksums
222e8b16632cc6b02ce26b7f00c2c8d1f04af801e34598d710f1af59569c43fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Security for crosschexcloudapi 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page