Skip to main content

Logics is a user-friendly formula language with a subset of Python's expression syntax

Project description

A hexagonal logo of Logics

Logics

Badge showing current PyPI version if logics-py Badge showing current npm version if logics-js Badge displaying the license
A tiny, sandboxed, secure and extendable formula language with a flavor of Python.

About

Logics is a tiny formula language, with the goal to provide equal syntax and semantics for different runtime contexts.

  • logics-js is a pure JavaScript implementation of Logics provided as npm-package.
  • logics-py is a pure Python implementation of Logics provided as PyPI-package.

Both packages are under recent development and not stable right now. They are maintained in separate version numbers.

Features

  • Python-like expression syntax, including list comprehensions
  • Python-inspired type system for all JSON-serializable types
  • Some Logics-specific specialities
  • Separate implementations in JavaScript and Python with equal syntax and similar semantics
  • Secure, running in a sandboxed environment apart from the host language
  • Provides a set of functions to be used in expressions
  • Extendable to custom functions

License

Copyright © 2022 by Jan Max Meyer, Mausbrand Informationssysteme GmbH.
Mausbrand and ViUR are registered trademarks of Mausbrand Informationssysteme GmbH.

Logics is free software under the MIT license.
Please see the LICENSE file for details.

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

logics_py-0.0.3.tar.gz (10.9 kB view hashes)

Uploaded Source

Built Distribution

logics_py-0.0.3-py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 3

Supported by

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