{"id":24302655,"url":"https://github.com/ramnathaniel/models-files-manager","last_synced_at":"2026-04-16T10:34:45.205Z","repository":{"id":159443891,"uuid":"634645383","full_name":"RamNathaniel/models-files-manager","owner":"RamNathaniel","description":"Models Files Manager helps you manage saved ML models on your file system, encoding fields into file names","archived":false,"fork":false,"pushed_at":"2023-09-05T20:48:44.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T20:03:23.722Z","etag":null,"topics":["deep-learning","keras","models","pytorch","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RamNathaniel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-30T19:43:55.000Z","updated_at":"2023-05-12T07:52:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"25bb33c3-a2d0-485e-b151-1fcbeec213f0","html_url":"https://github.com/RamNathaniel/models-files-manager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamNathaniel%2Fmodels-files-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamNathaniel%2Fmodels-files-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamNathaniel%2Fmodels-files-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamNathaniel%2Fmodels-files-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RamNathaniel","download_url":"https://codeload.github.com/RamNathaniel/models-files-manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242225779,"owners_count":20092655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-learning","keras","models","pytorch","tensorflow"],"created_at":"2025-01-17T00:17:55.213Z","updated_at":"2026-04-16T10:34:40.157Z","avatar_url":"https://github.com/RamNathaniel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Models Files Manager\n\nThe Models Files Manager is a simple tool that helps you keep track of saved models (PyTorch/Keras/Onnx/etc.) saved on the hard drive. You can set up a number of fields, that will get encoded into the file names, and query the files saved.\n\nThe Models Files Manager helps you avoid illegal chars in the paths, and easily retrive saved files for loading.\n\n## Installation\n\nYou can install the Models Files Manager from [PyPI](https://pypi.org/project/models-files-manager/):\n\n    python -m pip install models-files-manager\n\nThe manager is supported and tested on Python 3.8 and above.\n\n## How to use\n\nTo use the Models Files Manager, in your own Python code, by importing from the `models_files_manager` package:\n\n    \u003e\u003e\u003e from models_files_manager import ModelsFilesManager\n    \u003e\u003e\u003e manager = ModelsFilesManager(root, ['field1', 'field2'], 'ext')\n    \u003e\u003e\u003e models_file_names = manager.get_model_files(lambda d: d['field1'] == 'value1')\n\nOr to create a new file name:\n\n    \u003e\u003e\u003e from models_files_manager import ModelsFilesManager\n    \u003e\u003e\u003e manager = ModelsFilesManager(root, ['field1', 'field2'], 'ext')\n    \u003e\u003e\u003e file_name = manager.get_file_name({'field1': 'value1', 'field2': 'value2'})\n\nOr get the field values of a specific model, from the path:\n\n    \u003e\u003e\u003e from models_files_manager import ModelsFilesManager\n    \u003e\u003e\u003e manager = ModelsFilesManager(root, ['field1', 'field2'], 'ext')\n    \u003e\u003e\u003e fields = manager.get_fields_values('model file name')\n    \u003e\u003e\u003e print(fields['field1'])\n\nTo directly encode/decode into strings to a path-safe format:\n    \n    \u003e\u003e\u003e from models_files_manager import ModelsFilesManager\n    \u003e\u003e\u003e safe_string = ModelsFilesManager.path_escape(string)\n    \u003e\u003e\u003e orig_string = ModelsFilesManager.path_decode(safe_string)\n\nFree to use in any way, open source or commercial - see attached license.\n\nHappy training!\nRam Nathaniel, 2023\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framnathaniel%2Fmodels-files-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framnathaniel%2Fmodels-files-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framnathaniel%2Fmodels-files-manager/lists"}