Skip to content

Commit 0d8b7b4

Browse files
committed
SDK regeneration
1 parent 199094c commit 0d8b7b4

11 files changed

Lines changed: 24 additions & 989 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "scrapybara"
33

44
[tool.poetry]
55
name = "scrapybara"
6-
version = "2.4.5"
6+
version = "2.4.6"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 2 additions & 297 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ client.instance.edit(
608608
</dl>
609609
</details>
610610

611-
<details><summary><code>client.instance.<a href="src/scrapybara/instance/client.py">filesystem</a>(...)</code></summary>
611+
<details><summary><code>client.instance.<a href="src/scrapybara/instance/client.py">file</a>(...)</code></summary>
612612
<dl>
613613
<dd>
614614

@@ -626,7 +626,7 @@ from scrapybara import Scrapybara
626626
client = Scrapybara(
627627
api_key="YOUR_API_KEY",
628628
)
629-
client.instance.filesystem(
629+
client.instance.file(
630630
instance_id="instance_id",
631631
command="command",
632632
)
@@ -1996,301 +1996,6 @@ client.notebook.execute(
19961996
</dl>
19971997

19981998

1999-
</dd>
2000-
</dl>
2001-
</details>
2002-
2003-
## File
2004-
<details><summary><code>client.file.<a href="src/scrapybara/file/client.py">read</a>(...)</code></summary>
2005-
<dl>
2006-
<dd>
2007-
2008-
#### 🔌 Usage
2009-
2010-
<dl>
2011-
<dd>
2012-
2013-
<dl>
2014-
<dd>
2015-
2016-
```python
2017-
from scrapybara import Scrapybara
2018-
2019-
client = Scrapybara(
2020-
api_key="YOUR_API_KEY",
2021-
)
2022-
client.file.read(
2023-
instance_id="instance_id",
2024-
path="path",
2025-
)
2026-
2027-
```
2028-
</dd>
2029-
</dl>
2030-
</dd>
2031-
</dl>
2032-
2033-
#### ⚙️ Parameters
2034-
2035-
<dl>
2036-
<dd>
2037-
2038-
<dl>
2039-
<dd>
2040-
2041-
**instance_id:** `str`
2042-
2043-
</dd>
2044-
</dl>
2045-
2046-
<dl>
2047-
<dd>
2048-
2049-
**path:** `str`
2050-
2051-
</dd>
2052-
</dl>
2053-
2054-
<dl>
2055-
<dd>
2056-
2057-
**encoding:** `typing.Optional[str]`
2058-
2059-
</dd>
2060-
</dl>
2061-
2062-
<dl>
2063-
<dd>
2064-
2065-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
2066-
2067-
</dd>
2068-
</dl>
2069-
</dd>
2070-
</dl>
2071-
2072-
2073-
</dd>
2074-
</dl>
2075-
</details>
2076-
2077-
<details><summary><code>client.file.<a href="src/scrapybara/file/client.py">write</a>(...)</code></summary>
2078-
<dl>
2079-
<dd>
2080-
2081-
#### 🔌 Usage
2082-
2083-
<dl>
2084-
<dd>
2085-
2086-
<dl>
2087-
<dd>
2088-
2089-
```python
2090-
from scrapybara import Scrapybara
2091-
2092-
client = Scrapybara(
2093-
api_key="YOUR_API_KEY",
2094-
)
2095-
client.file.write(
2096-
instance_id="instance_id",
2097-
path="path",
2098-
content="content",
2099-
)
2100-
2101-
```
2102-
</dd>
2103-
</dl>
2104-
</dd>
2105-
</dl>
2106-
2107-
#### ⚙️ Parameters
2108-
2109-
<dl>
2110-
<dd>
2111-
2112-
<dl>
2113-
<dd>
2114-
2115-
**instance_id:** `str`
2116-
2117-
</dd>
2118-
</dl>
2119-
2120-
<dl>
2121-
<dd>
2122-
2123-
**path:** `str`
2124-
2125-
</dd>
2126-
</dl>
2127-
2128-
<dl>
2129-
<dd>
2130-
2131-
**content:** `str`
2132-
2133-
</dd>
2134-
</dl>
2135-
2136-
<dl>
2137-
<dd>
2138-
2139-
**encoding:** `typing.Optional[str]`
2140-
2141-
</dd>
2142-
</dl>
2143-
2144-
<dl>
2145-
<dd>
2146-
2147-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
2148-
2149-
</dd>
2150-
</dl>
2151-
</dd>
2152-
</dl>
2153-
2154-
2155-
</dd>
2156-
</dl>
2157-
</details>
2158-
2159-
<details><summary><code>client.file.<a href="src/scrapybara/file/client.py">upload</a>(...)</code></summary>
2160-
<dl>
2161-
<dd>
2162-
2163-
#### 🔌 Usage
2164-
2165-
<dl>
2166-
<dd>
2167-
2168-
<dl>
2169-
<dd>
2170-
2171-
```python
2172-
from scrapybara import Scrapybara
2173-
2174-
client = Scrapybara(
2175-
api_key="YOUR_API_KEY",
2176-
)
2177-
client.file.upload(
2178-
instance_id="instance_id",
2179-
path="path",
2180-
content="content",
2181-
)
2182-
2183-
```
2184-
</dd>
2185-
</dl>
2186-
</dd>
2187-
</dl>
2188-
2189-
#### ⚙️ Parameters
2190-
2191-
<dl>
2192-
<dd>
2193-
2194-
<dl>
2195-
<dd>
2196-
2197-
**instance_id:** `str`
2198-
2199-
</dd>
2200-
</dl>
2201-
2202-
<dl>
2203-
<dd>
2204-
2205-
**path:** `str`
2206-
2207-
</dd>
2208-
</dl>
2209-
2210-
<dl>
2211-
<dd>
2212-
2213-
**content:** `str`
2214-
2215-
</dd>
2216-
</dl>
2217-
2218-
<dl>
2219-
<dd>
2220-
2221-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
2222-
2223-
</dd>
2224-
</dl>
2225-
</dd>
2226-
</dl>
2227-
2228-
2229-
</dd>
2230-
</dl>
2231-
</details>
2232-
2233-
<details><summary><code>client.file.<a href="src/scrapybara/file/client.py">download</a>(...)</code></summary>
2234-
<dl>
2235-
<dd>
2236-
2237-
#### 🔌 Usage
2238-
2239-
<dl>
2240-
<dd>
2241-
2242-
<dl>
2243-
<dd>
2244-
2245-
```python
2246-
from scrapybara import Scrapybara
2247-
2248-
client = Scrapybara(
2249-
api_key="YOUR_API_KEY",
2250-
)
2251-
client.file.download(
2252-
instance_id="instance_id",
2253-
path="path",
2254-
)
2255-
2256-
```
2257-
</dd>
2258-
</dl>
2259-
</dd>
2260-
</dl>
2261-
2262-
#### ⚙️ Parameters
2263-
2264-
<dl>
2265-
<dd>
2266-
2267-
<dl>
2268-
<dd>
2269-
2270-
**instance_id:** `str`
2271-
2272-
</dd>
2273-
</dl>
2274-
2275-
<dl>
2276-
<dd>
2277-
2278-
**path:** `str`
2279-
2280-
</dd>
2281-
</dl>
2282-
2283-
<dl>
2284-
<dd>
2285-
2286-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
2287-
2288-
</dd>
2289-
</dl>
2290-
</dd>
2291-
</dl>
2292-
2293-
22941999
</dd>
22952000
</dl>
22962001
</details>

src/scrapybara/__init__.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
EnvGetResponse,
1818
EnvResponse,
1919
ExecuteCellRequest,
20-
FileDownloadResponse,
21-
FileReadResponse,
22-
FilesystemResponse,
20+
FileResponse,
2321
GetCursorPositionAction,
2422
GetInstanceResponse,
2523
GetInstanceResponseInstanceType,
@@ -45,7 +43,7 @@
4543
WaitAction,
4644
)
4745
from .errors import UnprocessableEntityError
48-
from . import browser, code, env, file, instance, notebook
46+
from . import browser, code, env, instance, notebook
4947
from .client import AsyncScrapybara, Scrapybara
5048
from .environment import ScrapybaraEnvironment
5149
from .instance import (
@@ -82,9 +80,7 @@
8280
"EnvGetResponse",
8381
"EnvResponse",
8482
"ExecuteCellRequest",
85-
"FileDownloadResponse",
86-
"FileReadResponse",
87-
"FilesystemResponse",
83+
"FileResponse",
8884
"GetCursorPositionAction",
8985
"GetInstanceResponse",
9086
"GetInstanceResponseInstanceType",
@@ -125,7 +121,6 @@
125121
"browser",
126122
"code",
127123
"env",
128-
"file",
129124
"instance",
130125
"notebook",
131126
]

src/scrapybara/base_client.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from .browser.client import BrowserClient
1111
from .code.client import CodeClient
1212
from .notebook.client import NotebookClient
13-
from .file.client import FileClient
1413
from .env.client import EnvClient
1514
from .types.deployment_config_instance_type import DeploymentConfigInstanceType
1615
from .core.request_options import RequestOptions
@@ -26,7 +25,6 @@
2625
from .browser.client import AsyncBrowserClient
2726
from .code.client import AsyncCodeClient
2827
from .notebook.client import AsyncNotebookClient
29-
from .file.client import AsyncFileClient
3028
from .env.client import AsyncEnvClient
3129

3230
# this is used as the default value for optional parameters
@@ -99,7 +97,6 @@ def __init__(
9997
self.browser = BrowserClient(client_wrapper=self._client_wrapper)
10098
self.code = CodeClient(client_wrapper=self._client_wrapper)
10199
self.notebook = NotebookClient(client_wrapper=self._client_wrapper)
102-
self.file = FileClient(client_wrapper=self._client_wrapper)
103100
self.env = EnvClient(client_wrapper=self._client_wrapper)
104101

105102
def start(
@@ -383,7 +380,6 @@ def __init__(
383380
self.browser = AsyncBrowserClient(client_wrapper=self._client_wrapper)
384381
self.code = AsyncCodeClient(client_wrapper=self._client_wrapper)
385382
self.notebook = AsyncNotebookClient(client_wrapper=self._client_wrapper)
386-
self.file = AsyncFileClient(client_wrapper=self._client_wrapper)
387383
self.env = AsyncEnvClient(client_wrapper=self._client_wrapper)
388384

389385
async def start(

0 commit comments

Comments
 (0)