numclassify 0.1.0__tar.gz → 0.1.1__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.
- numclassify-0.1.1/.gitignore +10 -0
- numclassify-0.1.0/CHANGELOG.txt → numclassify-0.1.1/CHANGELOG.md +6 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/PKG-INFO +1 -1
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/_core/combinatorial.py +1 -2
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/_registry.py +1 -1
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/cli.py +2 -2
- {numclassify-0.1.0 → numclassify-0.1.1}/pyproject.toml +1 -1
- {numclassify-0.1.0 → numclassify-0.1.1}/.github/workflows/ci.yml +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/.github/workflows/publish.yml +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/LICENSE +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/README.md +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/__init__.py +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/__main__.py +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/_core/__init__.py +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/_core/digital.py +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/_core/divisors.py +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/_core/figurate.py +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/_core/number_theory.py +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/_core/powers.py +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/_core/primes.py +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/_core/recreational.py +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/numclassify/_core/sequences.py +0 -0
- {numclassify-0.1.0 → numclassify-0.1.1}/tests/test_registry.py +0 -0
|
@@ -6,6 +6,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [0.1.1] - 2026-05-06
|
|
10
|
+
### Fixed
|
|
11
|
+
- cli.py: Fixed imports to use numclassify._core instead of numclassify
|
|
12
|
+
- combinatorial.py: Moved `from math import comb` to top-level (was inside loops)
|
|
13
|
+
- _registry.py: Fixed find_any_in_range docstring example (removed non-existent duplicate)
|
|
14
|
+
|
|
9
15
|
## [0.1.0] - 2026-04-18
|
|
10
16
|
|
|
11
17
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: numclassify
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: The most comprehensive Python library for number classification — 3000+ number types
|
|
5
5
|
Project-URL: Homepage, https://github.com/aratrikghosh2011-tech/numclassify
|
|
6
6
|
Project-URL: Repository, https://github.com/aratrikghosh2011-tech/numclassify
|
|
@@ -9,6 +9,7 @@ All membership sets are precomputed at module load time up to 10^9
|
|
|
9
9
|
from __future__ import annotations
|
|
10
10
|
|
|
11
11
|
from typing import Set
|
|
12
|
+
from math import comb
|
|
12
13
|
|
|
13
14
|
from numclassify._registry import register
|
|
14
15
|
|
|
@@ -197,13 +198,11 @@ def _gen_catalan_triangle() -> Set[int]:
|
|
|
197
198
|
# T(n,0)=1 for all n; T(n,n) = Catalan(n)
|
|
198
199
|
for n in range(0, 60):
|
|
199
200
|
for k in range(0, n + 1):
|
|
200
|
-
from math import comb
|
|
201
201
|
val = comb(n + k, k) - (comb(n + k, k - 1) if k > 0 else 0)
|
|
202
202
|
if val > _LIMIT:
|
|
203
203
|
break
|
|
204
204
|
s.add(val)
|
|
205
205
|
if n > 0:
|
|
206
|
-
from math import comb
|
|
207
206
|
check = comb(2 * n, n) - comb(2 * n, n - 1) if n > 0 else 1
|
|
208
207
|
if check > _LIMIT:
|
|
209
208
|
break
|
|
@@ -379,7 +379,7 @@ def find_any_in_range(
|
|
|
379
379
|
Example
|
|
380
380
|
-------
|
|
381
381
|
>>> find_any_in_range(["prime", "palindrome"], 1, 15)
|
|
382
|
-
[2, 3, 5, 7, 11,
|
|
382
|
+
[2, 3, 5, 7, 11, 13]
|
|
383
383
|
"""
|
|
384
384
|
funcs = [_resolve(f) for f in funcs_or_names]
|
|
385
385
|
return [n for n in range(start, end + 1) if any(f(n) for f in funcs)]
|
|
@@ -126,14 +126,14 @@ def _resolve_type(name: str, registry: Dict[str, Any]) -> str:
|
|
|
126
126
|
def _computed_extras(n: int) -> Dict[str, int]:
|
|
127
127
|
"""Return a small dict of directly computed values for display."""
|
|
128
128
|
try:
|
|
129
|
-
from numclassify.digital import digit_sum, digital_root
|
|
129
|
+
from numclassify._core.digital import digit_sum, digital_root
|
|
130
130
|
ds = digit_sum(n)
|
|
131
131
|
dr = digital_root(n)
|
|
132
132
|
except Exception:
|
|
133
133
|
ds = sum(int(d) for d in str(abs(n))) if n != 0 else 0
|
|
134
134
|
dr = ds # fallback
|
|
135
135
|
try:
|
|
136
|
-
from numclassify.divisors import count_divisors
|
|
136
|
+
from numclassify._core.divisors import count_divisors
|
|
137
137
|
nd = count_divisors(n)
|
|
138
138
|
except Exception:
|
|
139
139
|
nd = sum(1 for i in range(1, abs(n) + 1) if n % i == 0) if n != 0 else 0
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "numclassify"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.1"
|
|
8
8
|
description = "The most comprehensive Python library for number classification — 3000+ number types"
|
|
9
9
|
authors = [{name = "Aratrik Ghosh", email = "aratrikghosh2011@gmail.com"}]
|
|
10
10
|
readme = "README.md"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|