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

Uploaded Source

Built Distributions

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

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

Brian2-2.7.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.7.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.7.0-cp312-cp312-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.9+ x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

Brian2-2.7.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.7.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.7.0-cp311-cp311-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.9+ x86-64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for brian2-2.7.0.tar.gz
Algorithm Hash digest
SHA256 77d1835a9f021888dea6b59fe13b5c855777ea09a8dfa1c146404e2da4576e9a
MD5 e03a0a4af46ec4142c5f15172c4e6f01
BLAKE2b-256 d0a1984d1f17decdfce33b12b12c81bdb87a26f6da89e4941ea5b9bc605ba55e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Brian2-2.7.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/5.0.0 CPython/3.12.3

File hashes

Hashes for Brian2-2.7.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6c7fa674f5729f1fd1bf8594bb2375f194318f1d0ff2d8220b36f866f2705cf7
MD5 2532eee3fdec99ea0764d397b35c8a01
BLAKE2b-256 31d204c66cdc77c16b6edb4f43b2342ea0f3aac0a4902be4a016fcb31a15a1fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7ab9ce011ce9f200dea6a17ad1c81c4cd69f79bb3cf4472c0def0dd060226649
MD5 3d716857ae8a59ba8944e8fb575c5556
BLAKE2b-256 cc4a7ab58a6d30bcc5d8e5de6f72fc710d78bd30b7bf54b0c8eb0c13c85816c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d05ce121533a80939f4c8d21c5736e293bc29005c5129b4e2fd83512b977b2be
MD5 2cca1f457ced1539740a082fb2e4c7ab
BLAKE2b-256 3b705547db6179b32f3cd3523d07eba7cf51c3e016babcca7a96e8229259db58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 768b5caea2f71b34db92ba4ed417f30c40654fe4ba8b652afc824238ba9dc9a9
MD5 e434b637decfdaf29a6a669543183af8
BLAKE2b-256 b65b7f8b296ad9540adb63a79ca06a899b313fca248c736933fe6d805f925147

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82ff1207d585456d50e841e156976f2ae818eab67ffeab2936d866c78832c16c
MD5 28cc15104fcb6320d83ef75301a4f73f
BLAKE2b-256 c8743fba9dd3ae0f67f8ff8664c2e1e8a353a7ab9427752f01b8f29f967f0fca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bbe071ecee039ef57267e56c081c92a4ef6bc1f59224cfd4d4bd9a0f0517851a
MD5 bc0aae4f7283e12486bb7f5af116594b
BLAKE2b-256 2382fc4483c78d1094055066eaa084d30efd4d3a1a78193facf93f4b00c5da4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Brian2-2.7.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/5.0.0 CPython/3.12.3

File hashes

Hashes for Brian2-2.7.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 47589a490b79eff75332ef349a4b5e46e586dc33827da03135ed799ea007d1e2
MD5 4753efeb4b6587675bd3d99836ff87a7
BLAKE2b-256 26d93e2a30b558654ba6ebbef5c645935ef135383392800325420a54b5fa240a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 41f329c822ecf3a40e04268c43634bf9574ba8dc9b7c9def8639b83a428aea67
MD5 0154298aac3c7105ea1131cf82ab83b0
BLAKE2b-256 bd296fd72c2d96096e807905ad60b323b7d07bb0bea06178327f572733333ab5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e562c9e201b7b640d6a9a3acd0d2897f16daff78c05229333731f581c93ad071
MD5 86d6363e27e9d9bac2a000d172525743
BLAKE2b-256 4af2d9bcdb914fa829991434f0e6f5fc13c614a7ce2acd7db00c9b867a76edff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 436b75bbefb6d691ab19bbc2525f8e81300265fac10b85699252e566360939b4
MD5 a4a933e37e0e5e7e8424ad1905135810
BLAKE2b-256 6977db4eb1be8e851ff9a6ef3b3b79bceaaeb05132e81e33c8be3859247193d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c09e34515d8f4f357b4db5367b391d896bfa7d3db06593a8a78a7ee1f5f13c3
MD5 b51596a0c4cd9022c1818d35f4a732be
BLAKE2b-256 417e3f3cb566e3fce39161122e284fad98c2c83b105a4b4837ee0b2aae14f29a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a8d6c71f13b5f3b1b6d608dc218dfe67c048c83e72ced9642f03c380656c06d1
MD5 558f925533592fdc4c4937fd8d05ffd1
BLAKE2b-256 eaa1009279a3d389efb34cc62e2a6d4f52ccc3f22746810ce47c74c949fbd640

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Brian2-2.7.0-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.0.0 CPython/3.12.3

File hashes

Hashes for Brian2-2.7.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2368192ca8d0379e6ba8e704aef6bf6c95732434fc6a79597f4a560183774b8d
MD5 ab733a636a04cd6d40b3db7721f5b2ec
BLAKE2b-256 6e66b25d9abde76c67f305b60b189c63ada13cf5787ae1926d221a2b87163494

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 745251f30da927543cd122eb6c502fd7430a908d4561d423d095ea800000eed5
MD5 a4a62eb0e0284e3d48d77ca7370c63ea
BLAKE2b-256 48fb8a4d1ae8a1ba765ba3a92a74ce95c672a16f0d8c0629289fcfcf10afdb59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 43ac57301cf8a7a4f67a130c542b75ee232df13668cfcde64193f351260487bb
MD5 4255c94a9cdd46bd0fb7536f01358167
BLAKE2b-256 b2d1c589e1ca2737ad862332c63d3adbba6e2e14f95f24049c7347d4cd5cfa2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 85a3ee7c0caabcc391ad9ed5ed9e2ecca0d13f10d49ed302d91301200969992b
MD5 f0591b93c5b3cb2e5a5c2dbaee8d339f
BLAKE2b-256 a24df8a951a7b6b56e718d54b037d60c096f01b27b82bd22a754942fa3ab052e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 090fa345cfc080c6cc75b6077b1669f1bbb162c4b3e6487636c10950e86d0e6a
MD5 c5c1d6518b1d1ceb0b54006eae879431
BLAKE2b-256 ff864ef87e3ffb2a2291374d08b3ed2851a7283445ee28254820e2c186a48f0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Brian2-2.7.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 82a974030c0b32f58e88d23897b5ee99dcb397adfa915398096d8c28eb93790a
MD5 405c605136583ef58e98e9f0ea15bafe
BLAKE2b-256 69fd1676bd80002b2711016242ec7e538d421d923f5e2b839ab17c8ec6fe96c2

See more details on using hashes here.

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