Skip to main content

AML Optima Compass API Client

A Python client library for interacting with the AML Optima Compass API.

Installation

pip install amlcompass_api

Configuration

There are two ways to configure the client:

Create a .env file in your project root:

CONSUMER_KEY=your_consumer_key
CONSUMER_SECRET=your_consumer_secret
API_URL=https://api.amlcompass.com

Explicit Configuration

from amlcompass_api import AMLCompassAPIClient

aml_client = AMLCompassAPIClient(
    consumer_key="your_consumer_key",
    consumer_secret="your_consumer_secret",
    api_url="https://api.amlcompass.com"
)

Usage Examples

Transaction Operations

from amlcompass_api import AMLCompassAPIClient

# Define transaction data
transaction_id: str = "123456"
document_url: str = "https://example.com/document.pdf"
document_type: int = 1

# Initialize client. 
# If you have set environment variables, you can skip the explicit configuration.
aml_client = AMLCompassAPIClient()

# Check if a transaction is valid:
aml_client.transaction_service.is_valid(transaction_id)

# Get Transaction Data:
aml_client.transaction_service.get_data(transaction_id)

# Add a document to a transaction:
aml_client.transaction_service.add_document(transaction_id, document_url, document_type)


# Responses example:
{
  "data": {"valid": True, "transaction_id": "123456"},
  "status_code": 200,
}

Available Features

  • Authentication

    • OAuth 1.0 support
  • Transaction Services

    • Transaction data retrieval
    • Transaction validation
    • Document attachment
  • Future Services (Coming Soon)

Development

Setup Local Environment

# Clone repository
git clone https://github.com/yarel2l/amlcompass_api.git
cd amlcompass_api

# Install development dependencies
pip install -r requirements.txt

# Run tests
pytest

Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -am 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Create Pull Request

Development Guidelines

  • Run tests before submitting PRs
  • Add documentation for new features
  • Follow Python type hinting conventions
  • Update changelog

License

MIT License - See LICENSE for details.

Metadata

Release files for amlcompass-api 0.1.3

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

Source distribution (sdist)

Source distribution for amlcompass-api 0.1.3
File Size Uploaded Provenance Actions
amlcompass_api-0.1.3.tar.gz 9.5 kB Without provenance Details for amlcompass_api-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for amlcompass-api 0.1.3
File Interpreter ABI Platform Actions
amlcompass_api-0.1.3-py3-none-any.whl Python 3 none any Details for amlcompass_api-0.1.3-py3-none-any.whl

Total release size: 18.8 kB

Release files / amlcompass_api-0.1.3.tar.gz

Download URL amlcompass_api-0.1.3.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9d6f622a67910421a6a69b8f16e8d74c5a7325bfc3e17a092ead1d5f116e9bb7
BLAKE2b-256 checksum
How to use checksums
16612f6899943a090197f5399d819a3b272c33d6128ad1612166a92e8295eef4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / amlcompass_api-0.1.3-py3-none-any.whl

Download URL amlcompass_api-0.1.3-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91feec8b92c6b6d2d99a4168d9ddc86a5ee1c3395c7e2f67878e574bad49b4cc
BLAKE2b-256 checksum
How to use checksums
cf7d21ad08799a2c6e16dbb767f7b721a7e65c7dd3af29953b31d97b217eac0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Security for amlcompass-api 0.1.3

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.3 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