An open source, non-profit web search engine
Implement billing API
Daoud Clarkefa610b4305e5
diff --git a/mwmbl/models.py b/mwmbl/models.pyindex b64a0f5..8ed692e 100644--- a/mwmbl/models.py+++ b/mwmbl/models.py@@ -167,6 +167,13 @@ class UsageBucket(models.Model):unique_together = [('user', 'year', 'month')]+class UserBilling(models.Model):+ user = models.OneToOneField(MwmblUser, on_delete=models.CASCADE, related_name="billing")+ polar_customer_id = models.CharField(max_length=100, blank=True, default="")+ polar_subscription_id = models.CharField(max_length=100, blank=True, default="")+ current_period_end = models.DateTimeField(null=True, blank=True)++class SearchResultVote(models.Model):VOTE_TYPES = {"upvote": "User upvoted this result",diff --git a/mwmbl/platform/api.py b/mwmbl/platform/api.pyindex 397087e..fbed683 100644--- a/mwmbl/platform/api.py+++ b/mwmbl/platform/api.py@@ -1,16 +1,22 @@from allauth.account.adapter import get_adapterfrom allauth.account.models import EmailConfirmationHMACfrom allauth.account.utils import setup_user_email, send_email_confirmation+from django.conf import settings+from django.utils import timezonefrom ninja import Routerfrom ninja.pagination import paginatefrom ninja_jwt.authentication import JWTAuth+from polar_sdk import Polar+from polar_sdk.webhooks import validate_event, WebhookVerificationErrorfrom mwmbl.exceptions import InvalidRequest-from mwmbl.models import MwmblUser, DomainSubmission, SearchResultVote, ApiKey+from mwmbl.models import MwmblUser, DomainSubmission, SearchResultVote, ApiKey, UsageBucket, UserBillingfrom mwmbl.platform.schemas import (Registration, ConfirmEmail, DomainSubmissionSchema, UpdateDomainSubmission,VoteRequest, VoteRemoveRequest, VoteStatsRequest, VoteResponse, VoteStats, UserVoteHistory,CreateApiKeyRequest, ApiKeyCreatedResponse, ApiKeyListItem,+ UserProfileResponse, SubscriptionResponse, CheckoutRequest, CheckoutResponse,+ ForgotPasswordRequest, ResetPasswordRequest,)router = Router(tags=["Platform"])@@ -407,3 +413,163 @@ def delete_api_key(request, key_id: int):raise InvalidRequest("API key not found.", status=404)api_key.delete()return {"status": "ok", "message": "API key revoked."}+++# ---------------------------------------------------------------------------+# User profile+# ---------------------------------------------------------------------------++ "/users/me",+ auth=JWTAuth(),+ response=UserProfileResponse,+ summary="Get current user profile",+ description="Returns the authenticated user's username, email, plan tier, and email confirmation status.",+ tags=["Users"],+)+def get_current_user(request):+ check_email_verified(request)+ user = request.user+ email_address = user.emailaddress_set.first()+ return UserProfileResponse(+ username=user.username,+ email=user.email,+ plan=user.tier,+ email_confirmed=email_address.verified if email_address else False,+ )+++# ---------------------------------------------------------------------------+# Billing+# ---------------------------------------------------------------------------++ "/billing/subscription",+ auth=JWTAuth(),+ response=SubscriptionResponse,+ summary="Get current subscription",+ description="Returns the user's active plan, quota, and current-period usage.",+ tags=["Billing"],+)+def get_subscription(request):+ check_email_verified(request)+ user = request.user+ billing = getattr(user, "billing", None)+ now = timezone.now()+ bucket = UsageBucket.objects.filter(user=user, year=now.year, month=now.month).first()+ usage = bucket.count if bucket else 0+ status = "free" if user.tier == MwmblUser.Tier.FREE else "active"+ return SubscriptionResponse(+ plan=user.tier,+ status=status,+ monthly_limit=MwmblUser.TIER_MONTHLY_LIMITS[user.tier],+ monthly_usage=usage,+ current_period_end=billing.current_period_end if billing else None,+ polar_customer_id=billing.polar_customer_id if billing else None,+ )+++ "/billing/checkout",+ auth=JWTAuth(),+ response=CheckoutResponse,+ summary="Create Polar checkout session",+ description="Creates a Polar hosted-checkout session and returns a redirect URL.",+ tags=["Billing"],+)+def create_checkout(request, body: CheckoutRequest):+ check_email_verified(request)+ product_map = {+ "starter": settings.POLAR_PRODUCT_ID_STARTER,+ "pro": settings.POLAR_PRODUCT_ID_PRO,+ }+ product_id = product_map[body.plan]+ billing = getattr(request.user, "billing", None)+ checkout_params = {+ "products": [product_id],+ "metadata": {"user_id": str(request.user.id)},+ }+ if billing and billing.polar_customer_id:+ checkout_params["external_customer_id"] = billing.polar_customer_id+ with Polar(access_token=settings.POLAR_ACCESS_TOKEN) as polar:+ result = polar.checkouts.create(request=checkout_params)+ return CheckoutResponse(checkout_url=result.url)+++ "/billing/webhook",+ summary="Polar webhook receiver",+ description="Receives signed webhook events from Polar and updates the user's plan.",+ tags=["Billing"],+)+def polar_webhook(request):+ try:+ event = validate_event(+ payload=request.body,+ headers=request.headers,+ secret=settings.POLAR_WEBHOOK_SECRET,+ )+ except WebhookVerificationError:+ raise InvalidRequest("Invalid signature", status=400)++ product_tier = {+ settings.POLAR_PRODUCT_ID_STARTER: MwmblUser.Tier.STARTER,+ settings.POLAR_PRODUCT_ID_PRO: MwmblUser.Tier.PRO,+ }++ if event.type in ("subscription.active", "subscription.updated"):+ user_id = event.data.metadata.get("user_id")+ user = MwmblUser.objects.filter(id=user_id).first()+ if user:+ tier = product_tier.get(event.data.product_id, MwmblUser.Tier.FREE)+ user.tier = tier+ user.save()+ billing, _ = UserBilling.objects.get_or_create(user=user)+ billing.polar_customer_id = event.data.customer_id or billing.polar_customer_id+ billing.polar_subscription_id = event.data.id or billing.polar_subscription_id+ billing.save()+ elif event.type == "subscription.revoked":+ user_id = event.data.metadata.get("user_id")+ user = MwmblUser.objects.filter(id=user_id).first()+ if user:+ user.tier = MwmblUser.Tier.FREE+ user.save()++ return {"status": "ok"}+++# ---------------------------------------------------------------------------+# Password reset+# ---------------------------------------------------------------------------++ "/forgot-password",+ summary="Request password reset",+ description="Sends a password-reset email. Always returns 200 to prevent user enumeration.",+ tags=["Auth"],+)+def forgot_password(request, body: ForgotPasswordRequest):+ from django.contrib.auth.forms import PasswordResetForm+ form = PasswordResetForm({"email": body.email})+ if form.is_valid():+ form.save(request=request, use_https=request.is_secure())+ return {}+++ "/reset-password",+ summary="Confirm password reset",+ description="Validates the reset token and sets a new password.",+ tags=["Auth"],+)+def reset_password(request, body: ResetPasswordRequest):+ from django.contrib.auth.tokens import default_token_generator+ try:+ user = MwmblUser.objects.get(email=body.email)+ except MwmblUser.DoesNotExist:+ raise InvalidRequest("Invalid or expired reset token.", status=400)+ if not default_token_generator.check_token(user, body.key):+ raise InvalidRequest("Invalid or expired reset token.", status=400)+ user.set_password(body.new_password)+ user.save()+ return {}diff --git a/mwmbl/platform/schemas.py b/mwmbl/platform/schemas.pyindex 3614223..062aff3 100644--- a/mwmbl/platform/schemas.py+++ b/mwmbl/platform/schemas.py@@ -2,6 +2,40 @@ from datetime import datetimefrom typing import Optional, Literalfrom ninja import Schema, ModelSchema, Field++class UserProfileResponse(Schema):+ username: str+ email: str+ plan: str+ email_confirmed: bool+++class SubscriptionResponse(Schema):+ plan: str+ status: str+ monthly_limit: int+ monthly_usage: int+ current_period_end: Optional[datetime]+ polar_customer_id: Optional[str]+++class CheckoutRequest(Schema):+ plan: Literal["starter", "pro"]+++class CheckoutResponse(Schema):+ checkout_url: str+++class ForgotPasswordRequest(Schema):+ email: str+++class ResetPasswordRequest(Schema):+ email: str+ key: str+ new_password: str+from mwmbl.models import DomainSubmissiondiff --git a/mwmbl/settings_common.py b/mwmbl/settings_common.pyindex 269ee4d..d8c1e0a 100644--- a/mwmbl/settings_common.py+++ b/mwmbl/settings_common.py@@ -254,3 +254,8 @@ INTERNAL_IPS = []RUST_MODEL_PATH = Path(__file__).parent / 'resources' / "model.xgb"++POLAR_ACCESS_TOKEN = os.environ.get("POLAR_ACCESS_TOKEN", "")+POLAR_WEBHOOK_SECRET = os.environ.get("POLAR_WEBHOOK_SECRET", "")+POLAR_PRODUCT_ID_STARTER = os.environ.get("POLAR_PRODUCT_ID_STARTER", "")+POLAR_PRODUCT_ID_PRO = os.environ.get("POLAR_PRODUCT_ID_PRO", "")diff --git a/pyproject.toml b/pyproject.tomlindex c3f3ec7..fbe9ca8 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -44,6 +44,7 @@ dependencies = ["scalar-ninja>=0.3.0","django-background-tasks>=1.2.8","django-redis>=5.4.0",+ "polar-sdk>=0.10.0",][project.optional-dependencies]diff --git a/uv.lock b/uv.lockindex ca267f2..0dea46b 100644--- a/uv.lock+++ b/uv.lock@@ -11,6 +11,19 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643, upload-time = "2024-05-20T21:33:24.1Z" },]+[[package]]+name = "anyio"+version = "4.13.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "idna" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/19/14/2c5dd9f512b66549ae92767a9c7b330ae88e1932ca57876909410251fe13/anyio-4.13.0.tar.gz", hash = "sha256:334b70e641fd2221c1505b3890c69882fe4a2df910cba14d97019b90b24439dc", size = 231622, upload-time = "2026-03-24T12:59:09.671Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/da/42/e921fccf5015463e32a3cf6ee7f980a6ed0f395ceeaa45060b61d86486c2/anyio-4.13.0-py3-none-any.whl", hash = "sha256:08b310f9e24a9594186fd75b4f73f4a4152069e3853f1ed8bfbf58369f4ad708", size = 114353, upload-time = "2026-03-24T12:59:08.246Z" },+]+[[package]]name = "asgiref"version = "3.11.1"@@ -233,6 +246,18 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl", hash = "sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61", size = 25604, upload-time = "2021-03-08T10:59:24.45Z" },]+[[package]]+name = "deprecated"+version = "1.3.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "wrapt" },+]+sdist = { url = "https://files.pythonhosted.org/packages/49/85/12f0a49a7c4ffb70572b6c2ef13c90c88fd190debda93b23f026b25f9634/deprecated-1.3.1.tar.gz", hash = "sha256:b1b50e0ff0c1fddaa5708a2c6b0a6588bb09b892825ab2b214ac9ea9d92a5223", size = 2932523, upload-time = "2025-10-30T08:19:02.757Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/84/d0/205d54408c08b13550c733c4b85429e7ead111c7f0014309637425520a9a/deprecated-1.3.1-py2.py3-none-any.whl", hash = "sha256:597bfef186b6f60181535a29fbe44865ce137a5079f295b479886c82729d5f3f", size = 11298, upload-time = "2025-10-30T08:19:00.758Z" },+]+[[package]]name = "dj-database-url"version = "3.1.2"@@ -442,6 +467,34 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/df/0e/5b2a73bea6d18e7ebda7ed73520854cdc176ba70a945bd541bdeeb3f8caa/hiredis-3.3.1-cp311-cp311-win_amd64.whl", hash = "sha256:1f7bceb03a1b934872ffe3942eaeed7c7e09096e67b53f095b81f39c7a819113", size = 22336, upload-time = "2026-03-16T15:19:33.238Z" },]+[[package]]+name = "httpcore"+version = "1.0.9"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "certifi" },+ { name = "h11" },+]+sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" },+]++[[package]]+name = "httpx"+version = "0.28.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "certifi" },+ { name = "httpcore" },+ { name = "idna" },+]+sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" },+]+[[package]]name = "idna"version = "3.3"@@ -487,6 +540,15 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/7b/91/984aca2ec129e2757d1e4e3c81c3fcda9d0f85b74670a094cc443d9ee949/joblib-1.5.3-py3-none-any.whl", hash = "sha256:5fc3c5039fc5ca8c0276333a188bbd59d6b7ab37fe6632daa76bc7f9ec18e713", size = 309071, upload-time = "2025-12-15T08:41:44.973Z" },]+[[package]]+name = "jsonpath-python"+version = "1.1.5"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/2d/db/2f4ecc24da35c6142b39c353d5b7c16eef955cc94b35a48d3fa47996d7c3/jsonpath_python-1.1.5.tar.gz", hash = "sha256:ceea2efd9e56add09330a2c9631ea3d55297b9619348c1055e5bfb9cb0b8c538", size = 87352, upload-time = "2026-03-17T06:16:40.597Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/28/50/1a313fb700526b134c71eb8a225d8b83be0385dbb0204337b4379c698cef/jsonpath_python-1.1.5-py3-none-any.whl", hash = "sha256:a60315404d70a65e76c9a782c84e50600480221d94a58af47b7b4d437351cb4b", size = 14090, upload-time = "2026-03-17T06:16:39.152Z" },+]+[[package]]name = "langdetect"version = "1.0.9"@@ -634,6 +696,7 @@ dependencies = [{ name = "numpy" },{ name = "objgraph" },{ name = "pandas" },+ { name = "polar-sdk" },{ name = "psutil" },{ name = "psycopg2-binary" },{ name = "py-spy" },@@ -699,6 +762,7 @@ requires-dist = [{ name = "numpy", specifier = "==1.23.2" },{ name = "objgraph", specifier = ">=3.6.1" },{ name = "pandas", specifier = ">=1.3.5,<2.0.0" },+ { name = "polar-sdk", specifier = ">=0.10.0" },{ name = "psutil", specifier = ">=6.0.0" },{ name = "psycopg2-binary", specifier = ">=2.9.3" },{ name = "py-spy", specifier = ">=0.4.1" },@@ -848,6 +912,22 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" },]+[[package]]+name = "polar-sdk"+version = "0.31.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "httpcore" },+ { name = "httpx" },+ { name = "jsonpath-python" },+ { name = "pydantic" },+ { name = "standardwebhooks" },+]+sdist = { url = "https://files.pythonhosted.org/packages/19/cb/60c71f31c2c0afe9fc70c593a218ffde6c017b03f9a581e2af0ea63b5230/polar_sdk-0.31.3.tar.gz", hash = "sha256:d69b73e66040adab5ace51bb67c72d91edfca56c67c6aad5cbe6a5cb2a1295f7", size = 303751, upload-time = "2026-04-10T09:42:54.574Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ef/23/bd856ec12a8faef40bfb6b30e7add657952c7266f5f0ac7c156067fa30ea/polar_sdk-0.31.3-py3-none-any.whl", hash = "sha256:22fa1ae3fa2c79cf2279dd3b1ff633d193132197dcdd807ec7191fb14544ff80", size = 853744, upload-time = "2026-04-10T09:42:53.032Z" },+]+[[package]]name = "psutil"version = "7.2.2"@@ -1303,6 +1383,20 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/49/4b/359f28a903c13438ef59ebeee215fb25da53066db67b305c125f1c6d2a25/sqlparse-0.5.5-py3-none-any.whl", hash = "sha256:12a08b3bf3eec877c519589833aed092e2444e68240a3577e8e26148acc7b1ba", size = 46138, upload-time = "2025-12-19T07:17:46.573Z" },]+[[package]]+name = "standardwebhooks"+version = "1.0.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "attrs" },+ { name = "deprecated" },+ { name = "httpx" },+ { name = "python-dateutil" },+ { name = "types-deprecated" },+ { name = "types-python-dateutil" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c4/7d/04fc3aa177403472d3ddae90953d8f878dc5fd21ba29c02fc9e97e10703f/standardwebhooks-1.0.1.tar.gz", hash = "sha256:b557bb2e4b16ada179a517ec0fe6cbec5acf976c5619922bf29c457f89a451bd", size = 5103, upload-time = "2026-02-18T19:13:06.793Z" }+[[package]]name = "statsmodels"version = "0.14.6"@@ -1333,6 +1427,24 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/32/d5/f9a850d79b0851d1d4ef6456097579a9005b31fea68726a4ae5f2d82ddd9/threadpoolctl-3.6.0-py3-none-any.whl", hash = "sha256:43a0b8fd5a2928500110039e43a5eed8480b918967083ea48dc3ab9f13c4a7fb", size = 18638, upload-time = "2025-03-13T13:49:21.846Z" },]+[[package]]+name = "types-deprecated"+version = "1.3.1.20260408"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/1a/db/076de3e81b106d3cec17aec9640ab1b2d02f29bad441de280459c161ce65/types_deprecated-1.3.1.20260408.tar.gz", hash = "sha256:62d6a86d0cc754c14bb2de31162d069b1c6a07ce11ee65e5258f8f75308eb3a3", size = 8524, upload-time = "2026-04-08T04:26:39.894Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/53/d0/d3258379deb749d949c3c72313981c9d2cceec518b87dcf506f022f5d49f/types_deprecated-1.3.1.20260408-py3-none-any.whl", hash = "sha256:b64e1eab560d4fa9394a27a3099211344b0e0f2f3ac8026d825c86e70d65cdd5", size = 9079, upload-time = "2026-04-08T04:26:38.752Z" },+]++[[package]]+name = "types-python-dateutil"+version = "2.9.0.20260408"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/88/f3/2427775f80cd5e19a0a71ba8e5ab7645a01a852f43a5fd0ffc24f66338e0/types_python_dateutil-2.9.0.20260408.tar.gz", hash = "sha256:8b056ec01568674235f64ecbcef928972a5fac412f5aab09c516dfa2acfbb582", size = 16981, upload-time = "2026-04-08T04:28:10.995Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fd/c6/eeba37bfee282a6a97f889faef9352d6172c6a5088eb9a4daf570d9d748d/types_python_dateutil-2.9.0.20260408-py3-none-any.whl", hash = "sha256:473139d514a71c9d1fbd8bb328974bedcb1cc3dba57aad04ffa4157f483c216f", size = 18437, upload-time = "2026-04-08T04:28:10.095Z" },+]+[[package]]name = "typing-extensions"version = "4.15.0"@@ -1434,6 +1546,26 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/ec/27/8ecf7dbbb16dc3ab32fcb205f4d798e77cab264118bc1ac52145a76e38fb/wasmtime-43.0.0-py3-none-win_arm64.whl", hash = "sha256:5ddb2ba4b354fc4f055c8ce9285e7bc4cb259c339e5834bb4d0739d644042b8e", size = 5455362, upload-time = "2026-03-31T19:26:21.746Z" },]+[[package]]+name = "wrapt"+version = "2.1.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/2e/64/925f213fdcbb9baeb1530449ac71a4d57fc361c053d06bf78d0c5c7cd80c/wrapt-2.1.2.tar.gz", hash = "sha256:3996a67eecc2c68fd47b4e3c564405a5777367adfd9b8abb58387b63ee83b21e", size = 81678, upload-time = "2026-03-06T02:53:25.134Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c7/81/60c4471fce95afa5922ca09b88a25f03c93343f759aae0f31fb4412a85c7/wrapt-2.1.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:96159a0ee2b0277d44201c3b5be479a9979cf154e8c82fa5df49586a8e7679bb", size = 60666, upload-time = "2026-03-06T02:52:58.934Z" },+ { url = "https://files.pythonhosted.org/packages/6b/be/80e80e39e7cb90b006a0eaf11c73ac3a62bbfb3068469aec15cc0bc795de/wrapt-2.1.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:98ba61833a77b747901e9012072f038795de7fc77849f1faa965464f3f87ff2d", size = 61601, upload-time = "2026-03-06T02:53:00.487Z" },+ { url = "https://files.pythonhosted.org/packages/b0/be/d7c88cd9293c859fc74b232abdc65a229bb953997995d6912fc85af18323/wrapt-2.1.2-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:767c0dbbe76cae2a60dd2b235ac0c87c9cccf4898aef8062e57bead46b5f6894", size = 114057, upload-time = "2026-03-06T02:52:44.08Z" },+ { url = "https://files.pythonhosted.org/packages/ea/25/36c04602831a4d685d45a93b3abea61eca7fe35dab6c842d6f5d570ef94a/wrapt-2.1.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c691a6bc752c0cc4711cc0c00896fcd0f116abc253609ef64ef930032821842", size = 116099, upload-time = "2026-03-06T02:54:56.74Z" },+ { url = "https://files.pythonhosted.org/packages/5c/4e/98a6eb417ef551dc277bec1253d5246b25003cf36fdf3913b65cb7657a56/wrapt-2.1.2-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f3b7d73012ea75aee5844de58c88f44cf62d0d62711e39da5a82824a7c4626a8", size = 112457, upload-time = "2026-03-06T02:53:52.842Z" },+ { url = "https://files.pythonhosted.org/packages/cb/a6/a6f7186a5297cad8ec53fd7578533b28f795fdf5372368c74bd7e6e9841c/wrapt-2.1.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:577dff354e7acd9d411eaf4bfe76b724c89c89c8fc9b7e127ee28c5f7bcb25b6", size = 115351, upload-time = "2026-03-06T02:53:32.684Z" },+ { url = "https://files.pythonhosted.org/packages/97/6f/06e66189e721dbebd5cf20e138acc4d1150288ce118462f2fcbff92d38db/wrapt-2.1.2-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:3d7b6fd105f8b24e5bd23ccf41cb1d1099796524bcc6f7fbb8fe576c44befbc9", size = 111748, upload-time = "2026-03-06T02:53:08.455Z" },+ { url = "https://files.pythonhosted.org/packages/ef/43/4808b86f499a51370fbdbdfa6cb91e9b9169e762716456471b619fca7a70/wrapt-2.1.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:866abdbf4612e0b34764922ef8b1c5668867610a718d3053d59e24a5e5fcfc15", size = 113783, upload-time = "2026-03-06T02:53:02.02Z" },+ { url = "https://files.pythonhosted.org/packages/91/2c/a3f28b8fa7ac2cefa01cfcaca3471f9b0460608d012b693998cd61ef43df/wrapt-2.1.2-cp311-cp311-win32.whl", hash = "sha256:5a0a0a3a882393095573344075189eb2d566e0fd205a2b6414e9997b1b800a8b", size = 57977, upload-time = "2026-03-06T02:53:27.844Z" },+ { url = "https://files.pythonhosted.org/packages/3f/c3/2b1c7bd07a27b1db885a2fab469b707bdd35bddf30a113b4917a7e2139d2/wrapt-2.1.2-cp311-cp311-win_amd64.whl", hash = "sha256:64a07a71d2730ba56f11d1a4b91f7817dc79bc134c11516b75d1921a7c6fcda1", size = 60336, upload-time = "2026-03-06T02:54:28.104Z" },+ { url = "https://files.pythonhosted.org/packages/ec/5c/76ece7b401b088daa6503d6264dd80f9a727df3e6042802de9a223084ea2/wrapt-2.1.2-cp311-cp311-win_arm64.whl", hash = "sha256:b89f095fe98bc12107f82a9f7d570dc83a0870291aeb6b1d7a7d35575f55d98a", size = 58756, upload-time = "2026-03-06T02:53:16.319Z" },+ { url = "https://files.pythonhosted.org/packages/1a/c7/8528ac2dfa2c1e6708f647df7ae144ead13f0a31146f43c7264b4942bf12/wrapt-2.1.2-py3-none-any.whl", hash = "sha256:b8fd6fa2b2c4e7621808f8c62e8317f4aae56e59721ad933bac5239d913cf0e8", size = 43993, upload-time = "2026-03-06T02:53:12.905Z" },+]+[[package]]name = "xgboost"version = "3.2.0"