Skip to content

Commit b14cfa8

Browse files
authoredJan 14, 2025··
Bumps to 0.2.0 (#9)
1 parent 02cc550 commit b14cfa8

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
lines changed
 

Diff for: ‎HISTORY.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
History
22
=======
33

4-
0.1.5
4+
0.2.0
5+
-----
6+
7+
- Bumps the OpenAPI schema used for the SDK
8+
9+
0.1.6
510
-----
611

712
- Fixes database update HTTP method

Diff for: ‎neon_api/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.5"
1+
__version__ = "0.2.0"

Diff for: ‎neon_api/client.py

+13-3
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,13 @@ def project(self, project_id: str) -> t.Dict[str, t.Any]:
216216
return self._request("GET", r_path)
217217

218218
@returns_model(schema.ConnectionUri)
219-
def connection_uri(self, project_id: str, database_name: str = None, role_name: str = None, pooled: bool = False) -> t.Dict[str, t.Any]:
219+
def connection_uri(
220+
self,
221+
project_id: str,
222+
database_name: str = None,
223+
role_name: str = None,
224+
pooled: bool = False,
225+
) -> t.Dict[str, t.Any]:
220226
"""Get a connection URI for a project.
221227
222228
:param project_id: The ID of the project.
@@ -226,8 +232,12 @@ def connection_uri(self, project_id: str, database_name: str = None, role_name:
226232
227233
More info: https://api-docs.neon.tech/reference/getconnectionuri
228234
"""
229-
r_params = compact_mapping({"database_name": database_name, "role_name": role_name, "pooled": pooled})
230-
return self._request("GET", f"projects/{project_id}/connection_uri", params=r_params)
235+
r_params = compact_mapping(
236+
{"database_name": database_name, "role_name": role_name, "pooled": pooled}
237+
)
238+
return self._request(
239+
"GET", f"projects/{project_id}/connection_uri", params=r_params
240+
)
231241

232242
@returns_model(schema.ProjectResponse)
233243
def project_create(self, **json: dict) -> t.Dict[str, t.Any]:

Diff for: ‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "neon-api"
3-
version = "0.1.5"
3+
version = "0.2.0"
44
description = "An API Client for the Neon API."
55
authors = ["Kenneth Reitz <me@kennethreitz.org>"]
66
license = "Apache-2.0"

Diff for: ‎setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
EMAIL = "me@kennethreitz.org"
1919
AUTHOR = "Kenneth Reitz"
2020
REQUIRES_PYTHON = ">=3.9.0"
21-
VERSION = "0.1.5"
21+
VERSION = "0.2.0"
2222

2323
# What packages are required for this module to be executed?
2424
REQUIRED = ["requests", "pydantic >= 2.0.0"]

0 commit comments

Comments
 (0)
Please sign in to comment.