diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5272bde..bf77206 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -32,7 +32,7 @@ $ pip install -r requirements-dev.lock ## Modifying/Adding code Most of the SDK is generated code, and any modified code will be overridden on the next generation. The -`src/phoebe_minus_bird/lib/` and `examples/` directories are exceptions and will never be overridden. +`src/phoebe_bird/lib/` and `examples/` directories are exceptions and will never be overridden. ## Adding and running examples diff --git a/README.md b/README.md index c9d6115..233b8b9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Phoebe Python API library -[![PyPI version](https://img.shields.io/pypi/v/phoebe-bird.svg)](https://pypi.org/project/phoebe-bird/) +[![PyPI version](https://img.shields.io/pypi/v/phoebe_bird.svg)](https://pypi.org/project/phoebe_bird/) The Phoebe Python library provides convenient access to the Phoebe REST API from any Python 3.7+ application. The library includes type definitions for all request params and response fields, @@ -16,7 +16,7 @@ The REST API documentation can be found [on science.ebird.org](https://science.e ```sh # install from PyPI -pip install --pre phoebe-bird +pip install --pre phoebe_bird ``` ## Usage @@ -25,7 +25,7 @@ The full API of this library can be found in [api.md](api.md). ```python import os -from phoebe_minus_bird import Phoebe +from phoebe_bird import Phoebe client = Phoebe( # This is the default and can be omitted @@ -50,7 +50,7 @@ Simply import `AsyncPhoebe` instead of `Phoebe` and use `await` with each API ca ```python import os import asyncio -from phoebe_minus_bird import AsyncPhoebe +from phoebe_bird import AsyncPhoebe client = AsyncPhoebe( # This is the default and can be omitted @@ -81,16 +81,16 @@ Typed requests and responses provide autocomplete and documentation within your ## Handling errors -When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `phoebe_minus_bird.APIConnectionError` is raised. +When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `phoebe_bird.APIConnectionError` is raised. When the API returns a non-success status code (that is, 4xx or 5xx -response), a subclass of `phoebe_minus_bird.APIStatusError` is raised, containing `status_code` and `response` properties. +response), a subclass of `phoebe_bird.APIStatusError` is raised, containing `status_code` and `response` properties. -All errors inherit from `phoebe_minus_bird.APIError`. +All errors inherit from `phoebe_bird.APIError`. ```python -import phoebe_minus_bird -from phoebe_minus_bird import Phoebe +import phoebe_bird +from phoebe_bird import Phoebe client = Phoebe() @@ -98,12 +98,12 @@ try: client.ref.hotspot.info.retrieve( "L99381", ) -except phoebe_minus_bird.APIConnectionError as e: +except phoebe_bird.APIConnectionError as e: print("The server could not be reached") print(e.__cause__) # an underlying Exception, likely raised within httpx. -except phoebe_minus_bird.RateLimitError as e: +except phoebe_bird.RateLimitError as e: print("A 429 status code was received; we should back off a bit.") -except phoebe_minus_bird.APIStatusError as e: +except phoebe_bird.APIStatusError as e: print("Another non-200-range status code was received") print(e.status_code) print(e.response) @@ -131,7 +131,7 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ You can use the `max_retries` option to configure or disable retry settings: ```python -from phoebe_minus_bird import Phoebe +from phoebe_bird import Phoebe # Configure the default for all requests: client = Phoebe( @@ -151,7 +151,7 @@ By default requests time out after 1 minute. You can configure this with a `time which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/#fine-tuning-the-configuration) object: ```python -from phoebe_minus_bird import Phoebe +from phoebe_bird import Phoebe # Configure the default for all requests: client = Phoebe( @@ -203,7 +203,7 @@ if response.my_field is None: The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g., ```py -from phoebe_minus_bird import Phoebe +from phoebe_bird import Phoebe client = Phoebe() response = client.ref.hotspot.info.with_raw_response.retrieve( @@ -215,9 +215,9 @@ info = response.parse() # get the object that `ref.hotspot.info.retrieve()` wou print(info.country_code) ``` -These methods return an [`APIResponse`](https://github.com/phoebe-bird/phoebe-python/tree/main/src/phoebe_minus_bird/_response.py) object. +These methods return an [`APIResponse`](https://github.com/phoebe-bird/phoebe-python/tree/main/src/phoebe_bird/_response.py) object. -The async client returns an [`AsyncAPIResponse`](https://github.com/phoebe-bird/phoebe-python/tree/main/src/phoebe_minus_bird/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. +The async client returns an [`AsyncAPIResponse`](https://github.com/phoebe-bird/phoebe-python/tree/main/src/phoebe_bird/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. #### `.with_streaming_response` @@ -281,7 +281,7 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c - Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality ```python -from phoebe_minus_bird import Phoebe, DefaultHttpxClient +from phoebe_bird import Phoebe, DefaultHttpxClient client = Phoebe( # Or use the `PHOEBE_BASE_URL` env var diff --git a/api.md b/api.md index 19d95a4..e8141a3 100644 --- a/api.md +++ b/api.md @@ -5,7 +5,7 @@ Types: ```python -from phoebe_minus_bird.types.data import Observation +from phoebe_bird.types.data import Observation ``` ### Recent @@ -13,48 +13,48 @@ from phoebe_minus_bird.types.data import Observation Types: ```python -from phoebe_minus_bird.types.data.observations import RecentListResponse +from phoebe_bird.types.data.observations import RecentListResponse ``` Methods: -- client.data.observations.recent.list(region_code, \*\*params) -> RecentListResponse +- client.data.observations.recent.list(region_code, \*\*params) -> RecentListResponse #### Notable Types: ```python -from phoebe_minus_bird.types.data.observations.recent import NotableListResponse +from phoebe_bird.types.data.observations.recent import NotableListResponse ``` Methods: -- client.data.observations.recent.notable.list(region_code, \*\*params) -> NotableListResponse +- client.data.observations.recent.notable.list(region_code, \*\*params) -> NotableListResponse #### Species Types: ```python -from phoebe_minus_bird.types.data.observations.recent import SpecieRetrieveResponse +from phoebe_bird.types.data.observations.recent import SpecieRetrieveResponse ``` Methods: -- client.data.observations.recent.species.retrieve(species_code, \*, region_code, \*\*params) -> SpecieRetrieveResponse +- client.data.observations.recent.species.retrieve(species_code, \*, region_code, \*\*params) -> SpecieRetrieveResponse #### Historic Types: ```python -from phoebe_minus_bird.types.data.observations.recent import HistoricListResponse +from phoebe_bird.types.data.observations.recent import HistoricListResponse ``` Methods: -- client.data.observations.recent.historic.list(d, \*, region_code, y, m, \*\*params) -> HistoricListResponse +- client.data.observations.recent.historic.list(d, \*, region_code, y, m, \*\*params) -> HistoricListResponse ### Geo @@ -63,36 +63,36 @@ Methods: Types: ```python -from phoebe_minus_bird.types.data.observations.geo import RecentListResponse +from phoebe_bird.types.data.observations.geo import RecentListResponse ``` Methods: -- client.data.observations.geo.recent.list(\*\*params) -> RecentListResponse +- client.data.observations.geo.recent.list(\*\*params) -> RecentListResponse ##### Species Types: ```python -from phoebe_minus_bird.types.data.observations.geo.recent import SpecieListResponse +from phoebe_bird.types.data.observations.geo.recent import SpecieListResponse ``` Methods: -- client.data.observations.geo.recent.species.list(species_code, \*\*params) -> SpecieListResponse +- client.data.observations.geo.recent.species.list(species_code, \*\*params) -> SpecieListResponse ##### Notable Types: ```python -from phoebe_minus_bird.types.data.observations.geo.recent import NotableListResponse +from phoebe_bird.types.data.observations.geo.recent import NotableListResponse ``` Methods: -- client.data.observations.geo.recent.notable.list(\*\*params) -> NotableListResponse +- client.data.observations.geo.recent.notable.list(\*\*params) -> NotableListResponse ### Nearest @@ -101,12 +101,12 @@ Methods: Types: ```python -from phoebe_minus_bird.types.data.observations.nearest import GeoSpecieListResponse +from phoebe_bird.types.data.observations.nearest import GeoSpecieListResponse ``` Methods: -- client.data.observations.nearest.geo_species.list(species_code, \*\*params) -> GeoSpecieListResponse +- client.data.observations.nearest.geo_species.list(species_code, \*\*params) -> GeoSpecieListResponse # Product @@ -115,72 +115,72 @@ Methods: Types: ```python -from phoebe_minus_bird.types.product import ListRetrieveResponse +from phoebe_bird.types.product import ListRetrieveResponse ``` Methods: -- client.product.lists.retrieve(region_code, \*\*params) -> ListRetrieveResponse +- client.product.lists.retrieve(region_code, \*\*params) -> ListRetrieveResponse ### Historical Types: ```python -from phoebe_minus_bird.types.product.lists import HistoricalRetrieveResponse +from phoebe_bird.types.product.lists import HistoricalRetrieveResponse ``` Methods: -- client.product.lists.historical.retrieve(d, \*, region_code, y, m, \*\*params) -> HistoricalRetrieveResponse +- client.product.lists.historical.retrieve(d, \*, region_code, y, m, \*\*params) -> HistoricalRetrieveResponse ## Top100 Types: ```python -from phoebe_minus_bird.types.product import Top100RetrieveResponse +from phoebe_bird.types.product import Top100RetrieveResponse ``` Methods: -- client.product.top100.retrieve(d, \*, region_code, y, m, \*\*params) -> Top100RetrieveResponse +- client.product.top100.retrieve(d, \*, region_code, y, m, \*\*params) -> Top100RetrieveResponse ## Stats Types: ```python -from phoebe_minus_bird.types.product import StatRetrieveResponse +from phoebe_bird.types.product import StatRetrieveResponse ``` Methods: -- client.product.stats.retrieve(d, \*, region_code, y, m) -> StatRetrieveResponse +- client.product.stats.retrieve(d, \*, region_code, y, m) -> StatRetrieveResponse ## SpeciesList Types: ```python -from phoebe_minus_bird.types.product import SpeciesListListResponse +from phoebe_bird.types.product import SpeciesListListResponse ``` Methods: -- client.product.species_list.list(region_code) -> SpeciesListListResponse +- client.product.species_list.list(region_code) -> SpeciesListListResponse ## Checklist Types: ```python -from phoebe_minus_bird.types.product import ChecklistViewResponse +from phoebe_bird.types.product import ChecklistViewResponse ``` Methods: -- client.product.checklist.view(sub_id) -> ChecklistViewResponse +- client.product.checklist.view(sub_id) -> ChecklistViewResponse # Ref @@ -191,72 +191,72 @@ Methods: Types: ```python -from phoebe_minus_bird.types.ref.region import AdjacentListResponse +from phoebe_bird.types.ref.region import AdjacentListResponse ``` Methods: -- client.ref.region.adjacent.list(region_code) -> AdjacentListResponse +- client.ref.region.adjacent.list(region_code) -> AdjacentListResponse ### Info Types: ```python -from phoebe_minus_bird.types.ref.region import InfoRetrieveResponse +from phoebe_bird.types.ref.region import InfoRetrieveResponse ``` Methods: -- client.ref.region.info.retrieve(region_code, \*\*params) -> InfoRetrieveResponse +- client.ref.region.info.retrieve(region_code, \*\*params) -> InfoRetrieveResponse ### List Types: ```python -from phoebe_minus_bird.types.ref.region import ListListResponse +from phoebe_bird.types.ref.region import ListListResponse ``` Methods: -- client.ref.region.list.list(parent_region_code, \*, region_type, \*\*params) -> ListListResponse +- client.ref.region.list.list(parent_region_code, \*, region_type, \*\*params) -> ListListResponse ## Hotspot Types: ```python -from phoebe_minus_bird.types.ref import HotspotListResponse +from phoebe_bird.types.ref import HotspotListResponse ``` Methods: -- client.ref.hotspot.list(region_code, \*\*params) -> HotspotListResponse +- client.ref.hotspot.list(region_code, \*\*params) -> HotspotListResponse ### Geo Types: ```python -from phoebe_minus_bird.types.ref.hotspot import GeoRetrieveResponse +from phoebe_bird.types.ref.hotspot import GeoRetrieveResponse ``` Methods: -- client.ref.hotspot.geo.retrieve(\*\*params) -> GeoRetrieveResponse +- client.ref.hotspot.geo.retrieve(\*\*params) -> GeoRetrieveResponse ### Info Types: ```python -from phoebe_minus_bird.types.ref.hotspot import InfoRetrieveResponse +from phoebe_bird.types.ref.hotspot import InfoRetrieveResponse ``` Methods: -- client.ref.hotspot.info.retrieve(loc_id) -> InfoRetrieveResponse +- client.ref.hotspot.info.retrieve(loc_id) -> InfoRetrieveResponse ## Taxonomy @@ -265,57 +265,57 @@ Methods: Types: ```python -from phoebe_minus_bird.types.ref.taxonomy import EbirdRetrieveResponse +from phoebe_bird.types.ref.taxonomy import EbirdRetrieveResponse ``` Methods: -- client.ref.taxonomy.ebird.retrieve(\*\*params) -> EbirdRetrieveResponse +- client.ref.taxonomy.ebird.retrieve(\*\*params) -> EbirdRetrieveResponse ### Forms Types: ```python -from phoebe_minus_bird.types.ref.taxonomy import FormListResponse +from phoebe_bird.types.ref.taxonomy import FormListResponse ``` Methods: -- client.ref.taxonomy.forms.list(species_code) -> FormListResponse +- client.ref.taxonomy.forms.list(species_code) -> FormListResponse ### Locales Types: ```python -from phoebe_minus_bird.types.ref.taxonomy import LocaleListResponse +from phoebe_bird.types.ref.taxonomy import LocaleListResponse ``` Methods: -- client.ref.taxonomy.locales.list() -> LocaleListResponse +- client.ref.taxonomy.locales.list() -> LocaleListResponse ### Versions Types: ```python -from phoebe_minus_bird.types.ref.taxonomy import VersionListResponse +from phoebe_bird.types.ref.taxonomy import VersionListResponse ``` Methods: -- client.ref.taxonomy.versions.list() -> VersionListResponse +- client.ref.taxonomy.versions.list() -> VersionListResponse ### SpeciesGroups Types: ```python -from phoebe_minus_bird.types.ref.taxonomy import SpeciesGroupListResponse +from phoebe_bird.types.ref.taxonomy import SpeciesGroupListResponse ``` Methods: -- client.ref.taxonomy.species_groups.list(species_grouping, \*\*params) -> SpeciesGroupListResponse +- client.ref.taxonomy.species_groups.list(species_grouping, \*\*params) -> SpeciesGroupListResponse diff --git a/mypy.ini b/mypy.ini index 86a97fa..9d38866 100644 --- a/mypy.ini +++ b/mypy.ini @@ -5,7 +5,7 @@ show_error_codes = True # Exclude _files.py because mypy isn't smart enough to apply # the correct type narrowing and as this is an internal module # it's fine to just use Pyright. -exclude = ^(src/phoebe_minus_bird/_files\.py|_dev/.*\.py)$ +exclude = ^(src/phoebe_bird/_files\.py|_dev/.*\.py)$ strict_equality = True implicit_reexport = True diff --git a/pyproject.toml b/pyproject.toml index 4a5fe32..4b8efe3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "phoebe-bird" +name = "phoebe_bird" version = "0.0.1-alpha.0" description = "The official Python library for the phoebe API" dynamic = ["readme"] @@ -85,7 +85,7 @@ typecheck = { chain = [ "typecheck:mypy" ]} "typecheck:pyright" = "pyright" -"typecheck:verify-types" = "pyright --verifytypes phoebe_minus_bird --ignoreexternal" +"typecheck:verify-types" = "pyright --verifytypes phoebe_bird --ignoreexternal" "typecheck:mypy" = "mypy ." [build-system] @@ -98,7 +98,7 @@ include = [ ] [tool.hatch.build.targets.wheel] -packages = ["src/phoebe_minus_bird"] +packages = ["src/phoebe_bird"] [tool.hatch.build.targets.sdist] # Basically everything except hidden files/directories (such as .github, .devcontainers, .python-version, etc) @@ -203,7 +203,7 @@ length-sort = true length-sort-straight = true combine-as-imports = true extra-standard-library = ["typing_extensions"] -known-first-party = ["phoebe_minus_bird", "tests"] +known-first-party = ["phoebe_bird", "tests"] [tool.ruff.per-file-ignores] "bin/**.py" = ["T201", "T203"] diff --git a/release-please-config.json b/release-please-config.json index a296044..521cb7c 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -61,6 +61,6 @@ ], "release-type": "python", "extra-files": [ - "src/phoebe_minus_bird/_version.py" + "src/phoebe_bird/_version.py" ] } \ No newline at end of file diff --git a/scripts/lint b/scripts/lint index 5532ab8..3cdaf4c 100755 --- a/scripts/lint +++ b/scripts/lint @@ -8,5 +8,5 @@ echo "==> Running lints" rye run lint echo "==> Making sure it imports" -rye run python -c 'import phoebe_minus_bird' +rye run python -c 'import phoebe_bird' diff --git a/src/phoebe_minus_bird/__init__.py b/src/phoebe_bird/__init__.py similarity index 94% rename from src/phoebe_minus_bird/__init__.py rename to src/phoebe_bird/__init__.py index 71071e4..5b0e9e6 100644 --- a/src/phoebe_minus_bird/__init__.py +++ b/src/phoebe_bird/__init__.py @@ -72,12 +72,12 @@ # Update the __module__ attribute for exported symbols so that # error messages point to this module instead of the module # it was originally defined in, e.g. -# phoebe_minus_bird._exceptions.NotFoundError -> phoebe_minus_bird.NotFoundError +# phoebe_bird._exceptions.NotFoundError -> phoebe_bird.NotFoundError __locals = locals() for __name in __all__: if not __name.startswith("__"): try: - __locals[__name].__module__ = "phoebe_minus_bird" + __locals[__name].__module__ = "phoebe_bird" except (TypeError, AttributeError): # Some of our exported symbols are builtins which we can't set attributes for. pass diff --git a/src/phoebe_minus_bird/_base_client.py b/src/phoebe_bird/_base_client.py similarity index 99% rename from src/phoebe_minus_bird/_base_client.py rename to src/phoebe_bird/_base_client.py index ee866b3..3807b88 100644 --- a/src/phoebe_minus_bird/_base_client.py +++ b/src/phoebe_bird/_base_client.py @@ -363,7 +363,7 @@ def __init__( if max_retries is None: # pyright: ignore[reportUnnecessaryComparison] raise TypeError( - "max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `phoebe-bird.DEFAULT_MAX_RETRIES`" + "max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `phoebe_bird.DEFAULT_MAX_RETRIES`" ) def _enforce_trailing_slash(self, url: URL) -> URL: diff --git a/src/phoebe_minus_bird/_client.py b/src/phoebe_bird/_client.py similarity index 100% rename from src/phoebe_minus_bird/_client.py rename to src/phoebe_bird/_client.py diff --git a/src/phoebe_minus_bird/_compat.py b/src/phoebe_bird/_compat.py similarity index 100% rename from src/phoebe_minus_bird/_compat.py rename to src/phoebe_bird/_compat.py diff --git a/src/phoebe_minus_bird/_constants.py b/src/phoebe_bird/_constants.py similarity index 100% rename from src/phoebe_minus_bird/_constants.py rename to src/phoebe_bird/_constants.py diff --git a/src/phoebe_minus_bird/_exceptions.py b/src/phoebe_bird/_exceptions.py similarity index 100% rename from src/phoebe_minus_bird/_exceptions.py rename to src/phoebe_bird/_exceptions.py diff --git a/src/phoebe_minus_bird/_files.py b/src/phoebe_bird/_files.py similarity index 100% rename from src/phoebe_minus_bird/_files.py rename to src/phoebe_bird/_files.py diff --git a/src/phoebe_minus_bird/_models.py b/src/phoebe_bird/_models.py similarity index 100% rename from src/phoebe_minus_bird/_models.py rename to src/phoebe_bird/_models.py diff --git a/src/phoebe_minus_bird/_qs.py b/src/phoebe_bird/_qs.py similarity index 100% rename from src/phoebe_minus_bird/_qs.py rename to src/phoebe_bird/_qs.py diff --git a/src/phoebe_minus_bird/_resource.py b/src/phoebe_bird/_resource.py similarity index 100% rename from src/phoebe_minus_bird/_resource.py rename to src/phoebe_bird/_resource.py diff --git a/src/phoebe_minus_bird/_response.py b/src/phoebe_bird/_response.py similarity index 99% rename from src/phoebe_minus_bird/_response.py rename to src/phoebe_bird/_response.py index 44d1f3b..2f188a1 100644 --- a/src/phoebe_minus_bird/_response.py +++ b/src/phoebe_bird/_response.py @@ -204,7 +204,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T: if inspect.isclass(origin) and not issubclass(origin, BaseModel) and issubclass(origin, pydantic.BaseModel): raise TypeError( - "Pydantic models must subclass our base model type, e.g. `from phoebe_minus_bird import BaseModel`" + "Pydantic models must subclass our base model type, e.g. `from phoebe_bird import BaseModel`" ) if ( @@ -273,7 +273,7 @@ def parse(self, *, to: type[_T] | None = None) -> R | _T: the `to` argument, e.g. ```py - from phoebe_minus_bird import BaseModel + from phoebe_bird import BaseModel class MyModel(BaseModel): @@ -377,7 +377,7 @@ async def parse(self, *, to: type[_T] | None = None) -> R | _T: the `to` argument, e.g. ```py - from phoebe_minus_bird import BaseModel + from phoebe_bird import BaseModel class MyModel(BaseModel): @@ -548,7 +548,7 @@ async def stream_to_file( class MissingStreamClassError(TypeError): def __init__(self) -> None: super().__init__( - "The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `phoebe_minus_bird._streaming` for reference", + "The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `phoebe_bird._streaming` for reference", ) diff --git a/src/phoebe_minus_bird/_streaming.py b/src/phoebe_bird/_streaming.py similarity index 100% rename from src/phoebe_minus_bird/_streaming.py rename to src/phoebe_bird/_streaming.py diff --git a/src/phoebe_minus_bird/_types.py b/src/phoebe_bird/_types.py similarity index 99% rename from src/phoebe_minus_bird/_types.py rename to src/phoebe_bird/_types.py index c5add3e..5caa23f 100644 --- a/src/phoebe_minus_bird/_types.py +++ b/src/phoebe_bird/_types.py @@ -81,7 +81,7 @@ # This unfortunately means that you will either have # to import this type and pass it explicitly: # -# from phoebe_minus_bird import NoneType +# from phoebe_bird import NoneType # client.get('/foo', cast_to=NoneType) # # or build it yourself: diff --git a/src/phoebe_minus_bird/_utils/__init__.py b/src/phoebe_bird/_utils/__init__.py similarity index 100% rename from src/phoebe_minus_bird/_utils/__init__.py rename to src/phoebe_bird/_utils/__init__.py diff --git a/src/phoebe_minus_bird/_utils/_logs.py b/src/phoebe_bird/_utils/_logs.py similarity index 74% rename from src/phoebe_minus_bird/_utils/_logs.py rename to src/phoebe_bird/_utils/_logs.py index c51fb75..33867d8 100644 --- a/src/phoebe_minus_bird/_utils/_logs.py +++ b/src/phoebe_bird/_utils/_logs.py @@ -1,12 +1,12 @@ import os import logging -logger: logging.Logger = logging.getLogger("phoebe_minus_bird") +logger: logging.Logger = logging.getLogger("phoebe_bird") httpx_logger: logging.Logger = logging.getLogger("httpx") def _basic_config() -> None: - # e.g. [2023-10-05 14:12:26 - phoebe_minus_bird._base_client:818 - DEBUG] HTTP Request: POST http://127.0.0.1:4010/foo/bar "200 OK" + # e.g. [2023-10-05 14:12:26 - phoebe_bird._base_client:818 - DEBUG] HTTP Request: POST http://127.0.0.1:4010/foo/bar "200 OK" logging.basicConfig( format="[%(asctime)s - %(name)s:%(lineno)d - %(levelname)s] %(message)s", datefmt="%Y-%m-%d %H:%M:%S", diff --git a/src/phoebe_minus_bird/_utils/_proxy.py b/src/phoebe_bird/_utils/_proxy.py similarity index 100% rename from src/phoebe_minus_bird/_utils/_proxy.py rename to src/phoebe_bird/_utils/_proxy.py diff --git a/src/phoebe_minus_bird/_utils/_reflection.py b/src/phoebe_bird/_utils/_reflection.py similarity index 100% rename from src/phoebe_minus_bird/_utils/_reflection.py rename to src/phoebe_bird/_utils/_reflection.py diff --git a/src/phoebe_minus_bird/_utils/_streams.py b/src/phoebe_bird/_utils/_streams.py similarity index 100% rename from src/phoebe_minus_bird/_utils/_streams.py rename to src/phoebe_bird/_utils/_streams.py diff --git a/src/phoebe_minus_bird/_utils/_sync.py b/src/phoebe_bird/_utils/_sync.py similarity index 100% rename from src/phoebe_minus_bird/_utils/_sync.py rename to src/phoebe_bird/_utils/_sync.py diff --git a/src/phoebe_minus_bird/_utils/_transform.py b/src/phoebe_bird/_utils/_transform.py similarity index 100% rename from src/phoebe_minus_bird/_utils/_transform.py rename to src/phoebe_bird/_utils/_transform.py diff --git a/src/phoebe_minus_bird/_utils/_typing.py b/src/phoebe_bird/_utils/_typing.py similarity index 100% rename from src/phoebe_minus_bird/_utils/_typing.py rename to src/phoebe_bird/_utils/_typing.py diff --git a/src/phoebe_minus_bird/_utils/_utils.py b/src/phoebe_bird/_utils/_utils.py similarity index 100% rename from src/phoebe_minus_bird/_utils/_utils.py rename to src/phoebe_bird/_utils/_utils.py diff --git a/src/phoebe_minus_bird/_version.py b/src/phoebe_bird/_version.py similarity index 81% rename from src/phoebe_minus_bird/_version.py rename to src/phoebe_bird/_version.py index 439410c..6f22b2f 100644 --- a/src/phoebe_minus_bird/_version.py +++ b/src/phoebe_bird/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -__title__ = "phoebe_minus_bird" +__title__ = "phoebe_bird" __version__ = "0.0.1-alpha.0" # x-release-please-version diff --git a/src/phoebe_bird/lib/.keep b/src/phoebe_bird/lib/.keep new file mode 100644 index 0000000..5e2c99f --- /dev/null +++ b/src/phoebe_bird/lib/.keep @@ -0,0 +1,4 @@ +File generated from our OpenAPI spec by Stainless. + +This directory can be used to store custom files to expand the SDK. +It is ignored by Stainless code generation and its content (other than this keep file) won't be touched. \ No newline at end of file diff --git a/src/phoebe_minus_bird/py.typed b/src/phoebe_bird/py.typed similarity index 100% rename from src/phoebe_minus_bird/py.typed rename to src/phoebe_bird/py.typed diff --git a/src/phoebe_minus_bird/resources/__init__.py b/src/phoebe_bird/resources/__init__.py similarity index 100% rename from src/phoebe_minus_bird/resources/__init__.py rename to src/phoebe_bird/resources/__init__.py diff --git a/src/phoebe_minus_bird/resources/data/__init__.py b/src/phoebe_bird/resources/data/__init__.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/__init__.py rename to src/phoebe_bird/resources/data/__init__.py diff --git a/src/phoebe_minus_bird/resources/data/data.py b/src/phoebe_bird/resources/data/data.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/data.py rename to src/phoebe_bird/resources/data/data.py diff --git a/src/phoebe_minus_bird/resources/data/observations/__init__.py b/src/phoebe_bird/resources/data/observations/__init__.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/__init__.py rename to src/phoebe_bird/resources/data/observations/__init__.py diff --git a/src/phoebe_minus_bird/resources/data/observations/geo/__init__.py b/src/phoebe_bird/resources/data/observations/geo/__init__.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/geo/__init__.py rename to src/phoebe_bird/resources/data/observations/geo/__init__.py diff --git a/src/phoebe_minus_bird/resources/data/observations/geo/geo.py b/src/phoebe_bird/resources/data/observations/geo/geo.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/geo/geo.py rename to src/phoebe_bird/resources/data/observations/geo/geo.py diff --git a/src/phoebe_minus_bird/resources/data/observations/geo/recent/__init__.py b/src/phoebe_bird/resources/data/observations/geo/recent/__init__.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/geo/recent/__init__.py rename to src/phoebe_bird/resources/data/observations/geo/recent/__init__.py diff --git a/src/phoebe_minus_bird/resources/data/observations/geo/recent/notable.py b/src/phoebe_bird/resources/data/observations/geo/recent/notable.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/geo/recent/notable.py rename to src/phoebe_bird/resources/data/observations/geo/recent/notable.py diff --git a/src/phoebe_minus_bird/resources/data/observations/geo/recent/recent.py b/src/phoebe_bird/resources/data/observations/geo/recent/recent.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/geo/recent/recent.py rename to src/phoebe_bird/resources/data/observations/geo/recent/recent.py diff --git a/src/phoebe_minus_bird/resources/data/observations/geo/recent/species.py b/src/phoebe_bird/resources/data/observations/geo/recent/species.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/geo/recent/species.py rename to src/phoebe_bird/resources/data/observations/geo/recent/species.py diff --git a/src/phoebe_minus_bird/resources/data/observations/nearest/__init__.py b/src/phoebe_bird/resources/data/observations/nearest/__init__.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/nearest/__init__.py rename to src/phoebe_bird/resources/data/observations/nearest/__init__.py diff --git a/src/phoebe_minus_bird/resources/data/observations/nearest/geo_species.py b/src/phoebe_bird/resources/data/observations/nearest/geo_species.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/nearest/geo_species.py rename to src/phoebe_bird/resources/data/observations/nearest/geo_species.py diff --git a/src/phoebe_minus_bird/resources/data/observations/nearest/nearest.py b/src/phoebe_bird/resources/data/observations/nearest/nearest.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/nearest/nearest.py rename to src/phoebe_bird/resources/data/observations/nearest/nearest.py diff --git a/src/phoebe_minus_bird/resources/data/observations/observations.py b/src/phoebe_bird/resources/data/observations/observations.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/observations.py rename to src/phoebe_bird/resources/data/observations/observations.py diff --git a/src/phoebe_minus_bird/resources/data/observations/recent/__init__.py b/src/phoebe_bird/resources/data/observations/recent/__init__.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/recent/__init__.py rename to src/phoebe_bird/resources/data/observations/recent/__init__.py diff --git a/src/phoebe_minus_bird/resources/data/observations/recent/historic.py b/src/phoebe_bird/resources/data/observations/recent/historic.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/recent/historic.py rename to src/phoebe_bird/resources/data/observations/recent/historic.py diff --git a/src/phoebe_minus_bird/resources/data/observations/recent/notable.py b/src/phoebe_bird/resources/data/observations/recent/notable.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/recent/notable.py rename to src/phoebe_bird/resources/data/observations/recent/notable.py diff --git a/src/phoebe_minus_bird/resources/data/observations/recent/recent.py b/src/phoebe_bird/resources/data/observations/recent/recent.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/recent/recent.py rename to src/phoebe_bird/resources/data/observations/recent/recent.py diff --git a/src/phoebe_minus_bird/resources/data/observations/recent/species.py b/src/phoebe_bird/resources/data/observations/recent/species.py similarity index 100% rename from src/phoebe_minus_bird/resources/data/observations/recent/species.py rename to src/phoebe_bird/resources/data/observations/recent/species.py diff --git a/src/phoebe_minus_bird/resources/product/__init__.py b/src/phoebe_bird/resources/product/__init__.py similarity index 100% rename from src/phoebe_minus_bird/resources/product/__init__.py rename to src/phoebe_bird/resources/product/__init__.py diff --git a/src/phoebe_minus_bird/resources/product/checklist.py b/src/phoebe_bird/resources/product/checklist.py similarity index 100% rename from src/phoebe_minus_bird/resources/product/checklist.py rename to src/phoebe_bird/resources/product/checklist.py diff --git a/src/phoebe_minus_bird/resources/product/lists/__init__.py b/src/phoebe_bird/resources/product/lists/__init__.py similarity index 100% rename from src/phoebe_minus_bird/resources/product/lists/__init__.py rename to src/phoebe_bird/resources/product/lists/__init__.py diff --git a/src/phoebe_minus_bird/resources/product/lists/historical.py b/src/phoebe_bird/resources/product/lists/historical.py similarity index 100% rename from src/phoebe_minus_bird/resources/product/lists/historical.py rename to src/phoebe_bird/resources/product/lists/historical.py diff --git a/src/phoebe_minus_bird/resources/product/lists/lists.py b/src/phoebe_bird/resources/product/lists/lists.py similarity index 100% rename from src/phoebe_minus_bird/resources/product/lists/lists.py rename to src/phoebe_bird/resources/product/lists/lists.py diff --git a/src/phoebe_minus_bird/resources/product/product.py b/src/phoebe_bird/resources/product/product.py similarity index 100% rename from src/phoebe_minus_bird/resources/product/product.py rename to src/phoebe_bird/resources/product/product.py diff --git a/src/phoebe_minus_bird/resources/product/species_list.py b/src/phoebe_bird/resources/product/species_list.py similarity index 100% rename from src/phoebe_minus_bird/resources/product/species_list.py rename to src/phoebe_bird/resources/product/species_list.py diff --git a/src/phoebe_minus_bird/resources/product/stats.py b/src/phoebe_bird/resources/product/stats.py similarity index 100% rename from src/phoebe_minus_bird/resources/product/stats.py rename to src/phoebe_bird/resources/product/stats.py diff --git a/src/phoebe_minus_bird/resources/product/top100.py b/src/phoebe_bird/resources/product/top100.py similarity index 100% rename from src/phoebe_minus_bird/resources/product/top100.py rename to src/phoebe_bird/resources/product/top100.py diff --git a/src/phoebe_minus_bird/resources/ref/__init__.py b/src/phoebe_bird/resources/ref/__init__.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/__init__.py rename to src/phoebe_bird/resources/ref/__init__.py diff --git a/src/phoebe_minus_bird/resources/ref/hotspot/__init__.py b/src/phoebe_bird/resources/ref/hotspot/__init__.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/hotspot/__init__.py rename to src/phoebe_bird/resources/ref/hotspot/__init__.py diff --git a/src/phoebe_minus_bird/resources/ref/hotspot/geo.py b/src/phoebe_bird/resources/ref/hotspot/geo.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/hotspot/geo.py rename to src/phoebe_bird/resources/ref/hotspot/geo.py diff --git a/src/phoebe_minus_bird/resources/ref/hotspot/hotspot.py b/src/phoebe_bird/resources/ref/hotspot/hotspot.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/hotspot/hotspot.py rename to src/phoebe_bird/resources/ref/hotspot/hotspot.py diff --git a/src/phoebe_minus_bird/resources/ref/hotspot/info.py b/src/phoebe_bird/resources/ref/hotspot/info.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/hotspot/info.py rename to src/phoebe_bird/resources/ref/hotspot/info.py diff --git a/src/phoebe_minus_bird/resources/ref/ref.py b/src/phoebe_bird/resources/ref/ref.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/ref.py rename to src/phoebe_bird/resources/ref/ref.py diff --git a/src/phoebe_minus_bird/resources/ref/region/__init__.py b/src/phoebe_bird/resources/ref/region/__init__.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/region/__init__.py rename to src/phoebe_bird/resources/ref/region/__init__.py diff --git a/src/phoebe_minus_bird/resources/ref/region/adjacent.py b/src/phoebe_bird/resources/ref/region/adjacent.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/region/adjacent.py rename to src/phoebe_bird/resources/ref/region/adjacent.py diff --git a/src/phoebe_minus_bird/resources/ref/region/info.py b/src/phoebe_bird/resources/ref/region/info.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/region/info.py rename to src/phoebe_bird/resources/ref/region/info.py diff --git a/src/phoebe_minus_bird/resources/ref/region/list.py b/src/phoebe_bird/resources/ref/region/list.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/region/list.py rename to src/phoebe_bird/resources/ref/region/list.py diff --git a/src/phoebe_minus_bird/resources/ref/region/region.py b/src/phoebe_bird/resources/ref/region/region.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/region/region.py rename to src/phoebe_bird/resources/ref/region/region.py diff --git a/src/phoebe_minus_bird/resources/ref/taxonomy/__init__.py b/src/phoebe_bird/resources/ref/taxonomy/__init__.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/taxonomy/__init__.py rename to src/phoebe_bird/resources/ref/taxonomy/__init__.py diff --git a/src/phoebe_minus_bird/resources/ref/taxonomy/ebird.py b/src/phoebe_bird/resources/ref/taxonomy/ebird.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/taxonomy/ebird.py rename to src/phoebe_bird/resources/ref/taxonomy/ebird.py diff --git a/src/phoebe_minus_bird/resources/ref/taxonomy/forms.py b/src/phoebe_bird/resources/ref/taxonomy/forms.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/taxonomy/forms.py rename to src/phoebe_bird/resources/ref/taxonomy/forms.py diff --git a/src/phoebe_minus_bird/resources/ref/taxonomy/locales.py b/src/phoebe_bird/resources/ref/taxonomy/locales.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/taxonomy/locales.py rename to src/phoebe_bird/resources/ref/taxonomy/locales.py diff --git a/src/phoebe_minus_bird/resources/ref/taxonomy/species_groups.py b/src/phoebe_bird/resources/ref/taxonomy/species_groups.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/taxonomy/species_groups.py rename to src/phoebe_bird/resources/ref/taxonomy/species_groups.py diff --git a/src/phoebe_minus_bird/resources/ref/taxonomy/taxonomy.py b/src/phoebe_bird/resources/ref/taxonomy/taxonomy.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/taxonomy/taxonomy.py rename to src/phoebe_bird/resources/ref/taxonomy/taxonomy.py diff --git a/src/phoebe_minus_bird/resources/ref/taxonomy/versions.py b/src/phoebe_bird/resources/ref/taxonomy/versions.py similarity index 100% rename from src/phoebe_minus_bird/resources/ref/taxonomy/versions.py rename to src/phoebe_bird/resources/ref/taxonomy/versions.py diff --git a/src/phoebe_minus_bird/types/__init__.py b/src/phoebe_bird/types/__init__.py similarity index 100% rename from src/phoebe_minus_bird/types/__init__.py rename to src/phoebe_bird/types/__init__.py diff --git a/src/phoebe_minus_bird/types/data/__init__.py b/src/phoebe_bird/types/data/__init__.py similarity index 100% rename from src/phoebe_minus_bird/types/data/__init__.py rename to src/phoebe_bird/types/data/__init__.py diff --git a/src/phoebe_minus_bird/types/data/observation.py b/src/phoebe_bird/types/data/observation.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observation.py rename to src/phoebe_bird/types/data/observation.py diff --git a/src/phoebe_minus_bird/types/data/observations/__init__.py b/src/phoebe_bird/types/data/observations/__init__.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/__init__.py rename to src/phoebe_bird/types/data/observations/__init__.py diff --git a/src/phoebe_minus_bird/types/data/observations/geo/__init__.py b/src/phoebe_bird/types/data/observations/geo/__init__.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/geo/__init__.py rename to src/phoebe_bird/types/data/observations/geo/__init__.py diff --git a/src/phoebe_minus_bird/types/data/observations/geo/recent/__init__.py b/src/phoebe_bird/types/data/observations/geo/recent/__init__.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/geo/recent/__init__.py rename to src/phoebe_bird/types/data/observations/geo/recent/__init__.py diff --git a/src/phoebe_minus_bird/types/data/observations/geo/recent/notable_list_params.py b/src/phoebe_bird/types/data/observations/geo/recent/notable_list_params.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/geo/recent/notable_list_params.py rename to src/phoebe_bird/types/data/observations/geo/recent/notable_list_params.py diff --git a/src/phoebe_minus_bird/types/data/observations/geo/recent/notable_list_response.py b/src/phoebe_bird/types/data/observations/geo/recent/notable_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/geo/recent/notable_list_response.py rename to src/phoebe_bird/types/data/observations/geo/recent/notable_list_response.py diff --git a/src/phoebe_minus_bird/types/data/observations/geo/recent/specie_list_params.py b/src/phoebe_bird/types/data/observations/geo/recent/specie_list_params.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/geo/recent/specie_list_params.py rename to src/phoebe_bird/types/data/observations/geo/recent/specie_list_params.py diff --git a/src/phoebe_minus_bird/types/data/observations/geo/recent/specie_list_response.py b/src/phoebe_bird/types/data/observations/geo/recent/specie_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/geo/recent/specie_list_response.py rename to src/phoebe_bird/types/data/observations/geo/recent/specie_list_response.py diff --git a/src/phoebe_minus_bird/types/data/observations/geo/recent_list_params.py b/src/phoebe_bird/types/data/observations/geo/recent_list_params.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/geo/recent_list_params.py rename to src/phoebe_bird/types/data/observations/geo/recent_list_params.py diff --git a/src/phoebe_minus_bird/types/data/observations/geo/recent_list_response.py b/src/phoebe_bird/types/data/observations/geo/recent_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/geo/recent_list_response.py rename to src/phoebe_bird/types/data/observations/geo/recent_list_response.py diff --git a/src/phoebe_minus_bird/types/data/observations/nearest/__init__.py b/src/phoebe_bird/types/data/observations/nearest/__init__.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/nearest/__init__.py rename to src/phoebe_bird/types/data/observations/nearest/__init__.py diff --git a/src/phoebe_minus_bird/types/data/observations/nearest/geo_specie_list_params.py b/src/phoebe_bird/types/data/observations/nearest/geo_specie_list_params.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/nearest/geo_specie_list_params.py rename to src/phoebe_bird/types/data/observations/nearest/geo_specie_list_params.py diff --git a/src/phoebe_minus_bird/types/data/observations/nearest/geo_specie_list_response.py b/src/phoebe_bird/types/data/observations/nearest/geo_specie_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/nearest/geo_specie_list_response.py rename to src/phoebe_bird/types/data/observations/nearest/geo_specie_list_response.py diff --git a/src/phoebe_minus_bird/types/data/observations/recent/__init__.py b/src/phoebe_bird/types/data/observations/recent/__init__.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/recent/__init__.py rename to src/phoebe_bird/types/data/observations/recent/__init__.py diff --git a/src/phoebe_minus_bird/types/data/observations/recent/historic_list_params.py b/src/phoebe_bird/types/data/observations/recent/historic_list_params.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/recent/historic_list_params.py rename to src/phoebe_bird/types/data/observations/recent/historic_list_params.py diff --git a/src/phoebe_minus_bird/types/data/observations/recent/historic_list_response.py b/src/phoebe_bird/types/data/observations/recent/historic_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/recent/historic_list_response.py rename to src/phoebe_bird/types/data/observations/recent/historic_list_response.py diff --git a/src/phoebe_minus_bird/types/data/observations/recent/notable_list_params.py b/src/phoebe_bird/types/data/observations/recent/notable_list_params.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/recent/notable_list_params.py rename to src/phoebe_bird/types/data/observations/recent/notable_list_params.py diff --git a/src/phoebe_minus_bird/types/data/observations/recent/notable_list_response.py b/src/phoebe_bird/types/data/observations/recent/notable_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/recent/notable_list_response.py rename to src/phoebe_bird/types/data/observations/recent/notable_list_response.py diff --git a/src/phoebe_minus_bird/types/data/observations/recent/specie_retrieve_params.py b/src/phoebe_bird/types/data/observations/recent/specie_retrieve_params.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/recent/specie_retrieve_params.py rename to src/phoebe_bird/types/data/observations/recent/specie_retrieve_params.py diff --git a/src/phoebe_minus_bird/types/data/observations/recent/specie_retrieve_response.py b/src/phoebe_bird/types/data/observations/recent/specie_retrieve_response.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/recent/specie_retrieve_response.py rename to src/phoebe_bird/types/data/observations/recent/specie_retrieve_response.py diff --git a/src/phoebe_minus_bird/types/data/observations/recent_list_params.py b/src/phoebe_bird/types/data/observations/recent_list_params.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/recent_list_params.py rename to src/phoebe_bird/types/data/observations/recent_list_params.py diff --git a/src/phoebe_minus_bird/types/data/observations/recent_list_response.py b/src/phoebe_bird/types/data/observations/recent_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/data/observations/recent_list_response.py rename to src/phoebe_bird/types/data/observations/recent_list_response.py diff --git a/src/phoebe_minus_bird/types/product/__init__.py b/src/phoebe_bird/types/product/__init__.py similarity index 100% rename from src/phoebe_minus_bird/types/product/__init__.py rename to src/phoebe_bird/types/product/__init__.py diff --git a/src/phoebe_minus_bird/types/product/checklist_view_response.py b/src/phoebe_bird/types/product/checklist_view_response.py similarity index 100% rename from src/phoebe_minus_bird/types/product/checklist_view_response.py rename to src/phoebe_bird/types/product/checklist_view_response.py diff --git a/src/phoebe_minus_bird/types/product/list_retrieve_params.py b/src/phoebe_bird/types/product/list_retrieve_params.py similarity index 100% rename from src/phoebe_minus_bird/types/product/list_retrieve_params.py rename to src/phoebe_bird/types/product/list_retrieve_params.py diff --git a/src/phoebe_minus_bird/types/product/list_retrieve_response.py b/src/phoebe_bird/types/product/list_retrieve_response.py similarity index 100% rename from src/phoebe_minus_bird/types/product/list_retrieve_response.py rename to src/phoebe_bird/types/product/list_retrieve_response.py diff --git a/src/phoebe_minus_bird/types/product/lists/__init__.py b/src/phoebe_bird/types/product/lists/__init__.py similarity index 100% rename from src/phoebe_minus_bird/types/product/lists/__init__.py rename to src/phoebe_bird/types/product/lists/__init__.py diff --git a/src/phoebe_minus_bird/types/product/lists/historical_retrieve_params.py b/src/phoebe_bird/types/product/lists/historical_retrieve_params.py similarity index 100% rename from src/phoebe_minus_bird/types/product/lists/historical_retrieve_params.py rename to src/phoebe_bird/types/product/lists/historical_retrieve_params.py diff --git a/src/phoebe_minus_bird/types/product/lists/historical_retrieve_response.py b/src/phoebe_bird/types/product/lists/historical_retrieve_response.py similarity index 100% rename from src/phoebe_minus_bird/types/product/lists/historical_retrieve_response.py rename to src/phoebe_bird/types/product/lists/historical_retrieve_response.py diff --git a/src/phoebe_minus_bird/types/product/species_list_list_response.py b/src/phoebe_bird/types/product/species_list_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/product/species_list_list_response.py rename to src/phoebe_bird/types/product/species_list_list_response.py diff --git a/src/phoebe_minus_bird/types/product/stat_retrieve_response.py b/src/phoebe_bird/types/product/stat_retrieve_response.py similarity index 100% rename from src/phoebe_minus_bird/types/product/stat_retrieve_response.py rename to src/phoebe_bird/types/product/stat_retrieve_response.py diff --git a/src/phoebe_minus_bird/types/product/top100_retrieve_params.py b/src/phoebe_bird/types/product/top100_retrieve_params.py similarity index 100% rename from src/phoebe_minus_bird/types/product/top100_retrieve_params.py rename to src/phoebe_bird/types/product/top100_retrieve_params.py diff --git a/src/phoebe_minus_bird/types/product/top100_retrieve_response.py b/src/phoebe_bird/types/product/top100_retrieve_response.py similarity index 100% rename from src/phoebe_minus_bird/types/product/top100_retrieve_response.py rename to src/phoebe_bird/types/product/top100_retrieve_response.py diff --git a/src/phoebe_minus_bird/types/ref/__init__.py b/src/phoebe_bird/types/ref/__init__.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/__init__.py rename to src/phoebe_bird/types/ref/__init__.py diff --git a/src/phoebe_minus_bird/types/ref/hotspot/__init__.py b/src/phoebe_bird/types/ref/hotspot/__init__.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/hotspot/__init__.py rename to src/phoebe_bird/types/ref/hotspot/__init__.py diff --git a/src/phoebe_minus_bird/types/ref/hotspot/geo_retrieve_params.py b/src/phoebe_bird/types/ref/hotspot/geo_retrieve_params.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/hotspot/geo_retrieve_params.py rename to src/phoebe_bird/types/ref/hotspot/geo_retrieve_params.py diff --git a/src/phoebe_minus_bird/types/ref/hotspot/geo_retrieve_response.py b/src/phoebe_bird/types/ref/hotspot/geo_retrieve_response.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/hotspot/geo_retrieve_response.py rename to src/phoebe_bird/types/ref/hotspot/geo_retrieve_response.py diff --git a/src/phoebe_minus_bird/types/ref/hotspot/info_retrieve_response.py b/src/phoebe_bird/types/ref/hotspot/info_retrieve_response.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/hotspot/info_retrieve_response.py rename to src/phoebe_bird/types/ref/hotspot/info_retrieve_response.py diff --git a/src/phoebe_minus_bird/types/ref/hotspot_list_params.py b/src/phoebe_bird/types/ref/hotspot_list_params.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/hotspot_list_params.py rename to src/phoebe_bird/types/ref/hotspot_list_params.py diff --git a/src/phoebe_minus_bird/types/ref/hotspot_list_response.py b/src/phoebe_bird/types/ref/hotspot_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/hotspot_list_response.py rename to src/phoebe_bird/types/ref/hotspot_list_response.py diff --git a/src/phoebe_minus_bird/types/ref/region/__init__.py b/src/phoebe_bird/types/ref/region/__init__.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/region/__init__.py rename to src/phoebe_bird/types/ref/region/__init__.py diff --git a/src/phoebe_minus_bird/types/ref/region/adjacent_list_response.py b/src/phoebe_bird/types/ref/region/adjacent_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/region/adjacent_list_response.py rename to src/phoebe_bird/types/ref/region/adjacent_list_response.py diff --git a/src/phoebe_minus_bird/types/ref/region/info_retrieve_params.py b/src/phoebe_bird/types/ref/region/info_retrieve_params.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/region/info_retrieve_params.py rename to src/phoebe_bird/types/ref/region/info_retrieve_params.py diff --git a/src/phoebe_minus_bird/types/ref/region/info_retrieve_response.py b/src/phoebe_bird/types/ref/region/info_retrieve_response.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/region/info_retrieve_response.py rename to src/phoebe_bird/types/ref/region/info_retrieve_response.py diff --git a/src/phoebe_minus_bird/types/ref/region/list_list_params.py b/src/phoebe_bird/types/ref/region/list_list_params.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/region/list_list_params.py rename to src/phoebe_bird/types/ref/region/list_list_params.py diff --git a/src/phoebe_minus_bird/types/ref/region/list_list_response.py b/src/phoebe_bird/types/ref/region/list_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/region/list_list_response.py rename to src/phoebe_bird/types/ref/region/list_list_response.py diff --git a/src/phoebe_minus_bird/types/ref/taxonomy/__init__.py b/src/phoebe_bird/types/ref/taxonomy/__init__.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/taxonomy/__init__.py rename to src/phoebe_bird/types/ref/taxonomy/__init__.py diff --git a/src/phoebe_minus_bird/types/ref/taxonomy/ebird_retrieve_params.py b/src/phoebe_bird/types/ref/taxonomy/ebird_retrieve_params.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/taxonomy/ebird_retrieve_params.py rename to src/phoebe_bird/types/ref/taxonomy/ebird_retrieve_params.py diff --git a/src/phoebe_minus_bird/types/ref/taxonomy/ebird_retrieve_response.py b/src/phoebe_bird/types/ref/taxonomy/ebird_retrieve_response.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/taxonomy/ebird_retrieve_response.py rename to src/phoebe_bird/types/ref/taxonomy/ebird_retrieve_response.py diff --git a/src/phoebe_minus_bird/types/ref/taxonomy/form_list_response.py b/src/phoebe_bird/types/ref/taxonomy/form_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/taxonomy/form_list_response.py rename to src/phoebe_bird/types/ref/taxonomy/form_list_response.py diff --git a/src/phoebe_minus_bird/types/ref/taxonomy/locale_list_response.py b/src/phoebe_bird/types/ref/taxonomy/locale_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/taxonomy/locale_list_response.py rename to src/phoebe_bird/types/ref/taxonomy/locale_list_response.py diff --git a/src/phoebe_minus_bird/types/ref/taxonomy/species_group_list_params.py b/src/phoebe_bird/types/ref/taxonomy/species_group_list_params.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/taxonomy/species_group_list_params.py rename to src/phoebe_bird/types/ref/taxonomy/species_group_list_params.py diff --git a/src/phoebe_minus_bird/types/ref/taxonomy/species_group_list_response.py b/src/phoebe_bird/types/ref/taxonomy/species_group_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/taxonomy/species_group_list_response.py rename to src/phoebe_bird/types/ref/taxonomy/species_group_list_response.py diff --git a/src/phoebe_minus_bird/types/ref/taxonomy/version_list_response.py b/src/phoebe_bird/types/ref/taxonomy/version_list_response.py similarity index 100% rename from src/phoebe_minus_bird/types/ref/taxonomy/version_list_response.py rename to src/phoebe_bird/types/ref/taxonomy/version_list_response.py diff --git a/tests/api_resources/data/observations/geo/recent/test_notable.py b/tests/api_resources/data/observations/geo/recent/test_notable.py index e37c0b4..40bb48d 100644 --- a/tests/api_resources/data/observations/geo/recent/test_notable.py +++ b/tests/api_resources/data/observations/geo/recent/test_notable.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.data.observations.geo.recent import NotableListResponse +from phoebe_bird.types.data.observations.geo.recent import NotableListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/data/observations/geo/recent/test_species.py b/tests/api_resources/data/observations/geo/recent/test_species.py index 4f53d53..c16b05a 100644 --- a/tests/api_resources/data/observations/geo/recent/test_species.py +++ b/tests/api_resources/data/observations/geo/recent/test_species.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.data.observations.geo.recent import SpecieListResponse +from phoebe_bird.types.data.observations.geo.recent import SpecieListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/data/observations/geo/test_recent.py b/tests/api_resources/data/observations/geo/test_recent.py index 62864b8..7ec3763 100644 --- a/tests/api_resources/data/observations/geo/test_recent.py +++ b/tests/api_resources/data/observations/geo/test_recent.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.data.observations.geo import RecentListResponse +from phoebe_bird.types.data.observations.geo import RecentListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/data/observations/nearest/test_geo_species.py b/tests/api_resources/data/observations/nearest/test_geo_species.py index 468325b..3533ef2 100644 --- a/tests/api_resources/data/observations/nearest/test_geo_species.py +++ b/tests/api_resources/data/observations/nearest/test_geo_species.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.data.observations.nearest import GeoSpecieListResponse +from phoebe_bird.types.data.observations.nearest import GeoSpecieListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/data/observations/recent/test_historic.py b/tests/api_resources/data/observations/recent/test_historic.py index 2d1e362..08304fc 100644 --- a/tests/api_resources/data/observations/recent/test_historic.py +++ b/tests/api_resources/data/observations/recent/test_historic.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.data.observations.recent import HistoricListResponse +from phoebe_bird.types.data.observations.recent import HistoricListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/data/observations/recent/test_notable.py b/tests/api_resources/data/observations/recent/test_notable.py index 6ee97aa..bf3ec4b 100644 --- a/tests/api_resources/data/observations/recent/test_notable.py +++ b/tests/api_resources/data/observations/recent/test_notable.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.data.observations.recent import NotableListResponse +from phoebe_bird.types.data.observations.recent import NotableListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/data/observations/recent/test_species.py b/tests/api_resources/data/observations/recent/test_species.py index 258bffc..c5bb285 100644 --- a/tests/api_resources/data/observations/recent/test_species.py +++ b/tests/api_resources/data/observations/recent/test_species.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.data.observations.recent import SpecieRetrieveResponse +from phoebe_bird.types.data.observations.recent import SpecieRetrieveResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/data/observations/test_recent.py b/tests/api_resources/data/observations/test_recent.py index d864fa5..46a8543 100644 --- a/tests/api_resources/data/observations/test_recent.py +++ b/tests/api_resources/data/observations/test_recent.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.data.observations import RecentListResponse +from phoebe_bird.types.data.observations import RecentListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/product/lists/test_historical.py b/tests/api_resources/product/lists/test_historical.py index 54aa7a1..38b4e86 100644 --- a/tests/api_resources/product/lists/test_historical.py +++ b/tests/api_resources/product/lists/test_historical.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.product.lists import HistoricalRetrieveResponse +from phoebe_bird.types.product.lists import HistoricalRetrieveResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/product/test_checklist.py b/tests/api_resources/product/test_checklist.py index 18ae571..907812d 100644 --- a/tests/api_resources/product/test_checklist.py +++ b/tests/api_resources/product/test_checklist.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.product import ChecklistViewResponse +from phoebe_bird.types.product import ChecklistViewResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/product/test_lists.py b/tests/api_resources/product/test_lists.py index 75e75e6..e4f92d5 100644 --- a/tests/api_resources/product/test_lists.py +++ b/tests/api_resources/product/test_lists.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.product import ListRetrieveResponse +from phoebe_bird.types.product import ListRetrieveResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/product/test_species_list.py b/tests/api_resources/product/test_species_list.py index 3a6f337..dce223c 100644 --- a/tests/api_resources/product/test_species_list.py +++ b/tests/api_resources/product/test_species_list.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.product import SpeciesListListResponse +from phoebe_bird.types.product import SpeciesListListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/product/test_stats.py b/tests/api_resources/product/test_stats.py index ccf727f..77331ff 100644 --- a/tests/api_resources/product/test_stats.py +++ b/tests/api_resources/product/test_stats.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.product import StatRetrieveResponse +from phoebe_bird.types.product import StatRetrieveResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/product/test_top100.py b/tests/api_resources/product/test_top100.py index 4ce5a67..4c6aa3c 100644 --- a/tests/api_resources/product/test_top100.py +++ b/tests/api_resources/product/test_top100.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.product import Top100RetrieveResponse +from phoebe_bird.types.product import Top100RetrieveResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ref/hotspot/test_geo.py b/tests/api_resources/ref/hotspot/test_geo.py index ea4bce6..b2fe53d 100644 --- a/tests/api_resources/ref/hotspot/test_geo.py +++ b/tests/api_resources/ref/hotspot/test_geo.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.ref.hotspot import GeoRetrieveResponse +from phoebe_bird.types.ref.hotspot import GeoRetrieveResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ref/hotspot/test_info.py b/tests/api_resources/ref/hotspot/test_info.py index b8a3e89..f5cef52 100644 --- a/tests/api_resources/ref/hotspot/test_info.py +++ b/tests/api_resources/ref/hotspot/test_info.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.ref.hotspot import InfoRetrieveResponse +from phoebe_bird.types.ref.hotspot import InfoRetrieveResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ref/region/test_adjacent.py b/tests/api_resources/ref/region/test_adjacent.py index b655a46..3791293 100644 --- a/tests/api_resources/ref/region/test_adjacent.py +++ b/tests/api_resources/ref/region/test_adjacent.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.ref.region import AdjacentListResponse +from phoebe_bird.types.ref.region import AdjacentListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ref/region/test_info.py b/tests/api_resources/ref/region/test_info.py index 4f32c58..9fbdd55 100644 --- a/tests/api_resources/ref/region/test_info.py +++ b/tests/api_resources/ref/region/test_info.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.ref.region import InfoRetrieveResponse +from phoebe_bird.types.ref.region import InfoRetrieveResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ref/region/test_list.py b/tests/api_resources/ref/region/test_list.py index 4faeeb0..997bd88 100644 --- a/tests/api_resources/ref/region/test_list.py +++ b/tests/api_resources/ref/region/test_list.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.ref.region import ListListResponse +from phoebe_bird.types.ref.region import ListListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ref/taxonomy/test_ebird.py b/tests/api_resources/ref/taxonomy/test_ebird.py index 4003155..52199ce 100644 --- a/tests/api_resources/ref/taxonomy/test_ebird.py +++ b/tests/api_resources/ref/taxonomy/test_ebird.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.ref.taxonomy import EbirdRetrieveResponse +from phoebe_bird.types.ref.taxonomy import EbirdRetrieveResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ref/taxonomy/test_forms.py b/tests/api_resources/ref/taxonomy/test_forms.py index b90f6a6..30682b5 100644 --- a/tests/api_resources/ref/taxonomy/test_forms.py +++ b/tests/api_resources/ref/taxonomy/test_forms.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.ref.taxonomy import FormListResponse +from phoebe_bird.types.ref.taxonomy import FormListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ref/taxonomy/test_locales.py b/tests/api_resources/ref/taxonomy/test_locales.py index b6d0eb0..e411b60 100644 --- a/tests/api_resources/ref/taxonomy/test_locales.py +++ b/tests/api_resources/ref/taxonomy/test_locales.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.ref.taxonomy import LocaleListResponse +from phoebe_bird.types.ref.taxonomy import LocaleListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ref/taxonomy/test_species_groups.py b/tests/api_resources/ref/taxonomy/test_species_groups.py index 61dabc5..c26c94e 100644 --- a/tests/api_resources/ref/taxonomy/test_species_groups.py +++ b/tests/api_resources/ref/taxonomy/test_species_groups.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.ref.taxonomy import SpeciesGroupListResponse +from phoebe_bird.types.ref.taxonomy import SpeciesGroupListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ref/taxonomy/test_versions.py b/tests/api_resources/ref/taxonomy/test_versions.py index 1f3c03f..89b875f 100644 --- a/tests/api_resources/ref/taxonomy/test_versions.py +++ b/tests/api_resources/ref/taxonomy/test_versions.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.ref.taxonomy import VersionListResponse +from phoebe_bird.types.ref.taxonomy import VersionListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ref/test_hotspot.py b/tests/api_resources/ref/test_hotspot.py index 7f64472..dfa37e7 100644 --- a/tests/api_resources/ref/test_hotspot.py +++ b/tests/api_resources/ref/test_hotspot.py @@ -7,9 +7,9 @@ import pytest +from phoebe_bird import Phoebe, AsyncPhoebe from tests.utils import assert_matches_type -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird.types.ref import HotspotListResponse +from phoebe_bird.types.ref import HotspotListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/conftest.py b/tests/conftest.py index 1ddd719..37bfec9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -7,14 +7,14 @@ import pytest -from phoebe_minus_bird import Phoebe, AsyncPhoebe +from phoebe_bird import Phoebe, AsyncPhoebe if TYPE_CHECKING: from _pytest.fixtures import FixtureRequest pytest.register_assert_rewrite("tests.utils") -logging.getLogger("phoebe_minus_bird").setLevel(logging.DEBUG) +logging.getLogger("phoebe_bird").setLevel(logging.DEBUG) @pytest.fixture(scope="session") diff --git a/tests/test_client.py b/tests/test_client.py index 774989d..f68b287 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -16,11 +16,11 @@ from respx import MockRouter from pydantic import ValidationError -from phoebe_minus_bird import Phoebe, AsyncPhoebe, APIResponseValidationError -from phoebe_minus_bird._models import BaseModel, FinalRequestOptions -from phoebe_minus_bird._constants import RAW_RESPONSE_HEADER -from phoebe_minus_bird._exceptions import PhoebeError, APIStatusError, APITimeoutError, APIResponseValidationError -from phoebe_minus_bird._base_client import ( +from phoebe_bird import Phoebe, AsyncPhoebe, APIResponseValidationError +from phoebe_bird._models import BaseModel, FinalRequestOptions +from phoebe_bird._constants import RAW_RESPONSE_HEADER +from phoebe_bird._exceptions import PhoebeError, APIStatusError, APITimeoutError, APIResponseValidationError +from phoebe_bird._base_client import ( DEFAULT_TIMEOUT, HTTPX_DEFAULT_TIMEOUT, BaseClient, @@ -224,10 +224,10 @@ def add_leak(leaks: list[tracemalloc.StatisticDiff], diff: tracemalloc.Statistic # to_raw_response_wrapper leaks through the @functools.wraps() decorator. # # removing the decorator fixes the leak for reasons we don't understand. - "phoebe_minus_bird/_legacy_response.py", - "phoebe_minus_bird/_response.py", + "phoebe_bird/_legacy_response.py", + "phoebe_bird/_response.py", # pydantic.BaseModel.model_dump || pydantic.BaseModel.dict leak memory for some reason. - "phoebe_minus_bird/_compat.py", + "phoebe_bird/_compat.py", # Standard library leaks we don't care about. "/logging/__init__.py", ] @@ -699,7 +699,7 @@ def test_parse_retry_after_header(self, remaining_retries: int, retry_after: str calculated = client._calculate_retry_timeout(remaining_retries, options, headers) assert calculated == pytest.approx(timeout, 0.5 * 0.875) # pyright: ignore[reportUnknownMemberType] - @mock.patch("phoebe_minus_bird._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) + @mock.patch("phoebe_bird._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) @pytest.mark.respx(base_url=base_url) def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> None: respx_mock.get("/ref/hotspot/info/string").mock(side_effect=httpx.TimeoutException("Test timeout error")) @@ -711,7 +711,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> No assert _get_open_connections(self.client) == 0 - @mock.patch("phoebe_minus_bird._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) + @mock.patch("phoebe_bird._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) @pytest.mark.respx(base_url=base_url) def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> None: respx_mock.get("/ref/hotspot/info/string").mock(return_value=httpx.Response(500)) @@ -899,10 +899,10 @@ def add_leak(leaks: list[tracemalloc.StatisticDiff], diff: tracemalloc.Statistic # to_raw_response_wrapper leaks through the @functools.wraps() decorator. # # removing the decorator fixes the leak for reasons we don't understand. - "phoebe_minus_bird/_legacy_response.py", - "phoebe_minus_bird/_response.py", + "phoebe_bird/_legacy_response.py", + "phoebe_bird/_response.py", # pydantic.BaseModel.model_dump || pydantic.BaseModel.dict leak memory for some reason. - "phoebe_minus_bird/_compat.py", + "phoebe_bird/_compat.py", # Standard library leaks we don't care about. "/logging/__init__.py", ] @@ -1390,7 +1390,7 @@ async def test_parse_retry_after_header(self, remaining_retries: int, retry_afte calculated = client._calculate_retry_timeout(remaining_retries, options, headers) assert calculated == pytest.approx(timeout, 0.5 * 0.875) # pyright: ignore[reportUnknownMemberType] - @mock.patch("phoebe_minus_bird._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) + @mock.patch("phoebe_bird._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) @pytest.mark.respx(base_url=base_url) async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> None: respx_mock.get("/ref/hotspot/info/string").mock(side_effect=httpx.TimeoutException("Test timeout error")) @@ -1402,7 +1402,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) assert _get_open_connections(self.client) == 0 - @mock.patch("phoebe_minus_bird._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) + @mock.patch("phoebe_bird._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) @pytest.mark.respx(base_url=base_url) async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> None: respx_mock.get("/ref/hotspot/info/string").mock(return_value=httpx.Response(500)) diff --git a/tests/test_deepcopy.py b/tests/test_deepcopy.py index 643b73e..9f51d05 100644 --- a/tests/test_deepcopy.py +++ b/tests/test_deepcopy.py @@ -1,4 +1,4 @@ -from phoebe_minus_bird._utils import deepcopy_minimal +from phoebe_bird._utils import deepcopy_minimal def assert_different_identities(obj1: object, obj2: object) -> None: diff --git a/tests/test_extract_files.py b/tests/test_extract_files.py index 05cad0a..bceaeab 100644 --- a/tests/test_extract_files.py +++ b/tests/test_extract_files.py @@ -4,8 +4,8 @@ import pytest -from phoebe_minus_bird._types import FileTypes -from phoebe_minus_bird._utils import extract_files +from phoebe_bird._types import FileTypes +from phoebe_bird._utils import extract_files def test_removes_files_from_input() -> None: diff --git a/tests/test_files.py b/tests/test_files.py index aaf62c2..b87ebd3 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -4,7 +4,7 @@ import pytest from dirty_equals import IsDict, IsList, IsBytes, IsTuple -from phoebe_minus_bird._files import to_httpx_files, async_to_httpx_files +from phoebe_bird._files import to_httpx_files, async_to_httpx_files readme_path = Path(__file__).parent.parent.joinpath("README.md") diff --git a/tests/test_models.py b/tests/test_models.py index 79271ed..14bb3c9 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -7,9 +7,9 @@ import pydantic from pydantic import Field -from phoebe_minus_bird._utils import PropertyInfo -from phoebe_minus_bird._compat import PYDANTIC_V2, parse_obj, model_dump, model_json -from phoebe_minus_bird._models import BaseModel, construct_type +from phoebe_bird._utils import PropertyInfo +from phoebe_bird._compat import PYDANTIC_V2, parse_obj, model_dump, model_json +from phoebe_bird._models import BaseModel, construct_type class BasicModel(BaseModel): diff --git a/tests/test_qs.py b/tests/test_qs.py index 4915ca2..c66bae2 100644 --- a/tests/test_qs.py +++ b/tests/test_qs.py @@ -4,7 +4,7 @@ import pytest -from phoebe_minus_bird._qs import Querystring, stringify +from phoebe_bird._qs import Querystring, stringify def test_empty() -> None: diff --git a/tests/test_required_args.py b/tests/test_required_args.py index 915bdaa..cb2a94c 100644 --- a/tests/test_required_args.py +++ b/tests/test_required_args.py @@ -2,7 +2,7 @@ import pytest -from phoebe_minus_bird._utils import required_args +from phoebe_bird._utils import required_args def test_too_many_positional_params() -> None: diff --git a/tests/test_response.py b/tests/test_response.py index 93a47d2..1bf0c9b 100644 --- a/tests/test_response.py +++ b/tests/test_response.py @@ -6,8 +6,8 @@ import pytest import pydantic -from phoebe_minus_bird import Phoebe, BaseModel, AsyncPhoebe -from phoebe_minus_bird._response import ( +from phoebe_bird import Phoebe, BaseModel, AsyncPhoebe +from phoebe_bird._response import ( APIResponse, BaseAPIResponse, AsyncAPIResponse, @@ -15,8 +15,8 @@ AsyncBinaryAPIResponse, extract_response_type, ) -from phoebe_minus_bird._streaming import Stream -from phoebe_minus_bird._base_client import FinalRequestOptions +from phoebe_bird._streaming import Stream +from phoebe_bird._base_client import FinalRequestOptions class ConcreteBaseAPIResponse(APIResponse[bytes]): @@ -40,7 +40,7 @@ def test_extract_response_type_direct_classes() -> None: def test_extract_response_type_direct_class_missing_type_arg() -> None: with pytest.raises( RuntimeError, - match="Expected type to have a type argument at index 0 but it did not", + match="Expected type to have a type argument at index 0 but it did not", ): extract_response_type(AsyncAPIResponse) @@ -72,7 +72,7 @@ def test_response_parse_mismatched_basemodel(client: Phoebe) -> None: with pytest.raises( TypeError, - match="Pydantic models must subclass our base model type, e.g. `from phoebe_minus_bird import BaseModel`", + match="Pydantic models must subclass our base model type, e.g. `from phoebe_bird import BaseModel`", ): response.parse(to=PydanticModel) @@ -90,7 +90,7 @@ async def test_async_response_parse_mismatched_basemodel(async_client: AsyncPhoe with pytest.raises( TypeError, - match="Pydantic models must subclass our base model type, e.g. `from phoebe_minus_bird import BaseModel`", + match="Pydantic models must subclass our base model type, e.g. `from phoebe_bird import BaseModel`", ): await response.parse(to=PydanticModel) diff --git a/tests/test_streaming.py b/tests/test_streaming.py index 3724b58..136fc90 100644 --- a/tests/test_streaming.py +++ b/tests/test_streaming.py @@ -5,8 +5,8 @@ import httpx import pytest -from phoebe_minus_bird import Phoebe, AsyncPhoebe -from phoebe_minus_bird._streaming import Stream, AsyncStream, ServerSentEvent +from phoebe_bird import Phoebe, AsyncPhoebe +from phoebe_bird._streaming import Stream, AsyncStream, ServerSentEvent @pytest.mark.asyncio diff --git a/tests/test_transform.py b/tests/test_transform.py index e953f49..c979be5 100644 --- a/tests/test_transform.py +++ b/tests/test_transform.py @@ -8,15 +8,15 @@ import pytest -from phoebe_minus_bird._types import Base64FileInput -from phoebe_minus_bird._utils import ( +from phoebe_bird._types import Base64FileInput +from phoebe_bird._utils import ( PropertyInfo, transform as _transform, parse_datetime, async_transform as _async_transform, ) -from phoebe_minus_bird._compat import PYDANTIC_V2 -from phoebe_minus_bird._models import BaseModel +from phoebe_bird._compat import PYDANTIC_V2 +from phoebe_bird._models import BaseModel _T = TypeVar("_T") diff --git a/tests/test_utils/test_proxy.py b/tests/test_utils/test_proxy.py index 61e1239..772a86b 100644 --- a/tests/test_utils/test_proxy.py +++ b/tests/test_utils/test_proxy.py @@ -2,7 +2,7 @@ from typing import Any from typing_extensions import override -from phoebe_minus_bird._utils import LazyProxy +from phoebe_bird._utils import LazyProxy class RecursiveLazyProxy(LazyProxy[Any]): diff --git a/tests/test_utils/test_typing.py b/tests/test_utils/test_typing.py index 8f36172..9448444 100644 --- a/tests/test_utils/test_typing.py +++ b/tests/test_utils/test_typing.py @@ -2,7 +2,7 @@ from typing import Generic, TypeVar, cast -from phoebe_minus_bird._utils import extract_type_var_from_base +from phoebe_bird._utils import extract_type_var_from_base _T = TypeVar("_T") _T2 = TypeVar("_T2") diff --git a/tests/utils.py b/tests/utils.py index 6c67132..3ce06aa 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -8,8 +8,8 @@ from datetime import date, datetime from typing_extensions import Literal, get_args, get_origin, assert_type -from phoebe_minus_bird._types import NoneType -from phoebe_minus_bird._utils import ( +from phoebe_bird._types import NoneType +from phoebe_bird._utils import ( is_dict, is_list, is_list_type, @@ -17,8 +17,8 @@ extract_type_arg, is_annotated_type, ) -from phoebe_minus_bird._compat import PYDANTIC_V2, field_outer_type, get_model_fields -from phoebe_minus_bird._models import BaseModel +from phoebe_bird._compat import PYDANTIC_V2, field_outer_type, get_model_fields +from phoebe_bird._models import BaseModel BaseModelT = TypeVar("BaseModelT", bound=BaseModel)