Package: pynavio
pynavioPython lib for navioFree software: MIT licenseFeaturesPynavio.Client is a navio API client that enables users to upload models and data, deploy and retrain models etc.Pynavio.mlflow.to_navio function calls mlflow.pyfunc.save_model function, saving a model zip file as required by navio.it enables inferring the conda environment (with pip requirements) and adding extra pip dependencies to the inferred environmentit enables adding sys dependencies to the navio modelit also validates the models with Pynavio.mlflow.ModelValidator by defaultPynavio.mlflow.ModelValidator is a class that validates the model (prediction/example request/MLmodel metadata schema checks, warnings related nested types/big model sizes)Pynavio.infer_external_dependencies is a helper function that infers the external dependencies based on the file path. Please refer to its doc string for limitations.Pynavio.infer_imported_code_path is a helper function that infers the imported code paths based on the file path and the root path. Please refer to its doc string for limitations.Pynavio.make_example_request generates a request schema for a navio model from data.DocumentationThe official documentation is hosted onhttps://navio.craftworks.io:https://navio.craftworks.io/docs/guides/pynavio/ExamplesTo build all example models, use:$ cd scripts && makeCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.Examples/models uses code parts from Open Source projectmjain72/Condition-monitoring-of-hydraulic-systems-using-xgboost-modeling.Examples/models uses code parts from Open Source projecthttps://www.kaggle.com/maciejautuch/car-price-predictionHistory0.0.1 (2021-09-07)First release on PyPI.0.0.2 (2021-12-29)allows user provide modules as pip stringsbrings possibility to infer package dependencies(pip strings) using the infer_external_dependencies()handle data frame input for example requestupdates the default conda channels: remove anaconda and pytorch and add conda-forgeadds and updates the dependenciesbrings gpu related changesbrings example models (tabular etc.)fixes the issue with pigar running for 10 minutes when the input path contains venv0.1.0 (2022-01-24)adds model helpersbrings more example models: pump leakage modelremoves the need to download the data from kaggle, refers to local data dir for data insteadadds credits to README, adds LICENSE0.1.1 (2022-02-07)adds credits for kaggle notebook’s code parts usagebrings more example models: car price model0.1.4 (2022-08-25)API Clientadds possibility to infer the dependencies used in the file onlyextra docs for example modelsmoves the data dir out into examplesupdates dependenciesfixes the missing import of the currently available modelsfixes mlflow==1.27.0 circular import errorfixes pynavio FileNotFound error mlflow-1.26.0fixes _fetch_data example request path according to mlflow-1.26.0sets protobuf version to fix failing testsfixes to_navio() to support kedro path0.1.5 (2022-09-15)fixes the documentation linkattempts to remove the build badgeremoves installation for development section form readmefixes repository on the pypi pageadds history0.1.6 (2022-09-15)final touches/refactoring to make the repo ready for becoming public0.1.7 (2022-11-16)fixes mlflow version to be <2.0 as it introduces breaking changes in the apiwraps navio’s model deletion api0.2.0 (2022-11-30)resolves mlflow2 incompatibilitybrings model validation checks:prediction, example request and MLmodel metadata schema validationmakes check_model_serving function publicadds jsonschema to requirementsbump tensorflow from 2.9.1 to 2.9.3bump pillow from 9.2.0 to 9.3.0refactors example tests0.2.1 (2022-12-07)loosens version requirement for jsonschemaimproves and fixes typos in error message textsprevents the exception traceback from prediction_call when checking if it is used, to not confuse the userbrings a descriptive error if model path in code_pathbrings a descriptive error if code_path is not a list0.2.2 (2023-04-03)bump tensorflow from 2.9.3 to 2.11.1updates torch version and adds onnx as requirementfixes torch, pyarrow and onnxrutime versionsfixes the prediction schema to only expect a list as predictionbump ipython from 8.4.0 to 8.10.0improves the docstring of to_navio functionbump wheel from 0.37.1 to 0.38.10.2.3 (2023-08-08)adds warnings related to limitations for nested inputs and big model.zip sizemake ModelValidator a public classadds docstrings to ModelValidatormakes model validation optional in to_navio(), so one can disable itadds (pynavio model validation) to the validation messages so it is clear where they come fromadds messages for pynavio model validation checks failed(how to disable)/succeeded(how to check model serving)updates readme with model validation info0.2.4 (2023-08-22)add possibility for user to add sys dependencies to the navio model0.3.0 (2024-01-17)allows for a conda environment with pip requirements to be inferredadds possibility to add extra pip dependencies to the inferred environment0.3.1 (2024-01-23)minor reformatting fix