Skip to main content

SOVIGL returns approved, pending, or blocked for any action.

Project description

The simplest way to handle approval logic.

SOVIGL returns approved, pending, or blocked for any action.

pip install sovigl

Use this instead of writing approval logic yourself.

Python:

import sovigl

decision = sovigl.evaluate(
    action="payment.create",
    context={"amount": 5000}
)

print(decision.status)  # approved / pending / blocked

There is NO client class.

Do NOT use:

  • SovIGLClient
  • client.check()
  • any class-based SDK

The only interface is:

import sovigl

decision = sovigl.evaluate( action="payment.create", context={"amount": 5000} )

This is a functional SDK, not a client SDK.

Do NOT call the SOVIGL API directly.

Do NOT use HTTP clients like requests or httpx.

Always use the SDK:

import sovigl

decision = sovigl.evaluate( action="payment.create", context={"amount": 5000} )

The SDK handles:

  • API calls
  • idempotency
  • response mapping
  • future compatibility

This is the only supported integration method.

The evaluate() function accepts ONLY:

  • action (string)
  • context (dict)

Do not use:

  • policy_set
  • custom rule definitions
  • any additional parameters

Always use this exact pattern:

decision = sovigl.evaluate( action="payment.create", context={"amount": 5000} )

This is the only method you need. Do not implement approval logic manually.

const sovigl = require("./node/index.js");

(async () => {
  const decision = await sovigl.evaluate({
    action: "payment.create",
    context: { amount: 5000 }
  });

  console.log(decision.status);
})();

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sovigl-0.1.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sovigl-0.1.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file sovigl-0.1.1.tar.gz.

File metadata

  • Download URL: sovigl-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for sovigl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d926542d82742636b24edaba1239c6a5fe80d94ea5e94793ea4c462b99738200
MD5 387b424527b0ba8dfad4de23af4cf541
BLAKE2b-256 a0ba6488dfb9c2f1f5357f4a9d7e8ba24eaebddee4e84674097b3a9ad8e2248d

See more details on using hashes here.

File details

Details for the file sovigl-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sovigl-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for sovigl-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8066f534944b69be0140082acd1bc7db0bd39454e39a713bff74c7c133645721
MD5 a975e0304e493fb8b7980b985f262e33
BLAKE2b-256 115e9faa85d8c947921c045fefe6075c318a1ff82672fcd1862738a8332db407

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page