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

costfluent

Latest version: v1.6.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: costfluent
0 Stars
0 Forks
8 Versions
704 Downloads
Python Repo language

Scan summary

costfluent was last scanned on 27 Nov 2026 at version 1.6.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest 2 were published within 4 days (24–27 Nov 2026).
  • Findings: No rules fired in version 1.6.0.
  • Downloads: 704 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.6.0 LATEST 27 Nov 2026 No rules fired
1.5.0 24 Nov 2026 No rules fired
1.4.0 18 Nov 2026 No rules fired
1.3.1 13 Nov 2026 Not shown
1.3.0 13 Nov 2026 Not shown

No rules fired in 1.6.0

Findings

Findings for v1.6.0. 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.6.0; other versions have their own rules, not their own score.

README

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

costfluent

Python client for the Costfluent Public API: every operation with typed models, sync and async, plus retries, idempotency keys, pagination and errors handled for you.

pip install costfluent

It needs Python 3.11 or later and an API token, created under Settings, API tokens, in any Costfluent organization. Give the token only the capabilities your script needs.

Quick start

import os

from costfluent import create_client, paginate
from costfluent.api.workspaces import list_workspaces

client = create_client(os.environ["COSTFLUENT_API_TOKEN"])

for workspace in paginate(list_workspaces.sync, client=client, limit=100):
    print(workspace.id, workspace.name)

Each operation is a module under costfluent.api.<tag> named after the operation, with four functions: sync returns the parsed model, sync_detailed the status, headers and model, and asyncio and asyncio_detailed are their async twins. Request and response models are under costfluent.models. create_client takes base_url, timeout (seconds, per request) and max_retries. The token travels with every request, so base_url must use https://; plain http:// is accepted only for localhost, 127.0.0.1 and ::1, and any other raises ValueError. Calls go through the proxy HTTPS_PROXY or ALL_PROXY names (HTTP_PROXY for an http:// base URL), and straight to a host NO_PROXY covers.

from costfluent.api.folders import create_folder
from costfluent.models.create_folder_request import CreateFolderRequest

folder = create_folder.sync(client=client, body=CreateFolderRequest(workspace_id="wsp_...", title="Finance"))

Pagination

A list answers one page with links and data. paginate (and apaginate for the async functions) yields every item, following links.next until it is empty. The next page is always requested from the client's own base URL, so the token goes nowhere else.

Money

Amounts are strings holding the exact decimal the API computed, such as "1234.56789012", never floats. Convert with decimal.Decimal(amount) to calculate with them.

Errors and retries

Any error status raises CostfluentError once retries are spent. It carries status, the API's code (not_found, validation_failed, idempotency_key_reused and so on), detail, field_errors, trace_id and the request_id to quote to support, with is_not_found, is_rate_limited and is_idempotency_key_reused for the common checks.

  • A 429 is retried for every method, after the Retry-After or RateLimit-Reset the API sends.
  • A 5xx, a connection error, or a 404 that is not the API's own problem details (a proxy's) is retried for GET, HEAD, PUT, DELETE and creates, but not for other POSTs, which trigger work, nor for a request with If-Match.
  • A DELETE without If-Match is resent too: when its first attempt removed the object and only the answer was lost, the resend answers not found. After a delete, is_not_found means no such object is visible to the token: it was removed, by an earlier attempt or anyone else, or the id is wrong or out of the token's reach. Treat it as done only when the id came from this token's own read.
  • A 429 is waited out as often as the API asks while the waits stay within 60 seconds in all, each counted as at least a second; the next wait that would pass them raises the error at once, and so does a single wait over 60 seconds, which means the token's hourly quota is spent.
  • Other retries back off exponentially from one second with jitter, at most three times, or max_retries; max_retries=0 turns every retry off, rate limits included. A timeout is not retried.

Every create sends a fresh Idempotency-Key and resends it on each retry, so a retried create is answered with the first response instead of creating twice. Pass idempotency_key= to choose the key yourself, for example to make a scheduled job's create safe to run again.

Versions

Releases are 1.MINOR.PATCH, numbered with the Costfluent Go and TypeScript clients. The major is the API's path version, v1, which only grows; the minor rises with each release that carries a newer API contract, the patch is a fix to the client alone. costfluent.CONTRACT_SHA256 is the SHA-256 of the API document a release was generated from.

Development

The modules under costfluent/api and costfluent/models, client.py, errors.py, types.py and _contract.py are generated by openapi-python-client with openapi-python-client.yaml; the rest is written by hand.

python3 -m venv .venv
.venv/bin/pip install --require-hashes -r requirements-dev.txt
PYTHONPATH=src .venv/bin/python -m unittest discover -s tests -t .
.venv/bin/ruff check . && .venv/bin/ruff format --check .

License

Apache-2.0, see LICENSE.

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 costfluent

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

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (2)
Research

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

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229