Skip to content

Conversation

@jairad26
Copy link
Contributor

@jairad26 jairad26 commented Jun 2, 2025

Description of changes

Adds support to pass pathlib.Path for persistence
#4704

Test plan

How are these changes tested?

  • Tests pass locally with pytest for python, yarn test for js, cargo test for rust

Documentation Changes

Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs section?

@github-actions
Copy link

github-actions bot commented Jun 2, 2025

Reviewer Checklist

Please leverage this checklist to ensure your code review is thorough before approving

Testing, Bugs, Errors, Logs, Documentation

  • Can you think of any use case in which the code does not behave as intended? Have they been tested?
  • Can you think of any inputs or external events that could break the code? Is user input validated and safe? Have they been tested?
  • If appropriate, are there adequate property based tests?
  • If appropriate, are there adequate unit tests?
  • Should any logging, debugging, tracing information be added or removed?
  • Are error messages user-friendly?
  • Have all documentation changes needed been made?
  • Have all non-obvious changes been commented?

System Compatibility

  • Are there any potential impacts on other parts of the system or backward compatibility?
  • Does this change intersect with any items on our roadmap, and if so, is there a plan for fitting them together?

Quality

  • Is this code of a unexpectedly high quality (Readability, Modularity, Intuitiveness)

Copy link
Contributor Author

jairad26 commented Jun 2, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jairad26 jairad26 marked this pull request as ready for review June 2, 2025 17:25
@propel-code-bot
Copy link
Contributor

propel-code-bot bot commented Jun 2, 2025

This PR enables the use of pathlib.Path objects for the 'path' argument in PersistentClient, allowing both string and Path types for specifying the persistence directory. The implementation ensures that internally all paths are converted to strings before use, improving compatibility with modern Python file APIs.

This summary was automatically generated by @propel-code-bot

@jairad26 jairad26 force-pushed the jai/pathlib-support branch from 064c2e8 to eaccbe1 Compare June 2, 2025 17:29
@jairad26 jairad26 force-pushed the jai/pathlib-support branch from eaccbe1 to dc6d311 Compare June 2, 2025 18:30
@jairad26 jairad26 merged commit ad8fe02 into main Jun 2, 2025
141 of 143 checks passed
Inventrohyder pushed a commit to Inventrohyder/chroma that referenced this pull request Aug 5, 2025
## Description of changes

Adds support to pass pathlib.Path for persistence
chroma-core#4704

## Test plan

_How are these changes tested?_

- [ ] Tests pass locally with `pytest` for python, `yarn test` for js,
`cargo test` for rust

## Documentation Changes

_Are all docstrings for user-facing APIs updated if required? Do we need
to make documentation changes in the [docs
section](https://github.com/chroma-core/chroma/tree/main/docs/docs.trychroma.com)?_
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