Skip to content

Commit 89c4f81

Browse files
committed
Publish as opencode-python-sdk on PyPI; import name stays opencode
1 parent 6803fc2 commit 89c4f81

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
environment:
1515
name: pypi
16-
url: https://pypi.org/project/opencode/
16+
url: https://pypi.org/project/opencode-python-sdk/
1717
permissions:
1818
id-token: write # trusted publishing
1919
attestations: write

‎README.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# opencode
1+
# opencode-python-sdk
22

33
[![CI](https://github.com/shrijayan/opencode-python-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/shrijayan/opencode-python-sdk/actions/workflows/ci.yml)
4-
[![PyPI](https://img.shields.io/pypi/v/opencode.svg)](https://pypi.org/project/opencode/)
5-
[![Python](https://img.shields.io/pypi/pyversions/opencode.svg)](https://pypi.org/project/opencode/)
4+
[![PyPI](https://img.shields.io/pypi/v/opencode-python-sdk.svg)](https://pypi.org/project/opencode-python-sdk/)
5+
[![Python](https://img.shields.io/pypi/pyversions/opencode-python-sdk.svg)](https://pypi.org/project/opencode-python-sdk/)
66

77
Typed Python client for the [OpenCode](https://github.com/anomalyco/opencode) 2.x server API.
88

99
> **Unofficial, community-maintained.** This package is not affiliated with or endorsed by the OpenCode team.
10-
> If the OpenCode maintainers want to take it over, we are happy to transfer this repository and the `opencode`
10+
> If the OpenCode maintainers want to take it over, we are happy to transfer this repository and the `opencode-python-sdk`
1111
> name on PyPI. Open an issue and we will hand it over.
1212
1313
- **Complete.** All 142 operations of the OpenCode 2.1 API, sync and async, with typed models for every request,
@@ -23,10 +23,10 @@ Typed Python client for the [OpenCode](https://github.com/anomalyco/opencode) 2.
2323
## Install
2424

2525
```bash
26-
pip install opencode
26+
pip install opencode-python-sdk
2727
```
2828

29-
Requires Python 3.10 or newer. To start a server from Python, install the [OpenCode CLI](https://opencode.ai) too.
29+
The package imports as `opencode`. Requires Python 3.10 or newer. To start a server from Python, install the [OpenCode CLI](https://opencode.ai) too.
3030

3131
## Quick start
3232

@@ -254,7 +254,7 @@ retry; credentials are never logged.
254254

255255
## Versioning
256256

257-
| `opencode` (this package) | OpenCode server |
257+
| `opencode-python-sdk` (this package) | OpenCode server |
258258
| --- | --- |
259259
| 0.1.x | 2.1.x |
260260

‎docs/design.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ <h2>Landscape</h2>
132132
<tr><td>Upstream issue</td><td>Open</td><td><a href="https://github.com/anomalyco/opencode/issues/54300">anomalyco/opencode#54300</a> asks for a 2.x Python client. Maintainers have not chosen a direction. Earlier attempts (#2266, #4031, #2779) were closed or removed.</td></tr>
133133
</tbody>
134134
</table></div>
135-
<p>Publish on PyPI as <code>opencode</code> (unclaimed) and import it as <code>opencode</code>: <code>pip install opencode</code>, <code>from opencode import Opencode</code>. The repository stays <code>opencode-python-sdk</code>. The README marks the package as unofficial and states that we will transfer the repository and the PyPI name to the OpenCode maintainers if they want it.</p>
135+
<p>Publish on PyPI as <code>opencode-python-sdk</code> (PyPI rejected <code>opencode</code> as too similar to an existing project) and import it as <code>opencode</code>: <code>pip install opencode-python-sdk</code>, <code>from opencode import Opencode</code>. The README marks the package as unofficial and states that we will transfer the repository and the PyPI name to the OpenCode maintainers if they want it.</p>
136136
</section>
137137

138138
<section id="spec">

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "opencode"
2+
name = "opencode-python-sdk"
33
version = "0.1.0"
44
description = "Typed Python client for the OpenCode 2.x server API"
55
readme = "README.md"

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)