Metadata-Version: 2.1
Name: brainpylib
Version: 0.2.1
Summary: C++/CUDA Library for BrainPy
Home-page: https://github.com/brainpy/BrainPy
Author: BrainPy team
Author-email: chao.brain@qq.com
License: GPL-3.0 license
Keywords: event-driven computation,sparse computation,brainpy
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.8,<3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'

# brainpylib: C++/CUDA Library for [BrainPy](https://github.com/brainpy/BrainPy)


<p align="center">
	<a href="https://pypi.org/project/brainpylib/"><img alt="Supported Python Version" src="https://img.shields.io/pypi/pyversions/brainpylib"></a>
	<a href="https://github.com/brainpy/brainpylib"><img alt="LICENSE" src="https://img.shields.io/badge/License-GPL_3.0-blue.svg"></a>
  	<a href="https://badge.fury.io/py/brainpylib"><img alt="PyPI version" src="https://badge.fury.io/py/brainpylib.svg"></a>
</p>


``brainpylib`` aims to provide operators for sparse and event-driven computations commonly used in brain dynamics programming. 


## Install

``brainpylib`` is based on Python (>=3.7) and can be installed on  Linux (Ubuntu 16.04 or later), macOS (10.12 or later), and Windows platforms. Install the latest version of ``brainpylib``:

```bash
$ pip install brainpylib -U
```


## Build from source

On CPU device:

```bash
rm -rf build
pip uninstall brainpylib -y
python setup.py bdist_wheel
pip install dist/brainpylib*
```

On GPU device:

```bash
rm -rf build
pip uninstall brainpylib -y
python setup_cuda.py bdist_wheel
pip install dist/brainpylib*
```


## Citing

If you are using `brainpylib`, please consider citing [the corresponding papers](https://brainpy.readthedocs.io/en/latest/tutorial_FAQs/citing_and_publication.html). 



