- removed machine, os, processor, release default headers (these do not occur in the JS version) - particularly, "processor" header was causing issues on Windows due to incorrect formatting/escape. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Removes unnecessary default headers from the Python SDK API client and adds a patch changeset. > > - **Python SDK**: > - Trim `default_headers` in `packages/python-sdk/e2b/api/metadata.py` by removing `machine`, `os`, `processor`, and `release`. > - **Release**: > - Add changeset to publish a patch for `@e2b/python-sdk`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 9a5ef769ee2eb0b9a05649c20a00dfd507984931. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
15 lines
317 B
Python
15 lines
317 B
Python
import platform
|
|
|
|
from importlib import metadata
|
|
|
|
package_version = metadata.version("e2b")
|
|
|
|
default_headers = {
|
|
"lang": "python",
|
|
"lang_version": platform.python_version(),
|
|
"package_version": metadata.version("e2b"),
|
|
"publisher": "e2b",
|
|
"sdk_runtime": "python",
|
|
"system": platform.system(),
|
|
}
|