Skip to main content

Catnip language

Project description

Catnip language

Version 0.1.1

Documentation: https://docs.catnip-lang.io

Catnip est un langage de script embarqué pour applications Python. Il permet de définir des règles métier, des workflows et des transformations de données sans modifier le code applicatif.

Installation

pip install catnip-lang

Utilisation rapide

Exécution en CLI

catnip script.cat
catnip -c "2 + 3"
echo "2 + 3" | catnip

Intégration Python (embedded)

from catnip import Catnip

engine = Catnip()
engine.parse("x = 2 + 3")
result = engine.execute()
print(result)

Cas d'usage typiques

  • Règles métier configurables sans redéploiement
  • Scripts utilisateur sandboxés dans une application web
  • Pipelines de transformation de données (ETL)
  • Validation de configuration et logique d'éligibilité

Statut du projet

Catnip est utilisé en production pour des cas d'expressions et de transformation de données. Le projet est encore en phase 0.x, avec des évolutions en cours sur certains aspects.

Documentation

Code source

Licence

GPLv3

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

catnip_lang-0.1.1.tar.gz (1.0 MB view details)

Uploaded Source

Built Distributions

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

catnip_lang-0.1.1-cp314-cp314-manylinux_2_28_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

catnip_lang-0.1.1-cp314-cp314-macosx_14_0_arm64.whl (9.0 MB view details)

Uploaded CPython 3.14macOS 14.0+ ARM64

catnip_lang-0.1.1-cp313-cp313-manylinux_2_28_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

catnip_lang-0.1.1-cp313-cp313-macosx_14_0_arm64.whl (9.0 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

File details

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

File metadata

  • Download URL: catnip_lang-0.1.1.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for catnip_lang-0.1.1.tar.gz
Algorithm Hash digest
SHA256 551b092d4238673a138960c301c6b7f71b4bc6b4c72e7e0dff144fa6092bc25c
MD5 fae7e922f8158b026a20ac2ce15e2372
BLAKE2b-256 481a385ed22eeca875713dd992b4ffc6816aa1923143601977a97fd7360fc2c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for catnip_lang-0.1.1.tar.gz:

Publisher: publish.yml on aristofor/catnip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file catnip_lang-0.1.1-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for catnip_lang-0.1.1-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 49b266c229d1f47dda4162e18f45a982e5192f7cb8f184631f600169f82b80b5
MD5 a8d0748e447826c87f8167c45131f5c9
BLAKE2b-256 ca3038a1cd6b6b3ebc9673235b7a05dc500157724959bce27b509818736f528c

See more details on using hashes here.

Provenance

The following attestation bundles were made for catnip_lang-0.1.1-cp314-cp314-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on aristofor/catnip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file catnip_lang-0.1.1-cp314-cp314-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for catnip_lang-0.1.1-cp314-cp314-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 468e9a068628eae90110e0d9b4da0b017572ad85336e28829b39ac201de3acc3
MD5 0bab5cd6d1005ce4dd77512459de2f66
BLAKE2b-256 21109a67efdca50fef45c7c69d1db93115dc387ecddd1dd20dbbab78cf67b685

See more details on using hashes here.

Provenance

The following attestation bundles were made for catnip_lang-0.1.1-cp314-cp314-macosx_14_0_arm64.whl:

Publisher: publish.yml on aristofor/catnip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file catnip_lang-0.1.1-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for catnip_lang-0.1.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5abda36dbfc2d595dcc7bfb4bd9a983f1634e6b0f152d04620cec1dc5095bba5
MD5 9f5cb6099d99a6fcf145473cf6f7983f
BLAKE2b-256 1bc9c9dc816b5744df0aea3bb1ba2da116e5855c50632d8f280245daf27b6570

See more details on using hashes here.

Provenance

The following attestation bundles were made for catnip_lang-0.1.1-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on aristofor/catnip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file catnip_lang-0.1.1-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for catnip_lang-0.1.1-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 319ee60271c9b3e6bd20d0d58932470a6b9288ce183009ff91d716fdd5de0099
MD5 c4e182073d1c3a2d4bc51e5e16bb45f5
BLAKE2b-256 05c8aec6f6833aa5d2bcd91da2fce1ac0a32fffeb84d1b7977a308c2bb6d2ff5

See more details on using hashes here.

Provenance

The following attestation bundles were made for catnip_lang-0.1.1-cp313-cp313-macosx_14_0_arm64.whl:

Publisher: publish.yml on aristofor/catnip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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