Skip to main content

Wrapper to interact with the Kappa tool suite

Project description

Do

>>> import kappy
>>> client = kappy.KappaRest("http\://url_of/the_server","project_name")

to get a kappa client that uses the REST API hosted by http://url_of/the_server and deals with project project_name.

Do

>>> import kappy
>>> client = kappy.KappaStd()

to get a kappa client that uses a kappa agent installed locally. Add a string argument specifing the path/to/KaSimAgent to use a specific agent.

A kappa agent can be obtained thanks to the opam package manager through:

$ opam install atdgen lwt
$ opam pin add --dev KaSim

The methods of client is described in the kappa_common.py file in the source distribution.

A minimal example of usage is

>>> model = "%agent: A(x[x.A]) %var: k_on 1e-2 'rule' A(x[.]), A(x[.]) <-> A(x[1]), A(x[1]) @ k_on, 1 %plot: |A(x[.])| %init: 100 A()"
>>> client.add_model_string(model)
>>> client.project_parse()
>>> sim_params = kappy.SimulationParameter(pause_condition="[T] > 100",plot_period=1)
>>> client.simulation_start(sim_params)
>>> while client.get_is_sim_running(): sleep(0.1)
>>> results = client.simulation_plot()
>>> client.shutdown()

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

kappy-4.0.91.tar.gz (12.1 kB view details)

Uploaded Source

Built Distributions

kappy-4.0.91-cp37-cp37m-manylinux2010_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

kappy-4.0.91-cp37-cp37m-manylinux1_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.7m

kappy-4.0.91-cp37-cp37m-macosx_10_9_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

kappy-4.0.91-cp36-cp36m-manylinux2010_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

kappy-4.0.91-cp36-cp36m-manylinux1_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.6m

kappy-4.0.91-cp36-cp36m-macosx_10_9_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

kappy-4.0.91-cp35-cp35m-manylinux2010_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

kappy-4.0.91-cp35-cp35m-manylinux1_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.5m

kappy-4.0.91-cp34-cp34m-manylinux2010_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.4m manylinux: glibc 2.12+ x86-64

kappy-4.0.91-cp34-cp34m-manylinux1_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.4m

kappy-4.0.91-cp27-cp27mu-manylinux2010_x86_64.whl (8.2 MB view details)

Uploaded CPython 2.7mu manylinux: glibc 2.12+ x86-64

kappy-4.0.91-cp27-cp27mu-manylinux1_x86_64.whl (8.2 MB view details)

Uploaded CPython 2.7mu

kappy-4.0.91-cp27-cp27m-manylinux2010_x86_64.whl (8.2 MB view details)

Uploaded CPython 2.7m manylinux: glibc 2.12+ x86-64

kappy-4.0.91-cp27-cp27m-manylinux1_x86_64.whl (8.2 MB view details)

Uploaded CPython 2.7m

kappy-4.0.91-cp27-cp27m-macosx_10_14_intel.whl (6.0 MB view details)

Uploaded CPython 2.7m macOS 10.14+ intel

File details

Details for the file kappy-4.0.91.tar.gz.

File metadata

  • Download URL: kappy-4.0.91.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for kappy-4.0.91.tar.gz
Algorithm Hash digest
SHA256 89adad7911139d5c3782a7a3b465ec2144dd66073448b16962f0fea2edd43b8b
MD5 865b87784299b0b0ed9cf8ea5f7562fb
BLAKE2b-256 f8e4173cafbeb94313ee1fcd48687fd1115a7216401572bbeb47659b888ee0a5

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for kappy-4.0.91-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9fd8fab3533ee7e947b9c8bb025e40fe30c5dccd623a8b668f032fed8d305c59
MD5 0c7eeed94294448cc7d727e4be491d33
BLAKE2b-256 9254df17d24db321fd831458994509c30457a4c8ed673e73778e95e1613d5927

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for kappy-4.0.91-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c89142c7ddd09073f2c46dfaa9b54de634f9b384cef797d7d2502503e51ad2d6
MD5 cfddbf9c11900fd42166a4f5410e021c
BLAKE2b-256 d0ec8bdc90112a5a74878a331687a763a05dd51a761e504fade5447eeadfc4e4

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for kappy-4.0.91-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 10deddc8be94556cd34fa9e95c7d09638450e18a923ed5e161cd1192e240164f
MD5 593a9dc50afe6c56003fde28a98b95c1
BLAKE2b-256 e86b9c6e7eae462f821667c31f1b731cabb45ec312b77ee557162d9e930b2af3

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for kappy-4.0.91-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 697df368b1f57fa1864b04b23f5fea13226d86a521b8e841993289eabcc45d21
MD5 042dbcdd9dab0d9a405dec3dac61ecad
BLAKE2b-256 ce7b12f77c78fc45231ea7316b431b6afe238d124c95718d65aacd57c50f4c74

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for kappy-4.0.91-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ce48dd6a93e69789d3a86aeebc90bf3b0df5275efe1f8197975ea6ac3c8f69c1
MD5 f2ded2eaa1a8cb15cb0f62664f3021a2
BLAKE2b-256 beec06fb0065f4c7849d6f70448c2de3c143533a4e252281e4ae78321f851f75

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for kappy-4.0.91-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 64e4e7ec4e0dca897f4578b660bd08f1b39bd427f8d826ef0f5e0437a468f40f
MD5 c92a35c43d54d78983ee276176f2832f
BLAKE2b-256 2fbaeb680bbc8f5f7885e6aea5e73f966ad792c5fdd8b9cb9bd581f04552ed8d

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for kappy-4.0.91-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 afbfa30e0c8a0ee16697eece18432b4a7a33782c87484a5c98d4ab5cb36df2e3
MD5 e02afb1b0aadcf273801dd63a96fc5cc
BLAKE2b-256 c32a07676a23ec5ab4a3b794a8b57bf8a95ea871c20644ac516cea77504a2410

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for kappy-4.0.91-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c21dff2d9b6e1a2e9d815d95ecd8ee00222be360d8bdf2c0022cf7476207afa2
MD5 05ff18c8ef052e50569b02a189e7ba57
BLAKE2b-256 0a3a3ee9f30fdff35bff7565ab42ab8cd04b2534065db288f0553f0b18a2b8c5

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp34-cp34m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp34-cp34m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 3.4m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for kappy-4.0.91-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d33346318171e866071f40a96e3c9f00efa84064c5b7ad42cfb9d5845d0ff815
MD5 5502fca7614a8ba8870af807845d7f3d
BLAKE2b-256 7b418ffcc4187ea68bd870bd9500882c5f0dddfe4d2c99ea7ffe6f050689b22c

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for kappy-4.0.91-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 04fd9c53da9643f84f548775edbb5e6547296c5f571019d84a345cc6e5a4d6cd
MD5 13790563df21379caa1447af2f071192
BLAKE2b-256 364019c26f060d06e1b064a583bef4eb69c9274d64e847324ecf491a24a8b47e

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp27-cp27mu-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp27-cp27mu-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 2.7mu, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for kappy-4.0.91-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5100ac35c07d00e6744cb53666af703a4d40ce3c7fe2a1c9bc0e90407e0d5dba
MD5 5b643fec8429890b865af217e1f4900c
BLAKE2b-256 ef2a3932229098fed651f7ff0328a6e75f7fa4d2ef09493652e7aea12ef76ff1

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for kappy-4.0.91-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5fed0056339304590051a225223922f91dd85e3cfe55fed657255734ffc47514
MD5 41e1b814ae5825783bfeb3e15f6e0110
BLAKE2b-256 74a72da8a0a8d89188bef9751409cc50665d0337df5cdd48627591a28a4c2ea4

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp27-cp27m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp27-cp27m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 2.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for kappy-4.0.91-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cbb92dd63679daebd1d05e8a3a78bd229cfe216baac228b79d2190f9b88ced51
MD5 c82c70485fcc8675e766a7fca99a21be
BLAKE2b-256 0027751e6b0be39dad9dc0623a244a9434d395baaa2dbaaf4575ee36cbec430e

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: kappy-4.0.91-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for kappy-4.0.91-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 04f3b0d02bcf095e9de500373b2c9994c0762a82a09c0a4f13d400dddd999be1
MD5 15f647b0e25641ff9359b1c6becf33e0
BLAKE2b-256 2860014059e6071cfaa9db7b68449654c6729ecd58c1e526c2e76c8db003de59

See more details on using hashes here.

File details

Details for the file kappy-4.0.91-cp27-cp27m-macosx_10_14_intel.whl.

File metadata

  • Download URL: kappy-4.0.91-cp27-cp27m-macosx_10_14_intel.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 2.7m, macOS 10.14+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for kappy-4.0.91-cp27-cp27m-macosx_10_14_intel.whl
Algorithm Hash digest
SHA256 38e39069ca99fa85f2631c030f34802f7e1359fd878814340ca8e4a3a1b4716d
MD5 4635c3f4830684bef548e5a972ccd77a
BLAKE2b-256 f34559a729a533009fecf6c7b6cdb6fea5664b15d0923814f9513ea1c9145bf7

See more details on using hashes here.

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