Skip to main content

Getting Started — primera simplificación en ~2 minutos

Cliente Python puro (stdlib, cero dependencias) contra la API hosted en https://exactor.tech. Sin compilar nada, sin Docker, sin .env.

1. Consigue una API key

Regístrate gratis en exactor.tech (o login si ya tienes cuenta) → Console → API Keys → create ek_... key.

También sirve el JWT de sesión (/api/auth/register → token) como Bearer token.

2. Instala el cliente

# Opción A — pip (recomendada; paquete `exactor-cli`)
pip install exactor-cli        # en PyPI; mientras tanto: pip install git+https://gitlab.com/exactorresearch/exactor/exactor-cloud-service-v128.git

# Opción B — instaladores one-liner
curl -sSL https://exactor.tech/install.sh | bash      # Linux / macOS
irm https://exactor.tech/install.ps1 | iex            # Windows PowerShell

# Opción C — sin instalar: baja el archivo único
curl -sSL https://exactor.tech/exactor_cli.py -o exactor_cli.py

Requiere Python 3.8+, nada más (urllib/json de la stdlib).

3. Login y minimiza

exactor login --token ek_TU_API_KEY          # guarda config en ~/.exactor/
exactor whoami                              # verifica tier y balance SU
exactor minimize circuit.pla -o out.v       # .pla, .json o expresión

Salida real:

[*] Circuit parsed: 4 inputs, 6 minterms.
  EXACTOR CLOUD // SYNTHESIS COMPLETE (FORMALLY VERIFIED)
  Solver Latency:  2195 ms
  Gate Reduction:  45.0%
  SU Consumed:     1 SU
  Result Equation: !(x2 ^ x1) & !x0 + (x3 ^ x2) & !x0
[*] Written synthesized output to: out.v

O directo con curl — sin instalar nada:

curl -X POST https://exactor.tech/api/simplify \
  -H "Authorization: Bearer ek_TU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"variables":["a","b","c","d"],"minterms":[0,1,2,5,6,7],"emit":["verilog"]}'

Formato de entrada

  • variables: array de nombres; variables[0] es el bit más significativo del índice de minterm (xespresso v1, MSB-first).
  • minterms: enteros 0..2^n del conjunto ON. dont_cares para "don't care".
  • El CLI acepta .pla (Espresso), .json ({variables, minterms, dont_cares}) y netlists estructurales — exactor-netlist-v1 JSON (salida de exactor_netlist -format json del plugin Yosys, incluye cortes secuenciales con flops), BLIF (.names, salida de write_blif en ABC/Yosys), AIGER ASCII .aag (salida de Simplifier/write_aiger; los latches se tratan como flop-cut) e ISCAS .bench — el servidor autodetecta el formato por contenido, sin conversión.
  • POST /api/simplify/netlist devuelve por output blif (emit "blif"): BLIF listo para ABC/Yosys.

Como librería Python

El mismo paquete expone exactor_client para integrar la API en tu código:

from exactor import ExactorClient, ExactorError   # o: from exactor_client import ...

client = ExactorClient(token="ek_...")   # o EXACTOR_TOKEN / ~/.exactor/config.json

# Función booleana por minterms
res = client.simplify(variables=["a","b","c","d"],
                      minterms=[0,1,2,5,6,7],
                      emit=["verilog","metrics"])
print(res["result"], "| su_used:", res["su_used"])

# Pre-análisis gratis (0 SU)
print(client.analyze(["a","b","c"], [0,1,5,7]))

# Netlist estructural con FSM (JSON exactor-netlist-v1 o BLIF/AAG/bench)
res = client.simplify_netlist(open("net.json").read(),
                              fsm_minimize=True, fsm_init="0")
print(res["fsm_analysis"], res["minimized_state_bits"])

# Cuenta
print(client.me(), client.balance())

ExactorError lleva .status y .payload; .is_quota (402) e .is_rate_limited (429) facilitan el manejo de errores. Resolución de token: argumento → EXACTOR_TOKEN env → EXACTOR_ENDPOINT env para endpoint → ~/.exactor/config.json.

Variantes del CLI

exactor minimize big.pla --async --wait     # job en cluster para >32 vars / funciones grandes
exactor status <job_id>                     # consulta un job async
exactor balance                             # saldo SU del plan
exactor minimize net.json --max-sim-vars 24 --esop-budget 200000   # knobs del engine netlist
exactor minimize net.json --fsm-minimize    # (vía API: fsm_minimize/fsm_init en el payload)

Billing en una línea

Jobs ligeros (≤32 vars / ≤2K minterms; netlists ≤32 in / ≤5K gates / ≤64 out) = 0 SU en todos los planes — el registro FREE te da acceso inmediato. Las SU solo se consumen en jobs pesados; el tier FREE tiene rate limit diario.

Troubleshooting

Síntoma Causa Fix
401 Access Denied Token inválido/ausente exactor login --token ek_... o regístrate en exactor.tech
403 / límites Supera caps del plan FREE Sube de tier (PRO/TEAM)
402 Insufficient SU Job pesado sin saldo Los ligeros no cobran; PRO incluye 10K SU/mes para pesados
429 RATE_LIMITED Rate limit diario del plan en jobs ligeros Espera al día siguiente o sube de tier
variables rechazado Entero en vez de array de nombres "variables": ["a","b",...] — [0] es MSB

Ver también: README.md (referencia de endpoints), api.html (snippets curl/Python/JS), Swagger UI en https://exactor.tech/public-swagger-ui, docs/exactor/credits-and-billing.md (modelo SU v3).

Metadata

Release files for exactor-cli 1.28.1

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

Source distribution (sdist)

Source distribution for exactor-cli 1.28.1
File Size Uploaded Provenance Actions
exactor_cli-1.28.1.tar.gz 20.6 kB Without provenance Details for exactor_cli-1.28.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for exactor-cli 1.28.1
File Interpreter ABI Platform Actions
exactor_cli-1.28.1-py3-none-any.whl Python 3 none any Details for exactor_cli-1.28.1-py3-none-any.whl

Total release size: 36.8 kB

Release files / exactor_cli-1.28.1.tar.gz

Download URL exactor_cli-1.28.1.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
92170adc72556ff8829055e014bd9c7c6a1cfa17304237bda45c2e55c9469726
BLAKE2b-256 checksum
How to use checksums
971c97e2f0d3a06abd26d66adfb8da93875feb633c880b2dc55c8acc472d05ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / exactor_cli-1.28.1-py3-none-any.whl

Download URL exactor_cli-1.28.1-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
102f0eb34581ed4de921e6eb3e4bd91632d656e7903d41bddc7991b98487301d
BLAKE2b-256 checksum
How to use checksums
1d38b9fc785c24aa2ccd4a54b04083d6de8fab74b8045818c99bf212d1fd8c5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for exactor-cli 1.28.1

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.

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