set_library_key

Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.

set_library_key

set_library_key(key: str) -> None

Set the Symbolica library key for this Python package.

Obtaining and using a library key requires a separate agreement with Symbolica. Contact license@symbolica.io to arrange one. Possessing a copied or stolen key does not authorize its use, even if Symbolica accepts it.

Call this from your package during import, before using Symbolica. It lets users run your library without their own Symbolica license; it does not license their other code. The key must be issued for your package.

If the key has expired, an internet connection and an active subscription are required. Renew the key when prompted to keep your library usable offline.

Parameters

  • key (str) The Symbolica library key issued for your package.