Skip to content

Conversation

@edwinpav
Copy link

@edwinpav edwinpav commented Nov 3, 2025

Linear issue: https://linear.app/scale-epd/issue/DE-6014

Note: This allows the api_key and limited_access_key to be used together as well (let me know if you think this shouldn't me an option)

Testing:
After updating tests to support limited access keys, all tests that passed before this change still pass via poetry run pytest -q -m "not integration"

Example usage with poetry:

poetry run python - <<'PY'
import nucleus
c = nucleus.NucleusClient(limited_access_key="<LIMITED_ACCESS_KEY>")
print([d.name for d in c.datasets])
PY
poetry run python - <<'PY'
import nucleus
c = nucleus.NucleusClient(api_key="<API_KEY>", limited_access_key="<LIMITED_ACCESS_KEY>")
print([d.name for d in c.datasets])
PY
poetry run python - <<'PY'
import nucleus
c = nucleus.NucleusClient(api_key="<API_KEY>")
print([d.name for d in c.datasets])
PY
poetry run python - <<'PY'
import nucleus
c = nucleus.NucleusClient()
print([d.name for d in c.datasets])
PY

# Output
nucleus.errors.NoAPIKey: You must provide credentials to NucleusClient: pass api_key or limited_access_key, or set NUCLEUS_API_KEY or NUCLEUS_LIMITED_ACCESS_KEY.

Updated Documentation:
Screenshot 2025-11-03 at 4 54 02 PM

@edwinpav edwinpav self-assigned this Nov 3, 2025
@pytest.mark.skip(
reason="Skip Temporarily - Need to find issue with customObjectIndexingJobId"
)
def test_box_pred_upload_embedding(CLIENT, model_run):
Copy link
Author

@edwinpav edwinpav Nov 3, 2025

Choose a reason for hiding this comment

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

Every other test (only 1 other one) that uses customObjectIndexingJobId is also skipped due to an apparently known issue with customObjectIndexingJobId. See here. Thus, this fix should be for a separate pr.

# Important: Don't change this otherwise we will stop testing the earliest
# python version we have to support.
- image: python:3.7-buster
- image: python:3.7-bullseye
Copy link
Author

@edwinpav edwinpav Nov 4, 2025

Choose a reason for hiding this comment

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

python:3.7-buster was not even building in the circleci pipeline because it seems to be EOL and thus not supported anymore. Please advise if there is a better alternative than the one I chose.

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.

2 participants