neutron-ai


Nameneutron-ai JSON
Version 1.0.0b7 PyPI version JSON
download
home_pagehttps://github.com/berylliumsec/neutron
SummaryAI Powered Ethical Hacking Assistant
upload_time2024-04-30 21:07:12
maintainerNone
docs_urlNone
authorDavid I
requires_python>=3.10
licenseBSD
keywords ai ethical hacking
VCS
bugtrack_url
requirements fastapi uvicorn pydantic torch transformers regex argparse typing-extensions langchain_community langchain_core
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Neutron

Welcome to Neutron.

![Neutron](/images/neutron.png)

## Galaxy

- [Neutron](#Neutron)
  - [Galaxy](#galaxy)
  - [Acknowledgement](#acknowledgement)
  - [Why Neutron?](#why-Neutron)
  - [Compatibility](#compatibility)
  - [System dependencies and installation](#system-dependencies)
  - [Upgrading](#upgrading)
  - [Usage.](#usage)



## Acknowledgement

**First i would like to thank the All-Mighty God who is the source of all knowledge, without Him, this would not be possible.**

## **Disclaimer: AI can make mistakes, consider cross-checking suggestions.**

## 🌐 Introducing Nebula Pro: A New Era in Ethical Hacking 🌐

🚀 We're thrilled to unveil a sneak peek of Nebula Pro, our latest innovation designed to empower ethical hackers with advanced, AI-driven capabilities. After months of dedicated development, we have launched the preview version. Some of the exciting features are:

- AI Powered Autonomous Mode
- AI Powered Suggestions
- AI Powered Note Taking

**Neutron is now a part of Nebula Pro's free tier**
# 📺 [Click Here to Get Access To Nebula Pro Now](https://www.berylliumsec.com/nebula-pro-waitlist) 🚀



## Why Neutron?

The purpose of Neutron is straightforward: to provide security professionals  with access to a free AI assistant that can be invoked directly from their command line interface. It was built as part of the free tier of [Nebula Pro](https://www.berylliumsec.com/nebula-pro-waitlist).


## [Click Here to Watch Neutron in Action](https://youtu.be/v5X8TNPsMbM)


## Compatibility

Neutron has been extensively tested and optimized for Linux platforms. As of now, its functionality on Windows or macOS is not guaranteed, and it may not operate as expected.

## System dependencies

- Storage: A minimum of 50GB is recommended.

- RAM: A minimum of 32GB RAM memory is recommended.

- At least 12GB of GPU is recommended, a minimum of 8GB is required

- Graphics Processing Unit (GPU) (NOT MANDATORY, Neutron can run on CPU): While not mandatory, having at least 24GB of GPU memory is recommended for optimal performance.


**PYPI based distribution requirement(s)**

- Python3: Version 3.10 or later is required for compatibility with all used libraries.
- PyTorch: A machine learning library for Python, used for computations and serving as a foundation for the Transformers library.
- Transformers library by Hugging Face: Provides state-of-the-art machine learning techniques for natural language processing tasks.      Required for models and tilities used in NLP operations.
- FastAPI: A modern, fast (high-performance) web framework for building APIs with Python 3.7+ based on standard Python type hints.
- Uvicorn: An ASGI server for Python, needed to run FastAPI applications.
- Pydantic: Data validation and settings management using Python type annotations, utilized within FastAPI applications.
- Langchain Community and Core libraries : Utilized for specific functionalities related to embeddings, vector stores, and more in the context of language processing.
- Regular Expressions (re module in Python Standard Library): Utilized for string operations
- Requests library

To install the above dependencies:

```bash
pip install fastapi uvicorn pydantic torch transformers regex argparse typing-extensions langchain_community langchain_core

```

**PIP**:

```
pip install neutron-ai
```

## Upgrading

For optimal performance and to ensure access to the most recent advancements, we consistently release updates and refinements to our models. Neutron will proactively inform you of any available updates to the package or the models upon each execution.

PIP:

```bash
pip install neutron-ai --upgrade
```

## Usage.

### Server

``` bash
usage: server.py [-h] [--host HOST] [--port PORT]

Run the FastAPI server.

options:
  -h, --help   show this help message and exit
  --host HOST  The hostname to listen on. Default is 0.0.0.0.
  --port PORT  The port of the webserver. Default is 8000.
```

The server can be invoked using the following command after installation using pip:

```
neutron-server 0.0.0.0 8000
```

### Client

```bash
usage: client.py [-h] [--server_url SERVER_URL] question

Send a question to the AI server.

positional arguments:
  question              The question to ask the AI server.

options:
  -h, --help            show this help message and exit
  --server_url SERVER_URL
                        The URL of the AI server, defaults to http://localhost:8000
```

The client can be invoked using the following command after installation using pip:

```bash
neutron-client "your question"
```


To use Neutron AI directly from the command line using a shorter alias for example AN, add the following function to your .bashrc or .zshrc:

```bash
function AN() {
    local query="$*"
    neutron-client "$query"
}

```
After adding, restart your terminal or run 'source ~/.bashrc' (or 'source ~/.zshrc') to apply the changes.

Then after starting the server, you can ask your questions like so:

```bash
AN your question
```

### Authentication

To use a password for the server and client simply add it to your ENVs before you run the server and the client like so:

```bash
export NEUTRON_TOKEN="YOUR_SECRET"
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/berylliumsec/neutron",
    "name": "neutron-ai",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "AI, Ethical Hacking",
    "author": "David I",
    "author_email": "david@berylliumsec.com",
    "download_url": "https://files.pythonhosted.org/packages/e4/ca/62a7249582a44198839b7ed90855bef66e8bcd9770a65076f86a6f130a46/neutron_ai-1.0.0b7.tar.gz",
    "platform": null,
    "description": "# Neutron\n\nWelcome to Neutron.\n\n![Neutron](/images/neutron.png)\n\n## Galaxy\n\n- [Neutron](#Neutron)\n  - [Galaxy](#galaxy)\n  - [Acknowledgement](#acknowledgement)\n  - [Why Neutron?](#why-Neutron)\n  - [Compatibility](#compatibility)\n  - [System dependencies and installation](#system-dependencies)\n  - [Upgrading](#upgrading)\n  - [Usage.](#usage)\n\n\n\n## Acknowledgement\n\n**First i would like to thank the All-Mighty God who is the source of all knowledge, without Him, this would not be possible.**\n\n## **Disclaimer: AI can make mistakes, consider cross-checking suggestions.**\n\n## \ud83c\udf10 Introducing Nebula Pro: A New Era in Ethical Hacking \ud83c\udf10\n\n\ud83d\ude80 We're thrilled to unveil a sneak peek of Nebula Pro, our latest innovation designed to empower ethical hackers with advanced, AI-driven capabilities. After months of dedicated development, we have launched the preview version. Some of the exciting features are:\n\n- AI Powered Autonomous Mode\n- AI Powered Suggestions\n- AI Powered Note Taking\n\n**Neutron is now a part of Nebula Pro's free tier**\n# \ud83d\udcfa [Click Here to Get Access To Nebula Pro Now](https://www.berylliumsec.com/nebula-pro-waitlist) \ud83d\ude80\n\n\n\n## Why Neutron?\n\nThe purpose of Neutron is straightforward: to provide security professionals  with access to a free AI assistant that can be invoked directly from their command line interface. It was built as part of the free tier of [Nebula Pro](https://www.berylliumsec.com/nebula-pro-waitlist).\n\n\n## [Click Here to Watch Neutron in Action](https://youtu.be/v5X8TNPsMbM)\n\n\n## Compatibility\n\nNeutron has been extensively tested and optimized for Linux platforms. As of now, its functionality on Windows or macOS is not guaranteed, and it may not operate as expected.\n\n## System dependencies\n\n- Storage: A minimum of 50GB is recommended.\n\n- RAM: A minimum of 32GB RAM memory is recommended.\n\n- At least 12GB of GPU is recommended, a minimum of 8GB is required\n\n- Graphics Processing Unit (GPU) (NOT MANDATORY, Neutron can run on CPU): While not mandatory, having at least 24GB of GPU memory is recommended for optimal performance.\n\n\n**PYPI based distribution requirement(s)**\n\n- Python3: Version 3.10 or later is required for compatibility with all used libraries.\n- PyTorch: A machine learning library for Python, used for computations and serving as a foundation for the Transformers library.\n- Transformers library by Hugging Face: Provides state-of-the-art machine learning techniques for natural language processing tasks.      Required for models and tilities used in NLP operations.\n- FastAPI: A modern, fast (high-performance) web framework for building APIs with Python 3.7+ based on standard Python type hints.\n- Uvicorn: An ASGI server for Python, needed to run FastAPI applications.\n- Pydantic: Data validation and settings management using Python type annotations, utilized within FastAPI applications.\n- Langchain Community and Core libraries : Utilized for specific functionalities related to embeddings, vector stores, and more in the context of language processing.\n- Regular Expressions (re module in Python Standard Library): Utilized for string operations\n- Requests library\n\nTo install the above dependencies:\n\n```bash\npip install fastapi uvicorn pydantic torch transformers regex argparse typing-extensions langchain_community langchain_core\n\n```\n\n**PIP**:\n\n```\npip install neutron-ai\n```\n\n## Upgrading\n\nFor optimal performance and to ensure access to the most recent advancements, we consistently release updates and refinements to our models. Neutron will proactively inform you of any available updates to the package or the models upon each execution.\n\nPIP:\n\n```bash\npip install neutron-ai --upgrade\n```\n\n## Usage.\n\n### Server\n\n``` bash\nusage: server.py [-h] [--host HOST] [--port PORT]\n\nRun the FastAPI server.\n\noptions:\n  -h, --help   show this help message and exit\n  --host HOST  The hostname to listen on. Default is 0.0.0.0.\n  --port PORT  The port of the webserver. Default is 8000.\n```\n\nThe server can be invoked using the following command after installation using pip:\n\n```\nneutron-server 0.0.0.0 8000\n```\n\n### Client\n\n```bash\nusage: client.py [-h] [--server_url SERVER_URL] question\n\nSend a question to the AI server.\n\npositional arguments:\n  question              The question to ask the AI server.\n\noptions:\n  -h, --help            show this help message and exit\n  --server_url SERVER_URL\n                        The URL of the AI server, defaults to http://localhost:8000\n```\n\nThe client can be invoked using the following command after installation using pip:\n\n```bash\nneutron-client \"your question\"\n```\n\n\nTo use Neutron AI directly from the command line using a shorter alias for example AN, add the following function to your .bashrc or .zshrc:\n\n```bash\nfunction AN() {\n    local query=\"$*\"\n    neutron-client \"$query\"\n}\n\n```\nAfter adding, restart your terminal or run 'source ~/.bashrc' (or 'source ~/.zshrc') to apply the changes.\n\nThen after starting the server, you can ask your questions like so:\n\n```bash\nAN your question\n```\n\n### Authentication\n\nTo use a password for the server and client simply add it to your ENVs before you run the server and the client like so:\n\n```bash\nexport NEUTRON_TOKEN=\"YOUR_SECRET\"\n```\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "AI Powered Ethical Hacking Assistant",
    "version": "1.0.0b7",
    "project_urls": {
        "Homepage": "https://github.com/berylliumsec/neutron"
    },
    "split_keywords": [
        "ai",
        " ethical hacking"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1c0de1f3731e140cea2b7367c03fefa08be130d7c2774a0ae5ce5445b051196b",
                "md5": "b7b767f228a10d13344730886e9c92d4",
                "sha256": "8d45a97aa2c5ff610538fe2dee842e18eb06633575131cd84037ee8d432d12dc"
            },
            "downloads": -1,
            "filename": "neutron_ai-1.0.0b7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b7b767f228a10d13344730886e9c92d4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 12436,
            "upload_time": "2024-04-30T21:07:11",
            "upload_time_iso_8601": "2024-04-30T21:07:11.623673Z",
            "url": "https://files.pythonhosted.org/packages/1c/0d/e1f3731e140cea2b7367c03fefa08be130d7c2774a0ae5ce5445b051196b/neutron_ai-1.0.0b7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e4ca62a7249582a44198839b7ed90855bef66e8bcd9770a65076f86a6f130a46",
                "md5": "dbfb27f136dd822572e5a03b20698b48",
                "sha256": "7dfe59533cd3c8be96aa19c37cc27e64d8242a9d1826808a00ec62f861b50837"
            },
            "downloads": -1,
            "filename": "neutron_ai-1.0.0b7.tar.gz",
            "has_sig": false,
            "md5_digest": "dbfb27f136dd822572e5a03b20698b48",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 13487,
            "upload_time": "2024-04-30T21:07:12",
            "upload_time_iso_8601": "2024-04-30T21:07:12.958015Z",
            "url": "https://files.pythonhosted.org/packages/e4/ca/62a7249582a44198839b7ed90855bef66e8bcd9770a65076f86a6f130a46/neutron_ai-1.0.0b7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-30 21:07:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "berylliumsec",
    "github_project": "neutron",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "fastapi",
            "specs": []
        },
        {
            "name": "uvicorn",
            "specs": []
        },
        {
            "name": "pydantic",
            "specs": []
        },
        {
            "name": "torch",
            "specs": []
        },
        {
            "name": "transformers",
            "specs": []
        },
        {
            "name": "regex",
            "specs": []
        },
        {
            "name": "argparse",
            "specs": []
        },
        {
            "name": "typing-extensions",
            "specs": []
        },
        {
            "name": "langchain_community",
            "specs": []
        },
        {
            "name": "langchain_core",
            "specs": []
        }
    ],
    "lcname": "neutron-ai"
}
        
Elapsed time: 0.27603s