Installation
============
Prerequisites
------------
- Python 3.10 or higher
- ``uv`` package manager. See `uv installation guide `_ for instructions.
Installation Methods
-------------------
Using in Other Projects
^^^^^^^^^^^^^^^^^^^^^^
To install the package in another project, you should have access to the `Github repository `_.
Using just Github
~~~~~~~~~~~~~~~~
To add the package to your project, you can use the following command:
.. code-block:: bash
uv add git+https://github.com/malevichai/malevich-brain
Or install the package without adding it to the dependencies:
.. code-block:: bash
uv pip install git+https://github.com/malevichai/malevich-brain
Using a GitHub Personal Access Token (PAT)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You will need a GitHub Personal Access Token (PAT) with access to the repository. Replace ```` in the command below with your actual token:
.. code-block:: bash
uv add git+https://@github.com/malevichai/malevich-brain
**How to get a PAT:**
1. Go to `GitHub Settings > Developer settings > Personal access tokens `_.
2. Click "Generate new token" and select the appropriate scopes (at least ``repo`` access).
3. Copy the generated token and use it in the command above.
Using a Malevich AI PAT
~~~~~~~~~~~~~~~~~~~~~~
If you don't have access to the Github repository, you can use a Malevich AI PAT. For this, you should contact Alex (@lxbanov).
.. code-block:: bash
uv add git+https://@github.com/malevichai/brain
Development Installation
^^^^^^^^^^^^^^^^^^^^^^^
To install the package for development, you should clone the repository and install the package from the local source:
.. code-block:: bash
git clone https://github.com/malevichai/brain /path/to/brain
uv pip install -e /path/to/brain # Editable install to allow for development