Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

autumn-sdk

Latest version: v1.3.70

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: johnyeocx
73 Versions
141.8K Downloads

Scan summary

autumn-sdk was last scanned on 27 Nov 2026 at version 1.3.70. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 73 versions; the latest 5 were published within 2 days (26 and 27 Nov 2026).
  • Findings: No rules fired in version 1.3.70.
  • Downloads: 141,772 downloads.

Versions

73 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.3.70 LATEST 27 Nov 2026 No rules fired
1.3.69 26 Nov 2026 No rules fired
1.3.68 26 Nov 2026 No rules fired
1.3.67 26 Nov 2026 Not shown
1.3.66 26 Nov 2026 Not shown

No rules fired in 1.3.70

Findings

Findings for v1.3.70. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.3.70; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

autumn-sdk

The official Python SDK for the Autumn billing API.

PyPI version License: Apache-2.0

Summary

Table of Contents

  • autumn-sdk
    • SDK Installation
    • IDE Support
    • SDK Example Usage
    • Authentication
    • Available Resources and Operations
    • Retries
    • Error Handling
    • Server Selection
    • Custom HTTP Client
    • Resource Management
    • Debugging
  • Development
    • Contributions

SDK Installation

[!TIP] To finish publishing your SDK to PyPI you must run your first generation action.

[!NOTE] Python version upgrade policy

Once a Python version reaches its official end of life date, a 3-month grace period is provided for users to upgrade. Following this grace period, the minimum python version supported in the SDK will be updated.

The SDK can be installed with uv, pip, or poetry package managers.

uv

uv is a fast Python package installer and resolver, designed as a drop-in replacement for pip and pip-tools. It's recommended for its speed and modern Python tooling capabilities.

uv add git+<UNSET>.git
PIP

PIP is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line.

pip install git+<UNSET>.git
Poetry

Poetry is a modern tool that simplifies dependency management and package publishing by using a single pyproject.toml file to handle project metadata and dependencies.

poetry add git+<UNSET>.git
Shell and script usage with uv

You can use this SDK in a Python shell with uv and the uvx command that comes with it like so:

uvx --from autumn-sdk python

It's also possible to write a standalone Python script without needing to set up a whole project like so:

#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.10"
# dependencies = [
#     "autumn-sdk",
# ]
# ///

from autumn_sdk import Autumn

sdk = Autumn(
  # SDK arguments
)

# Rest of script here...

Once that is saved to a file, you can run it with uv run script.py where script.py can be replaced with the actual file name.

IDE Support

PyCharm

Generally, the SDK will work well with most IDEs out of the box. However, when using PyCharm, you can enjoy much better integration with Pydantic by installing an additional plugin.

SDK Example Usage

Example
# Synchronous Example
from autumn_sdk import Autumn


with Autumn(
    x_api_version="2.6.0",
    secret_key="<YOUR_BEARER_TOKEN_HERE>",
) as autumn:

    res = autumn.check(customer_id="cus_123", feature_id="messages")

    # Handle response
    print(res)

The same SDK client can also be used to make asynchronous requests by importing asyncio.

# Asynchronous Example
import asyncio
from autumn_sdk import Autumn

async def main():

    async with Autumn(
        x_api_version="2.6.0",
        secret_key="<YOUR_BEARER_TOKEN_HERE>",
    ) as autumn:

        res = await autumn.check_async(customer_id="cus_123", feature_id="messages")

        # Handle response
        print(res)

asyncio.run(main())

Authentication

Per-Client Security Schemes

This SDK supports the following security scheme globally:

Name Type Scheme
secret_key http HTTP Bearer

To authenticate with the API the secret_key parameter must be set when initializing the SDK client instance. For example:

from autumn_sdk import Autumn


with Autumn(
    secret_key="<YOUR_BEARER_TOKEN_HERE>",
    x_api_version="2.6.0",
) as autumn:

    res = autumn.check(customer_id="cus_123", feature_id="messages")

    # Handle response
    print(res)

Available Resources and Operations

Autumn SDK
  • check - Checks whether a customer currently has enough balance to use a feature.

Use this to gate access before a feature action. Enable sendEvent when you want to check and consume balance atomically in one request.

  • track - Records usage for a customer feature. Queued by default; pass async: false to apply it before responding with updated balances.

Use this after an action happens to decrement usage, or send a negative value to credit balance back.

  • track_tokens - Records AI token usage for a customer and returns the updated AI credit balance.

Use this after an LLM request when you have input and output token counts. Autumn converts token usage to a dollar amount using the configured model pricing and markup, then tracks that value against the customer's AI credit system.

  • batch_track - Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 200 (or 202) immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 200 (or 202) and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
Accounts
  • get - Gets an account: a group of customers that belong to the same business. Look it up by its account_id, or by the customer_id of any customer linked to it. Accounts only organize customers — each customer keeps its own plans, billing and Stripe customer.
  • update - Updates an account's name or ID, and links or unlinks customers. Account IDs are optional and only ever set by you. A customer belongs to at most one account. Look the account up by account_id or by any linked customer's customer_id; when that customer has no account yet, linking customers to it creates one. Linking a customer that is already in another account fails unless you pass move: true. Removing the last customer deletes the account and returns null.
Analytics
  • query - Query data in SQL
ApprovalRules
  • list - Lists the organization's approval rules, oldest first. Every member and key can read rules. For each request, only the most specific level with a rule for that person decides (user, then role, then everyone), and every rule at that level must pass.
  • get - Gets one approval rule by ID.
  • create - Creates an approval rule as version 1. allow is true (always allowed), false (never allowed) or an object of conditions that must all match. Problems with the rule come back as invalid_approval_rule with every issue under details.issues. Rules apply in live only. Only owners and admins (an OAuth token also needs organisation:write consent) and live secret keys with every scope can call it. Anyone else, whatever their scopes and including any sandbox key, gets 403 approval_rule_editor_required.
  • update - Updates the fields you pass and saves the rule as its next version. The whole rule is checked again, so changing actions re-checks the conditions in allow. Sending allow replaces it, so switching between true, false and conditions is one field. Only owners and admins (an OAuth token also needs organisation:write consent) and live secret keys with every scope can call it. Anyone else, whatever their scopes and including any sandbox key, gets 403 approval_rule_editor_required.
  • delete - Deletes an approval rule. Its versions stay readable through approval_rules.versions.list. Only owners and admins (an OAuth token also needs organisation:write consent) and live secret keys with every scope can call it. Anyone else, whatever their scopes and including any sandbox key, gets 403 approval_rule_editor_required.
  • list_versions - Lists a rule's saved versions, newest first, including after the rule is deleted.
  • can - Says whether the caller could make some request for an action: scope when their scope allows it and no rule rules it out, blocked when a rule never allows it, and none when they lack the action's scope. A conditional rule can still deny a given request; preview it to see. Alias actions such as billing.multi_attach are read as the action they're checked as.
Auth
  • exchange_token - Exchanges a workload's platform OIDC token (GitHub Actions, GCP, AWS, Azure, GitLab, Vercel, Kubernetes or your own issuer) for a short-lived am_wit_ access token, following RFC 8693. The token must match a trust rule in your organization; the access token carries that rule's scopes. Send it as a form body or JSON; no secret key is needed.
Balances
  • create - Create a balance for a customer feature.
  • list - Lists individual balances (one row per grant) across customers, live or expired: plan balances, standalone balances, top-ups, and pooled balances. Pages may hold fewer than limit rows while has_more is true.
  • list_ledger - Lists what changed one customer's balance of a feature, newest first: plan changes, resets, updates, and tracks grouped per UTC day. Each entry says why, who made it, and the balance before and after. coverage says whether history is being recorded for the customer and since when.
  • aggregate_ledger - Returns a customer's balance of a feature at each UTC hour or day of a range, and at each change other than a track, for charting it over time.
  • update - Update a customer balance.
  • delete - Delete a balance for a customer feature. Can only delete a balance that is not attached to a price (eg. you cannot delete messages that have an overage price).
  • finalize - Finalize a previously locked balance. Use 'confirm' to commit the deduction, or 'release' to return the held balance.
Billing
  • attach - Attaches a plan to a customer. Handles new subscriptions, upgrades and downgrades.

Use this endpoint to subscribe a customer to a plan, upgrade/downgrade between plans, or add an add-on product.

  • create_schedule - Creates a multi-phase subscription schedule for a customer. The first phase starts immediately and subsequent phases automatically transition at their scheduled start times.

Use this endpoint to schedule future plan changes (e.g. switch from a trial plan to a paid plan on a specific date) or to define a sequence of plans that should activate over time.

  • multi_attach - Attaches multiple plans to a customer in a single request. Creates a single Stripe subscription with all plans consolidated.

Use this endpoint when you need to subscribe a customer to multiple plans at once, such as a base plan plus add-ons, or to create a bundle of products.

  • preview_attach - Previews the billing changes that would occur when attaching a plan, without actually making any changes.

Use this endpoint to show customers what they will be charged before confirming a subscription change.

  • preview_multi_attach - Previews the billing changes that would occur when attaching multiple plans, without actually making any changes.

Use this endpoint to show customers what they will be charged before confirming a multi-plan subscription.

  • update - Updates an existing subscription. Use to modify feature quantities, cancel, or change plan configuration.

Use this endpoint to update prepaid quantities, cancel a subscription (immediately or at end of cycle), or modify subscription settings.

  • preview_update - Previews the billing changes that would occur when updating a subscription, without actually making any changes.

Use this endpoint to show customers prorated charges or refunds before confirming subscription modifications.

  • multi_update - Updates multiple plans on a customer in a single request. Currently supports cancel actions (immediately, end of cycle, or uncancel) across one or more subscriptions.

Use this endpoint to cancel or uncancel several plans atomically in one call — for example canceling a main plan together with its add-ons, or plans across multiple entities.

  • preview_multi_update - Previews the billing changes of a multi-plan update without making any changes. Returns one core preview per affected subscription.

Use this endpoint to show customers the credits and next-cycle changes of canceling multiple plans before confirming.

  • open_customer_portal - Create a billing portal session for a customer to manage their subscription.
  • setup_payment - Create a payment setup session for a customer to add or update their payment method.
  • transfer - Moves one of a customer's plans between entities, or between an entity and the customer. Set swap to exchange it with the destination's plan in the same group. Nothing is charged or refunded.
  • verify - Checks a customer's Stripe subscriptions against Autumn's record of their plans and reports any drift. Read-only: it never changes Autumn or Stripe.

Use this endpoint to audit that a customer's Stripe subscriptions, items, quantities, prices, schedules and cancellation state match what Autumn expects, for example after a migration or a manual change in Stripe.

  • import_ - Import
Customers
  • get_or_create - Creates a customer if they do not exist, or returns the existing customer by your external customer ID.

Use this as the primary entrypoint before billing operations so the customer record is always present and up to date.

  • get - Fetches a customer by ID, optionally expanding related data such as invoices or entities.

Use this when you know the customer exists or assert they exist without creating them.

  • list - Lists customers with cursor pagination and optional filters. Pass start_cursor: "" (or omit) for the first page; use next_cursor from a prior response for subsequent pages.
  • update - Updates an existing customer by ID.
  • delete - Deletes a customer by ID.
  • swap - Atomically exchanges the IDs of two customers. Plans, entities, balances and payment-processor links stay with each underlying customer, so afterwards each ID owns what the other ID had.
  • advance_test_clock - Advance a customer's Stripe test clock to a future time in milliseconds. Only Stripe test-mode customers with a test clock are supported. Advancement is asynchronous; Stripe enforces clock status and advancement limits.
  • list_subscriptions - Lists recurring plans (including add-ons) across customers, live or expired. Filter by customer, entity, plan, or status. Pages may hold fewer than limit rows while has_more is true.
  • list_purchases - Lists one-off plan purchases across customers, live or expired. Filter by customer, entity, plan, or status. Pages may hold fewer than limit rows while has_more is true.
Entities
  • create - Creates an entity for a customer and feature, then returns the entity with balances and subscriptions.

Use entities when usage and access must be scoped to sub-resources (for example seats, projects, or workspaces) instead of only the customer.

  • get - Fetches an entity by its ID.

Use this to read one entity's current state. Pass customerId when you want to scope the lookup to a specific customer.

  • list - Lists entities across the organization with pagination and optional filters.

Use this to page through entities globally, including filtering by plans inherited from parent customers or attached directly to entities.

  • update - Updates an existing entity and returns the refreshed entity object.

Use this to change entity billing controls or other mutable entity fields after the entity has already been created.

  • delete - Deletes an entity by entity ID.

Use this when the underlying resource is removed and you no longer want entity-scoped balances or subscriptions tracked for it.

Events
  • list - List usage events for your organization. Filter by customer, feature, or time range.
  • aggregate - Aggregate usage events by time period. Returns usage totals grouped by feature and optionally by a custom property.
  • query - Query events in SQL
Features
  • create - Creates a new feature.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases autumn-sdk

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229