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.7.1.tar.gz (1.7 MB view details)

Uploaded Source

Built Distributions

Brian2-2.7.1-cp312-cp312-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.12 Windows x86-64

Brian2-2.7.1-cp312-cp312-musllinux_1_2_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

Brian2-2.7.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

Brian2-2.7.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

Brian2-2.7.1-cp312-cp312-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

Brian2-2.7.1-cp312-cp312-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

Brian2-2.7.1-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11 Windows x86-64

Brian2-2.7.1-cp311-cp311-musllinux_1_2_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

Brian2-2.7.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

Brian2-2.7.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

Brian2-2.7.1-cp311-cp311-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

Brian2-2.7.1-cp311-cp311-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

Brian2-2.7.1-cp310-cp310-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.10 Windows x86-64

Brian2-2.7.1-cp310-cp310-musllinux_1_2_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

Brian2-2.7.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

Brian2-2.7.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

Brian2-2.7.1-cp310-cp310-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

Brian2-2.7.1-cp310-cp310-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for brian2-2.7.1.tar.gz
Algorithm Hash digest
SHA256 9a9d71a3aa28626db5b3a15871e81076c1e65601fcd6eb15f487c833418cee57
MD5 00387f5020d19313a40c9af31c82d41b
BLAKE2b-256 7bbff191f929d6ca493765edb770950c73f202298f832c10d677c9c8cc66590b

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: Brian2-2.7.1-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/5.1.0 CPython/3.12.4

File hashes

Hashes for Brian2-2.7.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3753cefe997c75fb879c42e4d91b9c359e37df001e3a7344e86b571da513d80d
MD5 c63fa6df35e94cfa9baa30060c186e41
BLAKE2b-256 7a5fcac2f7882e0c78d6a4ba09e84f9f537ee8711317184fa4a47555abe4c593

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e59571f75b35a8ffc94ea3ca8ebf60ab3be5486d2e1c3d65a5e5e9f1a9f47405
MD5 339c8028ef2947764c627d9081a48789
BLAKE2b-256 98c9986980b26002a3550eee2ba2846650d2a38f69a3f72f7d2305dc83e229e4

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3646dd8cd85bb89b9ebcac33a2f653b12b7ce09ddbebfbabc102ffaa74de249d
MD5 4b33feccd6d687d3ca7905488d0f9d07
BLAKE2b-256 6c2074dd3f31dbe9c01ffb7715aaedf9941cc5f1599ff9c969b69a81f6e76f4c

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 21c5aa2a6b094acf9d62df27d14a031f5627272831bce38589573053446793d6
MD5 48ca4100b9fefa0dd7ed68b26a3f2a2e
BLAKE2b-256 d0f3d420a5a82934a4b2c0fa76738f6917b79ede1dca0cd4b25ab3557bc98e8e

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b355691d2fcb0549d007021c66cdb0e9e71bda7bdac0baf3f04f2707288ea988
MD5 ec4e9dbeda5c835ebfe9a1f6a7fd030b
BLAKE2b-256 5121e7c1c8ad45aa363c6c716bf64cd9b28ac4a4ab722f7a3e4410dc60dab532

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 63a0a1048319724deb2d6d05197d35608faaff5584f779df06174cc6631582c2
MD5 34fc6f4a0773c2ea9ee9293ec1affcb0
BLAKE2b-256 42c5484768d3b07d0116777f5870aa30cc3a4787535d29df95f1806681c37def

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: Brian2-2.7.1-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/5.1.0 CPython/3.12.4

File hashes

Hashes for Brian2-2.7.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0243ed3da5f33e7caebc445aa3654d1457a25fa4c698ecc73af4ffcf184ac82c
MD5 0f58e2a6d7b63f03464b668824430590
BLAKE2b-256 34a8634277f22039f95be9a38dfa6a071b66cf49d4b63a2c7590dee243f6317b

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 71893d30d6d7b4476ece96260ab4669ba3289fa74e1840ef8e49dc39a5f6a45c
MD5 8a0a3abe7b6e8e0ce63c337d70f04e95
BLAKE2b-256 7048eb33d19b9d689c84e6c391c42faf46cf95ecc81c3038ec41f7d7ec68dda7

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6108471f2bd10b43d8050e4db733e2768d290f1a769466169fb65d779e854a92
MD5 687e5ba66534c085b6ca28f67e44cad9
BLAKE2b-256 e0b240e564f391bfcf324dd17ad6bc0c7325f3d392035bd7f5468597dd07b206

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8bdb537efaf27589268512bf5cb730a47617869e3f7acc5294c73059479516dd
MD5 148f41266b18983314cc815a57dd0564
BLAKE2b-256 dfd486e48cde9fe6ce0f5f3d8a41bc077ebb7c273e966e7413ff51fa8a1f9a1c

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c8337f931348b61a71e84142c88301e96c360f6ad9f1e749b0c1e6a33d092ab
MD5 a12ba13b97c9c17af80b418a94f20b76
BLAKE2b-256 6d49e5c01c3ab1f0966d5025e92e3e1138b4d897031318b575622f58105e2e43

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 02e80ea2179ae6aeabdd7cc04080d7cba5245791bd06b6c98d016e10b965ea7c
MD5 b668ddbca45d33d9c853f379eae6689f
BLAKE2b-256 46f5c4618d16b3c0d696c3041f13cd40aa66fdf568323a6ba74a81f6778495f5

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: Brian2-2.7.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for Brian2-2.7.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 204ef9eb8f81312ba8da2e75b4f40a7503804daab2fad7474a346b4e52e9f4b6
MD5 e9faa832e5891c46bd86840fe5f7d047
BLAKE2b-256 1552b8ab02f6b09355d07e59ca5521d77d9d1663ca8443c6d66417a2fe95ce46

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 39d93b1f22bb228fa268e393688734ed28022905445b2e4b8dd38655683941f4
MD5 5ae1edc6bcc87b7039221023f47bd187
BLAKE2b-256 5c00f47ade6f803e7328461a68ccf612f16f2eb5f3a7f6eecdc7e6657c9986b2

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2fcf11798e181116f37ab2a5711403459d997cc2d58efcfcddec5773608d3c97
MD5 86b13d91ada70ff53a576079878518d3
BLAKE2b-256 2e68d72710d6fe5180d1c5ebbab87396fe517c23ca7928dca0ab0321a1cd0d86

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a6ce03844dc966f20b3a5c1358e9e01298c845fd9640b2ac71b90076a47916aa
MD5 ba6c909bf0e2654004dfddcc456c47c3
BLAKE2b-256 59059066a78914b2d52ceeb67309db8e48fba5619ad39d7d8c948c074dd26220

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 90dd0b23d0c5bba933c088de73fc7cc4d00b694fd365963b6a0d698af0e6b4eb
MD5 6154c326f4bc971dbc948eae829ccaa6
BLAKE2b-256 83c87bad7f42dd467227364a3fc9e086dbff910fa6efb08606f3cf23c7c2a4ed

See more details on using hashes here.

File details

Details for the file Brian2-2.7.1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for Brian2-2.7.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b8eee027ee8cac36455fce30365b1b7eca286ce70fd96acbd8ffe929978c9557
MD5 c41d7d9ea278c82e3234644d86013cd9
BLAKE2b-256 09dc279b54065d849ce56c2c96401d8d4514205639646b35f112d8cdec1c3f43

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