legalsuffix 0.0.1a2__py3-none-any.whl

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.
@@ -0,0 +1,27 @@
1
+ """Public API for detecting and working with legal suffixes.
2
+
3
+ Example:
4
+ >>> from legalsuffix import parse_company_name
5
+ >>> parsed = parse_company_name("Acme GmbH", country_code="DE")
6
+ >>> parsed.name
7
+ 'Acme'
8
+ >>> parsed.suffix.suffix
9
+ 'GmbH'
10
+ """
11
+
12
+ from .loader import get_suffixes
13
+ from .matching import match_legal_suffix, normalize_legal_suffix, parse_company_name, strip_legal_suffix
14
+ from .models import LegalSuffix, LegalSuffixMatch, ParsedCompanyName
15
+
16
+ __version__ = "0.0.1a2"
17
+
18
+ __all__ = [
19
+ "LegalSuffix",
20
+ "LegalSuffixMatch",
21
+ "ParsedCompanyName",
22
+ "get_suffixes",
23
+ "match_legal_suffix",
24
+ "normalize_legal_suffix",
25
+ "parse_company_name",
26
+ "strip_legal_suffix",
27
+ ]
@@ -0,0 +1,6 @@
1
+ from pathlib import Path
2
+
3
+ DATA_FILE = "suffixes.csv"
4
+ DATA_FOLDER = Path(__file__).parent / "data"
5
+
6
+ DATA_FILE_PATH = DATA_FOLDER / DATA_FILE