Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.3.0"
".": "0.4.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 32
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/dedalus-labs/dedalus-8618662d24c795caf31ecb2b62c603c5cb1002386003f3a40854664da766eef4.yml
openapi_spec_hash: 4dd9388612970bff30995d2a4f53fa59
config_hash: 1459e41df47cbb91484141371c74dba9
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/dedalus-labs/dedalus-a63ad804ae8ee532d57afae307595dae02d2a6924f83657430b3579193560775.yml
openapi_spec_hash: ccb02923079d91569a17162c88da590b
config_hash: 0e31b0b75cafdbc25febc2b7ca219799
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.4.0 (2026-05-12)

Full Changelog: [v0.3.0...v0.4.0](https://github.com/dedalus-labs/dedalus-python/compare/v0.3.0...v0.4.0)

### Features

* **api:** add usage endpoints/autosleep ([3ebb476](https://github.com/dedalus-labs/dedalus-python/commit/3ebb476fd66187dce852e6efc8c5ea80d095e0dd))

## 0.3.0 (2026-05-12)

Full Changelog: [v0.2.0...v0.3.0](https://github.com/dedalus-labs/dedalus-python/compare/v0.2.0...v0.3.0)
Expand Down
18 changes: 8 additions & 10 deletions api.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
# Orgs

## Usage
# Usage

Types:

```python
from dedalus_sdk.types.orgs import (
from dedalus_sdk.types import (
MachineComputeUsage,
MachineComputeUsageRow,
MachineStorageUsage,
MachineStorageUsageEvidence,
MachineUsage,
MachineUsageEvidence,
MachineStorageUsageRow,
OrgUsage,
)
```

Methods:

- <code title="get /v1/orgs/{org_id}/usage">client.orgs.usage.<a href="./src/dedalus_sdk/resources/orgs/usage.py">retrieve</a>(\*, org_id, \*\*<a href="src/dedalus_sdk/types/orgs/usage_retrieve_params.py">params</a>) -> <a href="./src/dedalus_sdk/types/orgs/org_usage.py">OrgUsage</a></code>
- <code title="get /v1/orgs/{org_id}/usage/storage/machines">client.orgs.usage.<a href="./src/dedalus_sdk/resources/orgs/usage.py">get_machine_storage_usage</a>(\*, org_id, \*\*<a href="src/dedalus_sdk/types/orgs/usage_get_machine_storage_usage_params.py">params</a>) -> <a href="./src/dedalus_sdk/types/orgs/machine_storage_usage.py">MachineStorageUsage</a></code>
- <code title="get /v1/orgs/{org_id}/usage/machines">client.orgs.usage.<a href="./src/dedalus_sdk/resources/orgs/usage.py">get_machine_usage</a>(\*, org_id, \*\*<a href="src/dedalus_sdk/types/orgs/usage_get_machine_usage_params.py">params</a>) -> <a href="./src/dedalus_sdk/types/orgs/machine_usage.py">MachineUsage</a></code>
- <code title="get /v1/usage">client.usage.<a href="./src/dedalus_sdk/resources/usage.py">retrieve</a>(\*\*<a href="src/dedalus_sdk/types/usage_retrieve_params.py">params</a>) -> <a href="./src/dedalus_sdk/types/org_usage.py">OrgUsage</a></code>
- <code title="get /v1/usage/machines/compute">client.usage.<a href="./src/dedalus_sdk/resources/usage.py">machine_compute</a>(\*\*<a href="src/dedalus_sdk/types/usage_machine_compute_params.py">params</a>) -> <a href="./src/dedalus_sdk/types/machine_compute_usage.py">MachineComputeUsage</a></code>
- <code title="get /v1/usage/machines/storage">client.usage.<a href="./src/dedalus_sdk/resources/usage.py">machine_storage</a>(\*\*<a href="src/dedalus_sdk/types/usage_machine_storage_params.py">params</a>) -> <a href="./src/dedalus_sdk/types/machine_storage_usage.py">MachineStorageUsage</a></code>

# Machines

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dedalus-sdk"
version = "0.3.0"
version = "0.4.0"
description = "The official Python library for the Dedalus API"
dynamic = ["readme"]
license = "MIT"
Expand Down
40 changes: 20 additions & 20 deletions src/dedalus_sdk/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
)

if TYPE_CHECKING:
from .resources import orgs, machines
from .resources.orgs.orgs import OrgsResource, AsyncOrgsResource
from .resources import usage, machines
from .resources.usage import UsageResource, AsyncUsageResource
from .resources.machines.machines import MachinesResource, AsyncMachinesResource

__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Dedalus", "AsyncDedalus", "Client", "AsyncClient"]
Expand Down Expand Up @@ -135,10 +135,10 @@ def __init__(
self._default_stream_cls = Stream

@cached_property
def orgs(self) -> OrgsResource:
from .resources.orgs import OrgsResource
def usage(self) -> UsageResource:
from .resources.usage import UsageResource

return OrgsResource(self)
return UsageResource(self)

@cached_property
def machines(self) -> MachinesResource:
Expand Down Expand Up @@ -384,10 +384,10 @@ def __init__(
self._default_stream_cls = AsyncStream

@cached_property
def orgs(self) -> AsyncOrgsResource:
from .resources.orgs import AsyncOrgsResource
def usage(self) -> AsyncUsageResource:
from .resources.usage import AsyncUsageResource

return AsyncOrgsResource(self)
return AsyncUsageResource(self)

@cached_property
def machines(self) -> AsyncMachinesResource:
Expand Down Expand Up @@ -549,10 +549,10 @@ def __init__(self, client: Dedalus) -> None:
self._client = client

@cached_property
def orgs(self) -> orgs.OrgsResourceWithRawResponse:
from .resources.orgs import OrgsResourceWithRawResponse
def usage(self) -> usage.UsageResourceWithRawResponse:
from .resources.usage import UsageResourceWithRawResponse

return OrgsResourceWithRawResponse(self._client.orgs)
return UsageResourceWithRawResponse(self._client.usage)

@cached_property
def machines(self) -> machines.MachinesResourceWithRawResponse:
Expand All @@ -568,10 +568,10 @@ def __init__(self, client: AsyncDedalus) -> None:
self._client = client

@cached_property
def orgs(self) -> orgs.AsyncOrgsResourceWithRawResponse:
from .resources.orgs import AsyncOrgsResourceWithRawResponse
def usage(self) -> usage.AsyncUsageResourceWithRawResponse:
from .resources.usage import AsyncUsageResourceWithRawResponse

return AsyncOrgsResourceWithRawResponse(self._client.orgs)
return AsyncUsageResourceWithRawResponse(self._client.usage)

@cached_property
def machines(self) -> machines.AsyncMachinesResourceWithRawResponse:
Expand All @@ -587,10 +587,10 @@ def __init__(self, client: Dedalus) -> None:
self._client = client

@cached_property
def orgs(self) -> orgs.OrgsResourceWithStreamingResponse:
from .resources.orgs import OrgsResourceWithStreamingResponse
def usage(self) -> usage.UsageResourceWithStreamingResponse:
from .resources.usage import UsageResourceWithStreamingResponse

return OrgsResourceWithStreamingResponse(self._client.orgs)
return UsageResourceWithStreamingResponse(self._client.usage)

@cached_property
def machines(self) -> machines.MachinesResourceWithStreamingResponse:
Expand All @@ -606,10 +606,10 @@ def __init__(self, client: AsyncDedalus) -> None:
self._client = client

@cached_property
def orgs(self) -> orgs.AsyncOrgsResourceWithStreamingResponse:
from .resources.orgs import AsyncOrgsResourceWithStreamingResponse
def usage(self) -> usage.AsyncUsageResourceWithStreamingResponse:
from .resources.usage import AsyncUsageResourceWithStreamingResponse

return AsyncOrgsResourceWithStreamingResponse(self._client.orgs)
return AsyncUsageResourceWithStreamingResponse(self._client.usage)

@cached_property
def machines(self) -> machines.AsyncMachinesResourceWithStreamingResponse:
Expand Down
2 changes: 1 addition & 1 deletion src/dedalus_sdk/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "dedalus_sdk"
__version__ = "0.3.0" # x-release-please-version
__version__ = "0.4.0" # x-release-please-version
26 changes: 13 additions & 13 deletions src/dedalus_sdk/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .orgs import (
OrgsResource,
AsyncOrgsResource,
OrgsResourceWithRawResponse,
AsyncOrgsResourceWithRawResponse,
OrgsResourceWithStreamingResponse,
AsyncOrgsResourceWithStreamingResponse,
from .usage import (
UsageResource,
AsyncUsageResource,
UsageResourceWithRawResponse,
AsyncUsageResourceWithRawResponse,
UsageResourceWithStreamingResponse,
AsyncUsageResourceWithStreamingResponse,
)
from .machines import (
MachinesResource,
Expand All @@ -18,12 +18,12 @@
)

__all__ = [
"OrgsResource",
"AsyncOrgsResource",
"OrgsResourceWithRawResponse",
"AsyncOrgsResourceWithRawResponse",
"OrgsResourceWithStreamingResponse",
"AsyncOrgsResourceWithStreamingResponse",
"UsageResource",
"AsyncUsageResource",
"UsageResourceWithRawResponse",
"AsyncUsageResourceWithRawResponse",
"UsageResourceWithStreamingResponse",
"AsyncUsageResourceWithStreamingResponse",
"MachinesResource",
"AsyncMachinesResource",
"MachinesResourceWithRawResponse",
Expand Down
33 changes: 0 additions & 33 deletions src/dedalus_sdk/resources/orgs/__init__.py

This file was deleted.

102 changes: 0 additions & 102 deletions src/dedalus_sdk/resources/orgs/orgs.py

This file was deleted.

Loading
Loading