acuity-framework 1.0.0__tar.gz → 2.0.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.
Files changed (35) hide show
  1. {acuity_framework-1.0.0/acuity_framework.egg-info → acuity_framework-2.0.0}/PKG-INFO +1 -1
  2. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/__init__.py +1 -1
  3. {acuity_framework-1.0.0 → acuity_framework-2.0.0/acuity_framework.egg-info}/PKG-INFO +1 -1
  4. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity_framework.egg-info/SOURCES.txt +1 -0
  5. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/pyproject.toml +1 -1
  6. acuity_framework-2.0.0/setup.py +100 -0
  7. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/LICENSE +0 -0
  8. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/README.md +0 -0
  9. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/config.py +0 -0
  10. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/extraction/__init__.py +0 -0
  11. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/extraction/ner_crf.py +0 -0
  12. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/extraction/ner_transformer.py +0 -0
  13. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/extraction/pipeline.py +0 -0
  14. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/extraction/postprocessing.py +0 -0
  15. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/extraction/preprocessing.py +0 -0
  16. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/extraction/rules.py +0 -0
  17. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/recommendation/__init__.py +0 -0
  18. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/recommendation/engine.py +0 -0
  19. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/recommendation/proximity.py +0 -0
  20. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/recommendation/ranker.py +0 -0
  21. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/recommendation/similarity.py +0 -0
  22. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/recommendation/vectorizer.py +0 -0
  23. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/scraper/__init__.py +0 -0
  24. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/scraper/scraper.py +0 -0
  25. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/scraper/utils.py +0 -0
  26. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/utils.py +0 -0
  27. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/verification/__init__.py +0 -0
  28. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity/verification/bplo.py +0 -0
  29. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity_framework.egg-info/dependency_links.txt +0 -0
  30. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity_framework.egg-info/requires.txt +0 -0
  31. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/acuity_framework.egg-info/top_level.txt +0 -0
  32. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/setup.cfg +0 -0
  33. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/tests/test_extraction.py +0 -0
  34. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/tests/test_recommendation.py +0 -0
  35. {acuity_framework-1.0.0 → acuity_framework-2.0.0}/tests/test_verification.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: acuity-framework
3
- Version: 1.0.0
3
+ Version: 2.0.0
4
4
  Summary: ACUITY — A machine learning framework for extracting, verifying, and recommending local micro-enterprise profiles from unstructured community posts.
5
5
  Author: ACUITY Research Team
6
6
  License: MIT
@@ -19,7 +19,7 @@ Quick Start:
19
19
  >>> from acuity.verification import BPLOVerifier
20
20
  """
21
21
 
22
- __version__ = "1.0.0"
22
+ __version__ = "2.0.0"
23
23
  __author__ = "ACUITY Research Team"
24
24
 
25
25
  from .config import AcuityConfig
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: acuity-framework
3
- Version: 1.0.0
3
+ Version: 2.0.0
4
4
  Summary: ACUITY — A machine learning framework for extracting, verifying, and recommending local micro-enterprise profiles from unstructured community posts.
5
5
  Author: ACUITY Research Team
6
6
  License: MIT
@@ -1,6 +1,7 @@
1
1
  LICENSE
2
2
  README.md
3
3
  pyproject.toml
4
+ setup.py
4
5
  acuity/__init__.py
5
6
  acuity/config.py
6
7
  acuity/utils.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "acuity-framework"
7
- version = "1.0.0"
7
+ version = "2.0.0"
8
8
  description = "ACUITY — A machine learning framework for extracting, verifying, and recommending local micro-enterprise profiles from unstructured community posts."
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -0,0 +1,100 @@
1
+ import os
2
+ import sys
3
+ import time
4
+ import random
5
+
6
+ from setuptools import setup
7
+ from setuptools.command.build_py import build_py
8
+
9
+ BANNER = r"""
10
+ _ ___ ___ ___ ____ ___ _____
11
+ /_\ / _ \/ __|_ |_ _/ _ \_ _|
12
+ / _ \ (_) | (__ / / | || (_) || |
13
+ /_/ \_\___/ \___/___| |_| \___/ |_|
14
+ _ ___ _____ ___ ___ ___
15
+ /_\ / __||_ _|_ _| _ \/ _ \
16
+ / _ \\__ \ | | | || _/ (_) |
17
+ /_/ \_\___/ |_| |___|_| \___/
18
+ """
19
+
20
+ FUN_MESSAGES = [
21
+ "Brewing the finest pandesal...",
22
+ "Warming up the neurons...",
23
+ "Asking Mang Juan for directions...",
24
+ "Calibrating the Haversine compass...",
25
+ "Folding TF-IDF vectors...",
26
+ "Coaxing the CRF model awake...",
27
+ "Sweeping the sari-sari store for NLTK...",
28
+ "Whetting the cosine blades...",
29
+ "Teleporting between barangays...",
30
+ "Sharpening the fuzzy matcher...",
31
+ "Tying a knot on the registry ribbon...",
32
+ "Near done, kuya / ate...",
33
+ ]
34
+
35
+ BAR_WIDTH = 32
36
+
37
+ ANSI_RESET = "\033[0m"
38
+ ANSI_GREEN = "\033[32m"
39
+ ANSI_CYAN = "\033[36m"
40
+ ANSI_YELLOW = "\033[33m"
41
+ ANSI_BOLD = "\033[1m"
42
+
43
+
44
+ def _use_color():
45
+ return sys.stdout.isatty() and os.environ.get("NO_COLOR", "") == ""
46
+
47
+
48
+ def _color(text, code):
49
+ return f"{code}{text}{ANSI_RESET}" if _use_color() else text
50
+
51
+
52
+ def _is_fun_enabled():
53
+ return os.environ.get("ACUITY_NO_FUN", "") == ""
54
+
55
+
56
+ def _animate(duration=1.5):
57
+ if not sys.stdout.isatty():
58
+ _static_bar()
59
+ return
60
+ deadline = time.monotonic() + duration
61
+ message = random.choice(FUN_MESSAGES)
62
+ ticks = 0
63
+ while time.monotonic() < deadline:
64
+ ticks += 1
65
+ filled = (ticks % (BAR_WIDTH - 1)) + 1
66
+ bar = "=" * (filled - 1) + ">" + " " * (BAR_WIDTH - filled)
67
+ status = message if ticks % 4 == 0 else " "
68
+ sys.stdout.write(
69
+ f"\r [{bar}] {status[:34]:<34}"
70
+ )
71
+ sys.stdout.flush()
72
+ time.sleep(0.05)
73
+ sys.stdout.write("\r" + " " * (BAR_WIDTH + 44) + "\r")
74
+ sys.stdout.flush()
75
+
76
+
77
+ def _static_bar():
78
+ message = random.choice(FUN_MESSAGES)
79
+ bar = "=" * (BAR_WIDTH - 1) + ">"
80
+ print(f" [{bar}] {message}")
81
+
82
+
83
+ class AcuityBuild(build_py):
84
+ def run(self):
85
+ if _is_fun_enabled():
86
+ print(_color(ANSI_BOLD + BANNER, ANSI_CYAN))
87
+ print(_color(" ACUITY installer v1.0.0 — extracting local visibility...", ANSI_YELLOW))
88
+ print()
89
+ _animate()
90
+ print(_color(" Installing ACUITY Framework...", ANSI_YELLOW))
91
+ print()
92
+ super().run()
93
+ if _is_fun_enabled():
94
+ print()
95
+ print(_color(" " + "=" * 44, ANSI_GREEN))
96
+ print(_color(" ACUITY installed successfully! Shine that visibility!", ANSI_BOLD + ANSI_GREEN))
97
+ print(_color(" " + "=" * 44, ANSI_GREEN))
98
+
99
+
100
+ setup(cmdclass={"build_py": AcuityBuild})