nexaai 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nexaai might be problematic. Click here for more details.
- nexaai-0.1.0/PKG-INFO +30 -0
- nexaai-0.1.0/README.md +21 -0
- nexaai-0.1.0/nexaai/__init__.py +1 -0
- nexaai-0.1.0/nexaai/calculator.py +24 -0
- nexaai-0.1.0/nexaai.egg-info/PKG-INFO +30 -0
- nexaai-0.1.0/nexaai.egg-info/SOURCES.txt +11 -0
- nexaai-0.1.0/nexaai.egg-info/dependency_links.txt +1 -0
- nexaai-0.1.0/nexaai.egg-info/requires.txt +1 -0
- nexaai-0.1.0/nexaai.egg-info/top_level.txt +1 -0
- nexaai-0.1.0/pyproject.toml +11 -0
- nexaai-0.1.0/setup.cfg +4 -0
- nexaai-0.1.0/setup.py +20 -0
- nexaai-0.1.0/test/test_calculator.py +25 -0
nexaai-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: nexaai
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Nexa AI library for super ai agent
|
|
5
|
+
Author: Nexa AI team
|
|
6
|
+
License: MIT
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Requires-Dist: numpy
|
|
9
|
+
|
|
10
|
+
# NexaAI Python Library
|
|
11
|
+
|
|
12
|
+
Welcome to the `nexaai` library, the starting point of an exciting journey with NexaAI. This library is developed and maintained by NexaAI, aiming to provide simple yet effective tools for various computational tasks.
|
|
13
|
+
|
|
14
|
+
## Introduction
|
|
15
|
+
|
|
16
|
+
The `nexaai` library is designed to be straightforward and user-friendly, catering to a wide range of users, from beginners in Python to seasoned developers looking for efficient solutions. Our initial release includes basic arithmetic operations, encapsulated in an easy-to-use class interface.
|
|
17
|
+
|
|
18
|
+
## Features
|
|
19
|
+
|
|
20
|
+
- **Arithmetic Operations**: Perform basic arithmetic operations like addition, subtraction, multiplication, and division.
|
|
21
|
+
- **Intuitive Design**: Easy-to-understand class methods for quick computations.
|
|
22
|
+
- **Robust Error Handling**: Gracefully handles erroneous inputs and provides informative feedback.
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
You can install the `nexaai` library directly from PyPI:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install nexaai
|
|
30
|
+
```
|
nexaai-0.1.0/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# NexaAI Python Library
|
|
2
|
+
|
|
3
|
+
Welcome to the `nexaai` library, the starting point of an exciting journey with NexaAI. This library is developed and maintained by NexaAI, aiming to provide simple yet effective tools for various computational tasks.
|
|
4
|
+
|
|
5
|
+
## Introduction
|
|
6
|
+
|
|
7
|
+
The `nexaai` library is designed to be straightforward and user-friendly, catering to a wide range of users, from beginners in Python to seasoned developers looking for efficient solutions. Our initial release includes basic arithmetic operations, encapsulated in an easy-to-use class interface.
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- **Arithmetic Operations**: Perform basic arithmetic operations like addition, subtraction, multiplication, and division.
|
|
12
|
+
- **Intuitive Design**: Easy-to-understand class methods for quick computations.
|
|
13
|
+
- **Robust Error Handling**: Gracefully handles erroneous inputs and provides informative feedback.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
You can install the `nexaai` library directly from PyPI:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install nexaai
|
|
21
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from nexaai.calculator import Calculator
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import numpy as np
|
|
2
|
+
|
|
3
|
+
class Calculator:
|
|
4
|
+
def __init__(self):
|
|
5
|
+
"""Calculator class for basic arithmetic operations."""
|
|
6
|
+
|
|
7
|
+
def add(self, a, b):
|
|
8
|
+
"""Add two numbers."""
|
|
9
|
+
return np.add(a, b)
|
|
10
|
+
|
|
11
|
+
def subtract(self, a, b):
|
|
12
|
+
"""Subtract two numbers."""
|
|
13
|
+
return np.subtract(a, b)
|
|
14
|
+
|
|
15
|
+
def multiply(self, a, b):
|
|
16
|
+
"""Multiply two numbers."""
|
|
17
|
+
return np.multiply(a, b)
|
|
18
|
+
|
|
19
|
+
def divide(self, a, b):
|
|
20
|
+
"""Divide two numbers. Returns np.nan if division by zero occurs."""
|
|
21
|
+
# Using np.divide which handles division by zero gracefully
|
|
22
|
+
if b == 0:
|
|
23
|
+
raise ZeroDivisionError("Cannot divide by zero!")
|
|
24
|
+
return np.divide(a, b)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: nexaai
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Nexa AI library for super ai agent
|
|
5
|
+
Author: Nexa AI team
|
|
6
|
+
License: MIT
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Requires-Dist: numpy
|
|
9
|
+
|
|
10
|
+
# NexaAI Python Library
|
|
11
|
+
|
|
12
|
+
Welcome to the `nexaai` library, the starting point of an exciting journey with NexaAI. This library is developed and maintained by NexaAI, aiming to provide simple yet effective tools for various computational tasks.
|
|
13
|
+
|
|
14
|
+
## Introduction
|
|
15
|
+
|
|
16
|
+
The `nexaai` library is designed to be straightforward and user-friendly, catering to a wide range of users, from beginners in Python to seasoned developers looking for efficient solutions. Our initial release includes basic arithmetic operations, encapsulated in an easy-to-use class interface.
|
|
17
|
+
|
|
18
|
+
## Features
|
|
19
|
+
|
|
20
|
+
- **Arithmetic Operations**: Perform basic arithmetic operations like addition, subtraction, multiplication, and division.
|
|
21
|
+
- **Intuitive Design**: Easy-to-understand class methods for quick computations.
|
|
22
|
+
- **Robust Error Handling**: Gracefully handles erroneous inputs and provides informative feedback.
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
You can install the `nexaai` library directly from PyPI:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install nexaai
|
|
30
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
setup.py
|
|
4
|
+
nexaai/__init__.py
|
|
5
|
+
nexaai/calculator.py
|
|
6
|
+
nexaai.egg-info/PKG-INFO
|
|
7
|
+
nexaai.egg-info/SOURCES.txt
|
|
8
|
+
nexaai.egg-info/dependency_links.txt
|
|
9
|
+
nexaai.egg-info/requires.txt
|
|
10
|
+
nexaai.egg-info/top_level.txt
|
|
11
|
+
test/test_calculator.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
numpy
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nexaai
|
nexaai-0.1.0/setup.cfg
ADDED
nexaai-0.1.0/setup.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from setuptools import find_packages, setup
|
|
2
|
+
|
|
3
|
+
# Read the contents of your README file
|
|
4
|
+
with open('README.md', encoding='utf-8') as f:
|
|
5
|
+
long_description = f.read()
|
|
6
|
+
|
|
7
|
+
setup(
|
|
8
|
+
name='nexaai', # the name of your library
|
|
9
|
+
packages=find_packages(include=['nexaai']), # directory where your Python code is
|
|
10
|
+
version='0.1.0',
|
|
11
|
+
description='Nexa AI library for super ai agent',
|
|
12
|
+
long_description=long_description,
|
|
13
|
+
long_description_content_type='text/markdown',
|
|
14
|
+
author='Nexa AI team',
|
|
15
|
+
license='MIT', # or your choice of license
|
|
16
|
+
install_requires=['numpy'],
|
|
17
|
+
setup_requires=['pytest-runner'],
|
|
18
|
+
tests_require=['pytest>=4.4.1'], # specify a minimum version instead
|
|
19
|
+
test_suite='tests',
|
|
20
|
+
)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from nexaai import Calculator
|
|
2
|
+
|
|
3
|
+
def test_add():
|
|
4
|
+
calc = Calculator()
|
|
5
|
+
assert calc.add(10, 5) == 15
|
|
6
|
+
assert calc.add(-1, 1) == 0
|
|
7
|
+
assert calc.add(-1, -1) == -2
|
|
8
|
+
|
|
9
|
+
def test_subtract():
|
|
10
|
+
calc = Calculator()
|
|
11
|
+
assert calc.subtract(10, 5) == 5
|
|
12
|
+
assert calc.subtract(-1, 1) == -2
|
|
13
|
+
assert calc.subtract(-1, -1) == 0
|
|
14
|
+
|
|
15
|
+
def test_multiply():
|
|
16
|
+
calc = Calculator()
|
|
17
|
+
assert calc.multiply(10, 5) == 50
|
|
18
|
+
assert calc.multiply(-1, 1) == -1
|
|
19
|
+
assert calc.multiply(-1, -1) == 1
|
|
20
|
+
|
|
21
|
+
def test_divide():
|
|
22
|
+
calc = Calculator()
|
|
23
|
+
assert calc.divide(10, 5) == 2
|
|
24
|
+
assert calc.divide(-1, 1) == -1
|
|
25
|
+
assert calc.divide(-1, -1) == 1
|