anancarv / python-artifactory

Typed interactions with the Jfrog Artifactory REST API
MIT License
60 stars 51 forks source link

Include huggingfaceml as valid package type #176

Closed Nexolight closed 2 months ago

Nexolight commented 2 months ago

Hi, would it be possible to include the "huggingfaceml" package type?

ArtifactoryRepository.get_repo(key) returns a pydantic validation error with any huggingface remote repository:

  File "/home/user/.local/lib/python3.12/site-packages/pyartifactory/objects/repository.py", line 58, in get_repo
    return RemoteRepositoryResponse.model_validate(response_data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.12/site-packages/pydantic/main.py", line 551, in model_validate
    return cls.__pydantic_validator__.validate_python(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for RemoteRepositoryResponse
packageType
  Input should be 'alpine', 'bower', 'cargo', 'chef', 'cocoapods', 'composer', 'conan', 'conda', 'cran', 'debian', 'docker', 'gems', 'generic', 'gitlfs', 'go', 'gradle', 'helm', 'helmoci', 'ivy', 'maven', 'npm', 'nuget', 'opkg', 'p2', 'puppet', 'pypi', 'rpm', 'sbt', 'terraform', 'terraformbackend', 'vagrant', 'vcs' or 'yum' [type=enum, input_value='huggingfaceml', input_type=str]
    For further information 

I also noticed: swift, ansible and pub are missing.