Download core/billing/shared/__init__.py from Kyrlos11/nniback: direct link, hf CLI and curl.
- Browser
- Download file 1.94 kB
-
https://huggingface.co/spaces/Kyrlos11/nniback/resolve/main/core/billing/shared/__init__.py
- Command line
-
hf download hf://spaces/Kyrlos11/nniback/core/billing/shared/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Kyrlos11/nniback/resolve/main/core/billing/shared/__init__.py
1.94 kB
| from .config import ( | |
| TOKEN_PRICE_MULTIPLIER, | |
| MINIMUM_CREDIT_FOR_RUN, | |
| DEFAULT_TOKEN_COST, | |
| FREE_TIER_INITIAL_CREDITS, | |
| Tier, | |
| TIERS, | |
| CREDIT_PACKAGES, | |
| ADMIN_LIMITS, | |
| get_tier_by_price_id, | |
| get_tier_by_name, | |
| get_monthly_credits, | |
| can_purchase_credits, | |
| is_model_allowed, | |
| get_project_limit, | |
| get_tier_limits, | |
| get_thread_limit, | |
| get_concurrent_runs_limit, | |
| get_custom_workers_limit, | |
| get_scheduled_triggers_limit, | |
| get_app_triggers_limit, | |
| is_commitment_price_id, | |
| get_commitment_duration_months, | |
| get_price_type, | |
| get_plan_type, | |
| ) | |
| from .models import ( | |
| CreateCheckoutSessionRequest, | |
| CreatePortalSessionRequest, | |
| PurchaseCreditsRequest, | |
| TrialStartRequest, | |
| TokenUsageRequest, | |
| CancelSubscriptionRequest, | |
| ) | |
| from .exceptions import ( | |
| BillingError, | |
| InsufficientCreditsError, | |
| SubscriptionError, | |
| PaymentError, | |
| WebhookError, | |
| ConfigurationError, | |
| ) | |
| __all__ = [ | |
| 'TOKEN_PRICE_MULTIPLIER', | |
| 'MINIMUM_CREDIT_FOR_RUN', | |
| 'DEFAULT_TOKEN_COST', | |
| 'FREE_TIER_INITIAL_CREDITS', | |
| 'Tier', | |
| 'TIERS', | |
| 'CREDIT_PACKAGES', | |
| 'ADMIN_LIMITS', | |
| 'get_tier_by_price_id', | |
| 'get_tier_by_name', | |
| 'get_monthly_credits', | |
| 'can_purchase_credits', | |
| 'is_model_allowed', | |
| 'get_project_limit', | |
| 'get_tier_limits', | |
| 'get_thread_limit', | |
| 'get_concurrent_runs_limit', | |
| 'get_custom_workers_limit', | |
| 'get_scheduled_triggers_limit', | |
| 'get_app_triggers_limit', | |
| 'is_commitment_price_id', | |
| 'get_commitment_duration_months', | |
| 'get_price_type', | |
| 'get_plan_type', | |
| 'CreateCheckoutSessionRequest', | |
| 'CreatePortalSessionRequest', | |
| 'PurchaseCreditsRequest', | |
| 'TrialStartRequest', | |
| 'TokenUsageRequest', | |
| 'CancelSubscriptionRequest', | |
| 'BillingError', | |
| 'InsufficientCreditsError', | |
| 'SubscriptionError', | |
| 'PaymentError', | |
| 'WebhookError', | |
| 'ConfigurationError', | |
| ] | |