Skip to main content

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

Project description

Stop writing if/else for decisions.

SOVIGL evaluates any action and returns: approved, pending, or blocked — in one call.

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.2.tar.gz (2.5 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.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sovigl-0.1.2.tar.gz
  • Upload date:
  • Size: 2.5 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.2.tar.gz
Algorithm Hash digest
SHA256 096a0ed1879dd9c7ad0e6ae928655cd2e7b4f2e7a0bc0361dab1f47a981ed8d2
MD5 501910a8347617ab8e0e2439774f9355
BLAKE2b-256 763032d61a238ba42b363ec38e6b0a0749303b82a49e1f70c35543c038231b1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sovigl-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3c1806a8bca613a6fbfad6a442d2c107f76cb00f8e078288a52d5d5a94c8e92b
MD5 effec88d264937fc244f26592e954ea0
BLAKE2b-256 cecfffe15f8d090bb8dd6b31d10e5cb4cb3d088a402ec94c61830088a8f755ef

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