mirror of
https://github.com/kennethreitz/neon-api-python.git
synced 2026-06-05 06:46:15 +00:00
Update Python version and add Python 3.9 support
This commit is contained in:
@@ -8,7 +8,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.11", "3.12"]
|
||||
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
+12
-12
@@ -183,8 +183,8 @@ class NeonAPI:
|
||||
self,
|
||||
*,
|
||||
shared: bool = False,
|
||||
cursor: str | None = None,
|
||||
limit: int | None = None,
|
||||
cursor: str = None,
|
||||
limit: int = None,
|
||||
) -> t.List[t.Dict[str, t.Any]]:
|
||||
"""Get a list of projects. If shared is True, get a list of shared projects.
|
||||
|
||||
@@ -297,8 +297,8 @@ class NeonAPI:
|
||||
self,
|
||||
project_id: str,
|
||||
*,
|
||||
cursor: str | None = None,
|
||||
limit: int | None = None,
|
||||
cursor: str = None,
|
||||
limit: int = None,
|
||||
) -> t.Dict[str, t.Any]:
|
||||
"""Get a list of branches.
|
||||
|
||||
@@ -400,8 +400,8 @@ class NeonAPI:
|
||||
project_id: str,
|
||||
branch_id: str,
|
||||
*,
|
||||
cursor: str | None = None,
|
||||
limit: int | None = None,
|
||||
cursor: str = None,
|
||||
limit: int = None,
|
||||
) -> t.List[t.Dict[str, t.Any]]:
|
||||
"""Get a list of databases.
|
||||
|
||||
@@ -741,8 +741,8 @@ class NeonAPI:
|
||||
self,
|
||||
project_id: str,
|
||||
*,
|
||||
cursor: str | None = None,
|
||||
limit: int | None = None,
|
||||
cursor: str = None,
|
||||
limit: int = None,
|
||||
) -> t.Dict[str, t.Any]:
|
||||
"""Get a list of operations.
|
||||
|
||||
@@ -778,10 +778,10 @@ class NeonAPI:
|
||||
def consumption(
|
||||
self,
|
||||
*,
|
||||
cursor: str | None = None,
|
||||
limit: int | None = None,
|
||||
from_date: datetime | str | None = None,
|
||||
to_date: datetime | str | None = None,
|
||||
cursor: str = None,
|
||||
limit: int = None,
|
||||
from_date: datetime = None,
|
||||
to_date: datetime = None,
|
||||
) -> t.Dict[str, t.Any]:
|
||||
"""Experimental — get a list of consumption metrics for all projects.
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ DESCRIPTION = "An API Client for the Neon API."
|
||||
URL = "https://github.com/kennethreitz/neon-api-python"
|
||||
EMAIL = "me@kennethreitz.org"
|
||||
AUTHOR = "Kenneth Reitz"
|
||||
REQUIRES_PYTHON = ">=3.10.0"
|
||||
REQUIRES_PYTHON = ">=3.9.0"
|
||||
VERSION = "0.1.1"
|
||||
|
||||
# What packages are required for this module to be executed?
|
||||
@@ -117,6 +117,7 @@ setup(
|
||||
"License :: OSI Approved :: Apache Software License",
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
|
||||
Reference in New Issue
Block a user