Skip to main content

euleris

Topological molecular analysis — the official Python client for the Euleris API.

euleris is a thin HTTP client. All computation (spectrum extraction, scoring, ADME/toxicity prediction, similarity search) runs server-side on the Euleris compute engine. The client just sends SMILES and returns typed results.

Install

pip install euleris
# optional: DataFrame support
pip install "euleris[pandas]"

Authentication

Get an API key (ek_...) from https://cognitive-engineering.dev/pricing.

Provide it in any of these ways (checked in this order):

  1. Environment variable:
    export EULERIS_API_KEY=ek_your_key
    
  2. Config file ~/.euleris/config:
    [default]
    api_key = ek_your_key
    
  3. Explicitly in code:
    import euleris
    euleris.configure(api_key="ek_your_key")
    

Quickstart

import euleris

# Analyze a single molecule
result = euleris.analyze("CCO")
print(result.score)          # topological score
print(result.spectrum)       # {"N3": 0, "N6": 1, ...}
print(result.meta.atoms)     # 3

# Structural descriptors (V1.4)
print(result.N6_m)           # aromatic cycle density N6/m
print(result.phi)            # fraction of bonds on at least one cycle
print(result.rho_lq)         # bridge/hub criticality correlation, None if not computed
print(result.spectral.q1)    # full spectral block when rho_lq is available

# Batch analysis
batch = euleris.batch(["CCO", "c1ccccc1", "CC(=O)O"])
print(batch.stats)           # {"total": 3, "valid": 3, "invalid": 0}
df = batch.to_dataframe()    # requires euleris[pandas]

# Compare two molecules
cmp = euleris.compare("c1ccccc1", "c1ccncc1")
print(cmp.delta_score)

# Similarity search
sim = euleris.similar("c1ccccc1", top_k=5, library="zinc")
for match in sim.matches:
    print(match.smiles, match.similarity)

Using an explicit client

from euleris import EulerisClient

client = EulerisClient(api_key="ek_your_key")
result = client.analyze("CCO")

Error handling

from euleris import EulerisError, AuthError, RateLimitError, InvalidSmilesError

try:
    euleris.analyze("not-a-molecule")
except InvalidSmilesError as e:
    print("Bad SMILES:", e)
except RateLimitError as e:
    print("Slow down:", e)
except AuthError as e:
    print("Check your key:", e)
except EulerisError as e:
    print("Something went wrong:", e)

Links

License

Proprietary. Copyright (c) 2026 Cognitive Engineering / David Martin Venti.

Download files

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

Source Distribution

euleris-0.1.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

euleris-0.1.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for euleris-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1f45a0576a818bf80ed39a63884401bf88dc0afeb9c606914dd8565185086e62
MD5 207bb2b37cb7361f8856a1e1744b09cd
BLAKE2b-256 9744bcf9454a7eb14e5630828bea3e820a59dc1a9df2c875540ed75c701cbc68

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for euleris-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc4acf7ffce513bcf0ddca5f5fdf659514883e8c1acae882c5b46cad89413aa0
MD5 4bb979ededea9fdfcd9e098f4b16f639
BLAKE2b-256 a7974921ff591fcadedfff0f20e3ade73bc13a83f4b605435dbfd5ed74804915

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

0.0.1

2 files

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