Skip to main content

A clock-driven simulator for spiking neural networks

Project description

Brian2

A clock-driven simulator for spiking neural networks

Brian is a free, open source simulator for spiking neural networks. It is written in the Python programming language and is available on almost all platforms. We believe that a simulator should not only save the time of processors, but also the time of scientists. Brian is therefore designed to be easy to learn and use, highly flexible and easily extensible.

Please report issues at the github issue tracker (https://github.com/brian-team/brian2/issues) or in the Brian forum (https://brian.discourse.group).

Documentation for Brian2 can be found at http://brian2.readthedocs.org

Brian2 is released under the terms of the CeCILL 2.1 license.

If you use Brian for your published research, we kindly ask you to cite our article:

Stimberg, M, Brette, R, Goodman, DFM. “Brian 2, an Intuitive and Efficient Neural Simulator.” eLife 8 (2019): e47314. doi: 10.7554/eLife.47314.

PyPI version Conda version Debian package Fedora package Spack AUR version

Docker Pulls DOI Software Heritage (repository) Software Heritage (release)

Contributor Covenant Discourse topics Discourse chat code style: black

Quickstart

Try out Brian on the mybinder service:

mybinder

Dependencies

The following packages need to be installed to use Brian 2 (cf. pyproject.toml):

  • Python >= 3.10
  • NumPy >=1.23
  • SymPy >= 1.2
  • Cython >= 0.29.21
  • PyParsing
  • Jinja2 >= 2.7
  • setuptools >= 61
  • py-cpuinfo (only required on Windows)

For full functionality, you might also want to install:

  • GSL >=1.16
  • SciPy >=0.13.3
  • Matplotlib >= 2.0

To build the documentation:

  • Sphinx (>=7)

To run the test suite:

  • pytest
  • pytest-xdist (optional)

Testing status for master branch

Test status on GitHub Actions Publish status on GitHub Actions Test coverage Documentation Status

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

brian2-2.9.0.tar.gz (1.7 MB view details)

Uploaded Source

Built Distributions

brian2-2.9.0-cp313-cp313-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.13Windows x86-64

brian2-2.9.0-cp313-cp313-musllinux_1_2_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

brian2-2.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

brian2-2.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

brian2-2.9.0-cp313-cp313-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

brian2-2.9.0-cp313-cp313-macosx_10_13_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

brian2-2.9.0-cp312-cp312-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.12Windows x86-64

brian2-2.9.0-cp312-cp312-musllinux_1_2_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

brian2-2.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

brian2-2.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

brian2-2.9.0-cp312-cp312-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

brian2-2.9.0-cp312-cp312-macosx_10_13_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

brian2-2.9.0-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11Windows x86-64

brian2-2.9.0-cp311-cp311-musllinux_1_2_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

brian2-2.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

brian2-2.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

brian2-2.9.0-cp311-cp311-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

brian2-2.9.0-cp311-cp311-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

Details for the file brian2-2.9.0.tar.gz.

File metadata

  • Download URL: brian2-2.9.0.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for brian2-2.9.0.tar.gz
Algorithm Hash digest
SHA256 e4ddeec1cc23f37542e3d067acea2770623c264fbded144ca6d7a1b6cc3ca397
MD5 de7deda9f0bfe0ec0a21760f757c4e93
BLAKE2b-256 229491ec4f3e5f29c9714ac23ba51779774f7998b8b69ead7022605771e81f41

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0.tar.gz:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: brian2-2.9.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for brian2-2.9.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 35f1b29938aede9a51a4a39b08a85160cebec24905f6f41bf2ce97e57a01d382
MD5 df5da3ecfaceccc318fb2f58496e8237
BLAKE2b-256 5179463db22b7ef177a560a77a62775856c061c279bc17af1c974650cd955201

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp313-cp313-win_amd64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 df73170b7efaf898019b4fa48f0227b9eb9e08ebbacd7ec6fa26bf0030422c8b
MD5 6cbfab38e1d11932e59b58660f5c68a4
BLAKE2b-256 fe749730024221f53d5348746128972d8e360bfd027f02280ff1bb348a41822f

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp313-cp313-musllinux_1_2_x86_64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8fed84a0942f950505b00644e8481c51361719f10d30b32d9be1fc8c93f3baa5
MD5 9aa76812b928bbe771ee14f4c1a0c04d
BLAKE2b-256 d6a6d85262c953f5b66129b4321abf9049347eab46a758e9bcd070355f4c4a1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 da1f3965dc9e6530e02064b9170d349e9cec089ea0785ba8d30a5780cf2f0af1
MD5 c0d9adf7bd6a35f5290f38f6532b20ed
BLAKE2b-256 b92984890a96823079fc9429dd7e27529ce7c0326249dce097247ef3ffcc630d

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f33c8d47498fb173575a98335a7f7b3a87810044200292756f14fb5534c802cb
MD5 19b6462b1c315ea523a26e411e0f0ba4
BLAKE2b-256 6bded0ff6c5e5650742c4d34fff3b9b2e0c5dacdddd8360b2135e088b0c10b19

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 35c287570d99b66725c892f01fbb2c1d9f44a40b09f986d338c7167c04395209
MD5 547483ad436ae2ba4d930f081be5a82f
BLAKE2b-256 f4cbddc3292bda68b45ec20b4b88f04b9e9b2645c9401bc4ec5b77b6bdf023f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp313-cp313-macosx_10_13_x86_64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: brian2-2.9.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for brian2-2.9.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 95bbd0f8d6cbe30a277eb2d6bf41d5f375fb96baa155d78b4fa04e2eadd1cc47
MD5 9d0155da63044cd76b391db3a8b5e50c
BLAKE2b-256 73b3c442365c0f7067f346cd1ed7b80b685f2808f18479a7a96cb5f82ed3d436

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp312-cp312-win_amd64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6fa7e95972ca9f34e73ddf7395f65f9d4a21ae0a64e269082436760b269fe612
MD5 b53d4e345abde5539a97c23d5328fe2d
BLAKE2b-256 545dde83075f58dbf86f6c1fabeddb7df027313aeaf0a97dcc50e323b5b7e01b

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp312-cp312-musllinux_1_2_x86_64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c4b08fd6640689e6703248d9ebbe7d111e729e8ae17d7b6afa9cb8abb38e86e8
MD5 a44b34701de0809bc739570d7ca2d7a6
BLAKE2b-256 b2ecb60d49318396093225d1910e5cb1b19ba7f00786432d2d25487964d02d48

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4bad16bc94e29434b8da6d8a1a39469217978a902d151a9489ab75c285c96240
MD5 49815b095e9f9708e38b2a07a8ed6140
BLAKE2b-256 3d2c693fdb553f90c4b5868c0ad3c6f507b4641ef9ed36d3d3e2b61e9d7b892d

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbf1b88f29e50410a7956b9c9883dd11b7b8a6b5ec072a81e7ed55378b5ad35c
MD5 d85643fd74a1f6a5ba1cec57f3b380a4
BLAKE2b-256 beebb351e0b389980cb9022d2cecaec875cee1f8aab86d77ec6250173c71c8fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 a97253b30529b0b74c663f0c283034f70d732b26a4f53a722a8cfb1af63a5f81
MD5 662388ece7a511166ba13df747116eac
BLAKE2b-256 e881092ebfee00be0b90a7054d519fcf36e7a5c4afe9a8b6712872f4e8cac4f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp312-cp312-macosx_10_13_x86_64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: brian2-2.9.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for brian2-2.9.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 107bf8367d4c632cd8156cc975ffa3122d0f2aba4d145fccbd32b5636f95614b
MD5 6777e07ff491087805d2c0af4b00ea3f
BLAKE2b-256 c94c063f9a558ea571bdf5c767b3a10a83bb51cfddabec9665c98df7000efd7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp311-cp311-win_amd64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f23d9bcf7bb0912c9baba560abb2db91ceaceda6fe279619a90bf26b9952060b
MD5 d30c22a977e19117c4e0c4d8e14bfee7
BLAKE2b-256 e5a8d02f3d5549282d1d5602d645f0f42181a1c7ddd0f431ccf08c99c1161514

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp311-cp311-musllinux_1_2_x86_64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 deefb8e1d037fbb6002dfa54c6cc9f93f21346179348e520c6ceb07270361d8d
MD5 5a8fa5b506655ecfc7b17108a32f5fd5
BLAKE2b-256 bb91a39f035ac60ff2775217787cbe932bd82a6d8c541a2c5129995ad2090908

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e7b8c48ec909e298ee783b2593d896f0cf0563b5b984753f457b2e7db8cf773a
MD5 aa0ac40226e361fd8bdf4b1d8fe5d631
BLAKE2b-256 bddcf6f22c02812fb7571f17ca7cf0adf2827ff0a593763c25167480d4ce77e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8f16cbefa0eaff42b4b679d5547e3e432396ae3e9d19941354605ce30b4e050
MD5 a317ccaf713e3f9e8e62e79b426ac4e7
BLAKE2b-256 226a5c3348994fc4934a064fdb22586a611cbe1f7c88c616b97f947be480fd22

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish.yml on brian-team/brian2

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

File details

Details for the file brian2-2.9.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for brian2-2.9.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 57db78e3a7fff2317d6d355aa811e20b2999d81b012a58b3b8226b6811563801
MD5 b2ac5ad7ec7b11dcab6a872386d3d5fc
BLAKE2b-256 cde4c89002966057a1b7325bc77af763c3404ce34689b05573a76a2afbb6dac5

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2-2.9.0-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: publish.yml on brian-team/brian2

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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page