diff options
| author | stuppie | 2026-08-17 16:34:04 -0600 |
|---|---|---|
| committer | stuppie | 2026-08-17 16:34:04 -0600 |
| commit | b06d566a71d66f709b2be5bf3526a504b59f5e7c (patch) | |
| tree | dca0104287f88304bc5f4b392eb97c31023f7446 | |
| parent | 3b6c42bb541e6fe92b942f70a97efce9420547c4 (diff) | |
| download | generalresearch-b06d566a71d66f709b2be5bf3526a504b59f5e7c.tar.gz generalresearch-b06d566a71d66f709b2be5bf3526a504b59f5e7c.zip | |
sorry, put back maxmind UserType.. its used in like 20 different places
| -rw-r--r-- | generalresearch/models/thl/maxmind/__init__.py | 0 | ||||
| -rw-r--r-- | generalresearch/models/thl/maxmind/definitions.py | 22 |
2 files changed, 22 insertions, 0 deletions
diff --git a/generalresearch/models/thl/maxmind/__init__.py b/generalresearch/models/thl/maxmind/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/generalresearch/models/thl/maxmind/__init__.py diff --git a/generalresearch/models/thl/maxmind/definitions.py b/generalresearch/models/thl/maxmind/definitions.py new file mode 100644 index 0000000..01431c7 --- /dev/null +++ b/generalresearch/models/thl/maxmind/definitions.py @@ -0,0 +1,22 @@ +from enum import Enum + +from generalresearch.utils.enum import ReprEnumMeta + + +class UserType(Enum, metaclass=ReprEnumMeta): + # https://support.maxmind.com/hc/en-us/articles/4408430082971-IP-Trait-Risk-Data#h_01FN6V8JMQMWZGWNPPAW77ZPY4 + BUSINESS = "business" + CAFE = "cafe" + CELLULAR = "cellular" + COLLEGE = "college" + CDN = "content_delivery_network" + CPN = "consumer_privacy_network" + GOVERNMENT = "government" + HOSTING = "hosting" + LIBRARY = "library" + MILITARY = "military" + RESIDENTIAL = "residential" + ROUTER = "router" + SCHOOL = "school" + SEARCH_ENGINE = "search_engine_spider" + TRAVELER = "traveler" |
