Skip to content

Conversation

@AlejandroEsquivel
Copy link
Member

@AlejandroEsquivel AlejandroEsquivel commented Oct 23, 2024

Changed:

  • Updated Installation process to install from Guardrails Hub PyPi
  • Removed forced installations to guardrails/hub folder in site packages and sequential installations of dependencies
  • Support for validator versioning (see examples bellow)
  • All installation of validator packages and dependencies fully managed by pip
  • Added stderr logging on pip subprocess failures to surface any errors like no matching distributions (when no versions available based on provided version ranges)
  • Display which version gets installed on installation messages (stdout)
  • No more redundant re-installations since installs now just using pip

Examples:

$ guardrails hub install hub://guardrails/detect_pii~=1.4
$ guardrails hub install hub://guardrails/detect_pii>=1.4,==1.*
$ guardrails hub hub://guardrails/detect_pii==1.4.0
from guardrails import install

install("hub://guardrails/detect_pii~=1.4")
install("hub://guardrails/detect_pii>=1.4,==1.*")
install("hub://guardrails/detect_pii==1.4.1")
install("hub://guardrails/detect_pii>1.0.0,<2")

Example Output:

Installing hub://guardrails/detect_pii...
✅ Successfully installed guardrails/detect_pii version 1.4.1!

@AlejandroEsquivel AlejandroEsquivel changed the title Installs from private pypi with validator versioning Validator Versioning Oct 23, 2024
@AlejandroEsquivel AlejandroEsquivel marked this pull request as ready for review October 24, 2024 00:41
@AlejandroEsquivel AlejandroEsquivel changed the base branch from main to 0.6.0-dev October 28, 2024 22:30
@AlejandroEsquivel AlejandroEsquivel merged commit 280bb81 into 0.6.0-dev Oct 29, 2024
12 checks passed
@AlejandroEsquivel AlejandroEsquivel deleted the feat/validator-versioning branch October 29, 2024 19:13
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.

4 participants