Commit Graph

20 Commits

Author SHA1 Message Date
Jakub Novák b42ab2a86b Add pipeline for linting and formatting (#883)
Setup linting and formatting in all packages
2025-08-31 12:06:00 -07:00
Mish Ushakov edeafb1cdd Adds files.getInfo / files.get_info methods to retrieve information about directory/files (#724)
**Changelog**

- Adds `files.getInfo`, `files.get_info` methods to the SDKs.
- Adds tests for the new methods
- Adds documentation for the above.

**Examples**

JavaScript

```js
import { Sandbox } from '@e2b/code-interpreter'

const sandbox = await Sandbox.create()

// Create a new file
await sandbox.files.write('test_file.txt', 'Hello, world!')

// Get information about the file
const info = await sandbox.files.getInfo('test_file.txt')

console.log(info)
// {
//   name: 'test_file.txt',
//   type: 'file',
//   path: '/home/user/test_file.txt'
// }
```

Python

```py
from e2b_code_interpreter import Sandbox

sandbox = Sandbox()

# Create a new file
sandbox.files.write('test_file', 'Hello, world!')

# Get information about the file
info = sandbox.files.get_info('test_file')

print(info)
# EntryInfo(name='test_file.txt', type=<FileType.FILE: 'file'>, path='/home/user/test_file.txt')
```

---------

Co-authored-by: Jakub Novak <jakub@e2b.dev>
2025-07-29 03:39:42 -07:00
Jakub Novák 706ebd9af8 Fix generating files with docker (#829)
# Description

Fixes an issue in generating files in Docker. There has been an
incompatibility of `buf` (version `29.5`) and `protoc-gen-es` (version
`2.2.2`).

I updated `protoc-gen-es@` to `2.6.2`

Also refactored the code a little so it's easier to read
Added a CI pipeline job to check all files are properly generated
2025-07-28 13:47:26 +02:00
Mish Ushakov b21f86c543 Added lint workflow for JS, Python SDKs (#759)
- Linted all existing files
- Added GitHub workflow to check everything is linted correctly
2025-06-05 14:52:48 +02:00
Jakub Novak 594bb174d2 Generate only relevant api routes for the client in SDKs 2025-01-17 11:01:40 -08:00
Tomas Valenta 96aeab20a4 [WIP] Switch API client to openapi-python-client for async support 2024-07-05 18:12:28 -07:00
Tomas Valenta c18ada0b9d Python file handling 2024-06-08 23:22:19 +02:00
Tomas Valenta b022dcfb80 [WIP] Upload and download handling 2024-06-02 23:06:37 +02:00
Tomas Valenta 068ff5613f Regenerate APIs 2024-05-31 06:40:42 +02:00
Tomas Valenta 3b4c915a48 Generate clients 2024-05-17 02:05:12 -07:00
Tomas Valenta 002a28870e [WIP] Generate python client 2024-04-29 22:22:33 -07:00
Jakub Novák 7fe1d3b569 Rename api endpoints (#298) 2024-02-02 18:57:40 +01:00
Jakub Novak 8dd2a0f33b Allow extra fields 2024-01-30 14:45:09 +01:00
Jakub Novak 241f1e4329 Update openapi generator 2023-11-21 13:54:53 +01:00
Jakub Novák 388309830b New infra (#212)
Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com>
Co-authored-by: Vasek Mlejnsky <vasek.mlejnsky@gmail.com>
2023-11-06 15:07:09 +01:00
Jakub Novák 6feaccf761 Sync is da way (#197)
Test CLI / Build CLI (push) Has been cancelled
2023-10-15 15:24:05 -07:00
Jakub Novák 4ad651feaa Support both pydantic v1 and v2 in python sdk (#176)
Test CLI / Build CLI (push) Has been cancelled
2023-09-29 16:27:26 +02:00
Jakub Novák cb1ef24d84 Update Python SDK to pydantic V2 (#167)
Test CLI / Build CLI (push) Has been cancelled
2023-09-26 11:18:47 +02:00
Jakub Novák 3c6ff27ede Update pydantic to version 2.x.x (#166)
Test CLI / Build CLI (push) Has been cancelled
2023-09-26 11:02:26 +02:00
Tomas Valenta 922f604dbc Add SDK and CLI [WIP] to the monorepo 2023-08-14 14:54:45 +02:00