Skip to content

Update README.md - #323

Merged
jhamon merged 1 commit into
pinecone-io:mainfrom
GameSetAndMatch:patch-1
Mar 14, 2024
Merged

jhamon merged 1 commit into
pinecone-io:mainfrom
GameSetAndMatch:patch-1

Conversation

@GameSetAndMatch

Copy link
Copy Markdown
Contributor

Correction Poetry installation Scripts

Problem

There was an error in the poetry installation snippet in the Readme

poetry add pinecone instead of poetry add pinecone-client

Solution

Replaced poetry add pinecone with poetry add pinecone-client

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Infrastructure change (CI configs, etc)
  • Non-code change (docs, etc)
  • None of the above: (explain here)

Test Plan

Describe specific steps for validating this change.

Correction Poetry installation Scripts

@jhamon jhamon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@jhamon
jhamon merged commit b02388e into pinecone-io:main Mar 14, 2024
@daverigby

Copy link
Copy Markdown
Contributor

Fixes issue #322.

mcpaddy added a commit to mcpaddy/pinecone-python-client that referenced this pull request May 22, 2024
* 'main' of github.com:pinecone-io/pinecone-python-client:
  [skip ci] Bump version to v4.1.0
  Bump tqdm from 4.66.1 to 4.66.3 (pinecone-io#344)
  Bump idna from 3.4 to 3.7 (pinecone-io#345)
  Bump jinja2 from 3.1.3 to 3.1.4 (pinecone-io#343)
  Add better error messages for mistaken `from_texts` and `from_documents` (pinecone-io#342)
  Support proxy_url and ssl_ca_certs options for gRPC (pinecone-io#341)
  Remove serverless public preview warnings (pinecone-io#340)
  [skip ci] Bump version to v4.0.0
  Improve upsert throughput by 3x (pinecone-io#334)
  Remove `merge` workflow and update `build-and-publish-docs` workflow to be manually runnable (pinecone-io#335)
  [skip ci] Bump version to v3.2.2
  [Fix] openapi_config deprecation warning incorrectly shown (pinecone-io#327)
  Add grpc unit test run, expand testing of VectorFactory (pinecone-io#326)
  [skip ci] Bump version to v3.2.1
  Allow clients to tag requests with a source_tag (pinecone-io#324)
  [skip ci] Bump version to v3.2.0
  Revise proxy configuration, add integration testing (pinecone-io#325)
  [Fix] Configuring SSL proxy via openapi_config object (pinecone-io#321)
  Update README.md (pinecone-io#323)
NishchayMahor pushed a commit to NishchayMahor/python-sdk-1 that referenced this pull request Sep 22, 2026
…ed-deferred-export class (pinecone-io#317) (pinecone-io#323)

* feat(models): wire TokenResponse to the top level and drop the parity carve-out

`TokenResponse` (pinecone-io#192) was defined in `pinecone/models/admin/token.py` and
exported from `pinecone.models.admin`, but its top-level wiring was never
landed — the same dropped-deferred-export class pinecone-io#140 found for pinecone-io#96's admin
RBAC models.

Wire it the way pinecone-io#140 wired the admin models: `_LAZY_IMPORTS` + `__all__` +
the TYPE_CHECKING block in `pinecone/__init__.py`, `_LAZY_IMPORTS` + the
TYPE_CHECKING block in `pinecone/models/__init__.py`, and regenerate
`pinecone/__init__.pyi`.

Remove the allowed-gap exemption from `test_models_admin_export_parity` so
the parity assertion is exhaustive with no carve-outs, and add
`test_models_admin_top_level_parity` so `pinecone.models.admin` names must
also be reachable — by import, identity-checked — from `pinecone` itself.

* fix(errors): wire IndexTerminatedError to the top level (pinecone-io#317 sweep)

Found by the pinecone-io#317 sweep for remaining instances of the dropped-export
class. `IndexTerminatedError` is raised by public `create_index`/
`create_index_from_backup` polling on both the sync and async lanes, is
named in their `Raises:` docstrings, and is exported from
`pinecone.errors.__all__` — but was never reachable from `pinecone`, so the
docstrings told callers to catch a name they could not import. Its sibling
`IndexInitFailedError`, raised two lines away from the same guard, was
wired.

Not a "deferred to #N" hand-off like TokenResponse — same failure mode from
a different cause: a net-new public name added to a sub-package `__all__`
with nothing proving top-level reachability.

Also adds the missing `docs/reference/exceptions.rst` hierarchy line and
`autoexception` block, matching `IndexInitFailedError`.

`test_errors_top_level_parity` now enforces that every name in
`pinecone.errors.__all__` is importable from `pinecone` and identity-checks
against its defining module, with `ValidationError` — a deprecated alias
that warns on access — as the sole, commented exemption.
`test_errors_top_level_exemptions_are_still_real` fails if that exemption
ever goes stale or gets promoted, so the carve-out cannot rot the way
pinecone-io#317's did.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants