FeatureRank 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.
- featurerank-0.1.0/.gitignore +63 -0
- featurerank-0.1.0/CHANGELOG.md +25 -0
- featurerank-0.1.0/LICENSE +21 -0
- featurerank-0.1.0/PKG-INFO +115 -0
- featurerank-0.1.0/PUBLISHING.md +54 -0
- featurerank-0.1.0/README.md +90 -0
- featurerank-0.1.0/pyproject.toml +42 -0
- featurerank-0.1.0/src/FeatureRank/__init__.py +3 -0
- featurerank-0.1.0/src/FeatureRank/basic_operator.py +16 -0
- featurerank-0.1.0/test.py +6 -0
- featurerank-0.1.0/tests/test_basic_operator.py +26 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
*.manifest
|
|
32
|
+
*.spec
|
|
33
|
+
|
|
34
|
+
# Unit test / coverage reports
|
|
35
|
+
htmlcov/
|
|
36
|
+
.tox/
|
|
37
|
+
.nox/
|
|
38
|
+
.coverage
|
|
39
|
+
.coverage.*
|
|
40
|
+
.cache
|
|
41
|
+
nosetests.xml
|
|
42
|
+
coverage.xml
|
|
43
|
+
*.cover
|
|
44
|
+
*.py,cover
|
|
45
|
+
.hypothesis/
|
|
46
|
+
.pytest_cache/
|
|
47
|
+
|
|
48
|
+
# IDEs
|
|
49
|
+
.vscode/
|
|
50
|
+
.idea/
|
|
51
|
+
*.swp
|
|
52
|
+
*.swo
|
|
53
|
+
*~
|
|
54
|
+
.DS_Store
|
|
55
|
+
|
|
56
|
+
# Virtual environments
|
|
57
|
+
venv/
|
|
58
|
+
ENV/
|
|
59
|
+
env/
|
|
60
|
+
.venv
|
|
61
|
+
|
|
62
|
+
# Poetry
|
|
63
|
+
poetry.lock
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.1.0] - 2026-03-18
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Initial release
|
|
14
|
+
- `add()` function for addition
|
|
15
|
+
- `subtract()` function for subtraction
|
|
16
|
+
- `multiply()` function for multiplication
|
|
17
|
+
- `divide()` function for division with error handling
|
|
18
|
+
- Comprehensive test suite
|
|
19
|
+
- Documentation (README, API docs, Development guide)
|
|
20
|
+
|
|
21
|
+
### Initial Features
|
|
22
|
+
- Basic arithmetic operations
|
|
23
|
+
- Type hints for all functions
|
|
24
|
+
- Error handling for division by zero
|
|
25
|
+
- Full test coverage
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sercan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: FeatureRank
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A lightweight Python library for basic arithmetic operations.
|
|
5
|
+
Author: Sercan
|
|
6
|
+
License: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: arithmetic,calculator,library,math,operations
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
18
|
+
Classifier: Topic :: Utilities
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Provides-Extra: dev
|
|
21
|
+
Requires-Dist: build>=1.2.2; extra == 'dev'
|
|
22
|
+
Requires-Dist: pytest>=8.3.0; extra == 'dev'
|
|
23
|
+
Requires-Dist: twine>=5.1.0; extra == 'dev'
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# DeepRanker
|
|
27
|
+
|
|
28
|
+
[](https://www.python.org/downloads/)
|
|
29
|
+
[](LICENSE)
|
|
30
|
+
|
|
31
|
+
DeepRanker is a lightweight Python library that provides basic arithmetic operations. It's designed to be simple, efficient, and easy to integrate into your projects.
|
|
32
|
+
|
|
33
|
+
## Features
|
|
34
|
+
|
|
35
|
+
- ✨ Simple and intuitive API
|
|
36
|
+
- 🔢 Basic arithmetic operations (add, subtract, multiply, divide)
|
|
37
|
+
- 🛡️ Type hints for better code clarity
|
|
38
|
+
- ✅ Comprehensive error handling
|
|
39
|
+
- 🧪 Full test coverage
|
|
40
|
+
|
|
41
|
+
## Installation
|
|
42
|
+
|
|
43
|
+
Install FeatureRank from PyPI:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
pip install deepranker
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Or install from source:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
git clone https://github.com/yourusername/deepranker.git
|
|
53
|
+
cd deepranker
|
|
54
|
+
pip install -e .
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Quick Start
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
from FeatureRank import add, subtract, multiply, divide
|
|
61
|
+
|
|
62
|
+
print(add(10, 5)) # 15
|
|
63
|
+
print(subtract(10, 5)) # 5
|
|
64
|
+
print(multiply(10, 5)) # 50
|
|
65
|
+
print(divide(10, 5)) # 2.0
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Available Functions
|
|
69
|
+
|
|
70
|
+
| Function | Description |
|
|
71
|
+
|----------|-------------|
|
|
72
|
+
| `add(a, b)` | Returns the sum of two numbers |
|
|
73
|
+
| `subtract(a, b)` | Returns the difference of two numbers |
|
|
74
|
+
| `multiply(a, b)` | Returns the product of two numbers |
|
|
75
|
+
| `divide(a, b)` | Returns the quotient of two numbers |
|
|
76
|
+
|
|
77
|
+
For detailed API documentation, see [docs/API.md](docs/API.md).
|
|
78
|
+
|
|
79
|
+
## Documentation
|
|
80
|
+
|
|
81
|
+
- 📖 [API Reference](docs/API.md) - Complete function documentation
|
|
82
|
+
- 🛠️ [Development Guide](docs/DEVELOPMENT.md) - Setup and contribution instructions
|
|
83
|
+
- 🤝 [Contributing Guide](docs/CONTRIBUTING.md) - How to contribute
|
|
84
|
+
- 📝 [Changelog](CHANGELOG.md) - Project history and version information
|
|
85
|
+
|
|
86
|
+
## Development
|
|
87
|
+
|
|
88
|
+
To set up a development environment:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
# Clone the repository
|
|
92
|
+
git clone https://github.com/yourusername/deepranker.git
|
|
93
|
+
cd deepranker
|
|
94
|
+
|
|
95
|
+
# Create a virtual environment
|
|
96
|
+
python -m venv venv
|
|
97
|
+
source venv/bin/activate # On Windows: venv\Scripts\activate
|
|
98
|
+
|
|
99
|
+
# Install in development mode with dependencies
|
|
100
|
+
pip install -e ".[dev]"
|
|
101
|
+
|
|
102
|
+
# Run tests
|
|
103
|
+
pytest
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
See [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) for more details.
|
|
107
|
+
|
|
108
|
+
## License
|
|
109
|
+
|
|
110
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
111
|
+
|
|
112
|
+
## Contributing
|
|
113
|
+
|
|
114
|
+
Contributions are welcome! Please see [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) for guidelines.
|
|
115
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# PyPI Publishing Guide
|
|
2
|
+
|
|
3
|
+
## 1. Package name check
|
|
4
|
+
|
|
5
|
+
Before publishing, make sure `deepranker` is available on PyPI.
|
|
6
|
+
|
|
7
|
+
If the name is already taken, update the `name` value in `pyproject.toml`.
|
|
8
|
+
|
|
9
|
+
## 2. Install build tools
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
python -m pip install --upgrade pip build twine
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## 3. Build the package
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
python -m build
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
This creates these files under `dist/`:
|
|
22
|
+
|
|
23
|
+
- source distribution: `.tar.gz`
|
|
24
|
+
- wheel distribution: `.whl`
|
|
25
|
+
|
|
26
|
+
## 4. Validate package metadata
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
python -m twine check dist/*
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 5. Upload to TestPyPI first
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
python -m twine upload --repository testpypi dist/*
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## 6. Upload to PyPI
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
python -m twine upload dist/*
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 7. Install and verify
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pip install FeatureRank
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Notes
|
|
51
|
+
|
|
52
|
+
- Use your existing PyPI username and password or API token.
|
|
53
|
+
- Prefer an API token instead of a plain password.
|
|
54
|
+
- If you publish version `0.1.0`, you cannot upload the same version again. Increase the version to `0.1.1` or `0.2.0` for the next release.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# DeepRanker
|
|
2
|
+
|
|
3
|
+
[](https://www.python.org/downloads/)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
|
|
6
|
+
DeepRanker is a lightweight Python library that provides basic arithmetic operations. It's designed to be simple, efficient, and easy to integrate into your projects.
|
|
7
|
+
|
|
8
|
+
## Features
|
|
9
|
+
|
|
10
|
+
- ✨ Simple and intuitive API
|
|
11
|
+
- 🔢 Basic arithmetic operations (add, subtract, multiply, divide)
|
|
12
|
+
- 🛡️ Type hints for better code clarity
|
|
13
|
+
- ✅ Comprehensive error handling
|
|
14
|
+
- 🧪 Full test coverage
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
Install FeatureRank from PyPI:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pip install deepranker
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Or install from source:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
git clone https://github.com/yourusername/deepranker.git
|
|
28
|
+
cd deepranker
|
|
29
|
+
pip install -e .
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Quick Start
|
|
33
|
+
|
|
34
|
+
```python
|
|
35
|
+
from FeatureRank import add, subtract, multiply, divide
|
|
36
|
+
|
|
37
|
+
print(add(10, 5)) # 15
|
|
38
|
+
print(subtract(10, 5)) # 5
|
|
39
|
+
print(multiply(10, 5)) # 50
|
|
40
|
+
print(divide(10, 5)) # 2.0
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Available Functions
|
|
44
|
+
|
|
45
|
+
| Function | Description |
|
|
46
|
+
|----------|-------------|
|
|
47
|
+
| `add(a, b)` | Returns the sum of two numbers |
|
|
48
|
+
| `subtract(a, b)` | Returns the difference of two numbers |
|
|
49
|
+
| `multiply(a, b)` | Returns the product of two numbers |
|
|
50
|
+
| `divide(a, b)` | Returns the quotient of two numbers |
|
|
51
|
+
|
|
52
|
+
For detailed API documentation, see [docs/API.md](docs/API.md).
|
|
53
|
+
|
|
54
|
+
## Documentation
|
|
55
|
+
|
|
56
|
+
- 📖 [API Reference](docs/API.md) - Complete function documentation
|
|
57
|
+
- 🛠️ [Development Guide](docs/DEVELOPMENT.md) - Setup and contribution instructions
|
|
58
|
+
- 🤝 [Contributing Guide](docs/CONTRIBUTING.md) - How to contribute
|
|
59
|
+
- 📝 [Changelog](CHANGELOG.md) - Project history and version information
|
|
60
|
+
|
|
61
|
+
## Development
|
|
62
|
+
|
|
63
|
+
To set up a development environment:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Clone the repository
|
|
67
|
+
git clone https://github.com/yourusername/deepranker.git
|
|
68
|
+
cd deepranker
|
|
69
|
+
|
|
70
|
+
# Create a virtual environment
|
|
71
|
+
python -m venv venv
|
|
72
|
+
source venv/bin/activate # On Windows: venv\Scripts\activate
|
|
73
|
+
|
|
74
|
+
# Install in development mode with dependencies
|
|
75
|
+
pip install -e ".[dev]"
|
|
76
|
+
|
|
77
|
+
# Run tests
|
|
78
|
+
pytest
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
See [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) for more details.
|
|
82
|
+
|
|
83
|
+
## License
|
|
84
|
+
|
|
85
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
86
|
+
|
|
87
|
+
## Contributing
|
|
88
|
+
|
|
89
|
+
Contributions are welcome! Please see [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) for guidelines.
|
|
90
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.24.0"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "FeatureRank"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "A lightweight Python library for basic arithmetic operations."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Sercan" }
|
|
14
|
+
]
|
|
15
|
+
keywords = ["math", "arithmetic", "calculator", "library", "operations"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 3 - Alpha",
|
|
18
|
+
"Intended Audience :: Developers",
|
|
19
|
+
"License :: OSI Approved :: MIT License",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Operating System :: OS Independent",
|
|
25
|
+
"Topic :: Scientific/Engineering :: Mathematics",
|
|
26
|
+
"Topic :: Utilities"
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
[project.optional-dependencies]
|
|
31
|
+
dev = [
|
|
32
|
+
"build>=1.2.2",
|
|
33
|
+
"pytest>=8.3.0",
|
|
34
|
+
"twine>=5.1.0"
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[tool.hatch.build.targets.wheel]
|
|
38
|
+
packages = ["src/FeatureRank"]
|
|
39
|
+
|
|
40
|
+
[tool.pytest.ini_options]
|
|
41
|
+
pythonpath = ["src"]
|
|
42
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
def add(a: float, b: float) :
|
|
2
|
+
return a + b
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def subtract(a: float, b: float) :
|
|
6
|
+
return a - b
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def multiply(a: float, b: float) :
|
|
10
|
+
return a * b
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def divide(a: float, b: float) :
|
|
14
|
+
if b == 0:
|
|
15
|
+
raise ValueError("Bir sayı sıfıra bölünemez.")
|
|
16
|
+
return a / b
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from deepranker import add, divide, multiply, subtract
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def test_add() -> None:
|
|
5
|
+
assert add(10, 5) == 15
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def test_subtract() -> None:
|
|
9
|
+
assert subtract(10, 5) == 5
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def test_multiply() -> None:
|
|
13
|
+
assert multiply(10, 5) == 50
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def test_divide() -> None:
|
|
17
|
+
assert divide(10, 5) == 2
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def test_divide_by_zero_raises_value_error() -> None:
|
|
21
|
+
try:
|
|
22
|
+
divide(10, 0)
|
|
23
|
+
except ValueError as exc:
|
|
24
|
+
assert str(exc) == "Bir sayı sıfıra bölünemez."
|
|
25
|
+
else:
|
|
26
|
+
raise AssertionError("ValueError was not raised")
|