{"id":26451043,"url":"https://github.com/daedalus/tbc","last_synced_at":"2026-04-11T00:04:41.742Z","repository":{"id":281927357,"uuid":"946891277","full_name":"daedalus/TBC","owner":"daedalus","description":"The Brain Collector: Find ML model weights inside Android","archived":false,"fork":false,"pushed_at":"2025-03-17T17:17:50.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T18:27:29.207Z","etag":null,"topics":["adb","ai","android","artificial-intelligence","coreml","gguf","hdf5","keras","machine-learning","ml","model-weights","onnx","protobuf","pytorch","tensorflow","tflite"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daedalus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-03-11T20:49:38.000Z","updated_at":"2025-03-17T17:17:54.000Z","dependencies_parsed_at":"2025-03-17T18:27:34.663Z","dependency_job_id":"d2d9e3d2-e4be-405f-9126-ddf7fcd5dbf6","html_url":"https://github.com/daedalus/TBC","commit_stats":null,"previous_names":["daedalus/adbweighthound","daedalus/tbc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daedalus%2FTBC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daedalus%2FTBC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daedalus%2FTBC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daedalus%2FTBC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daedalus","download_url":"https://codeload.github.com/daedalus/TBC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244259971,"owners_count":20424649,"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":["adb","ai","android","artificial-intelligence","coreml","gguf","hdf5","keras","machine-learning","ml","model-weights","onnx","protobuf","pytorch","tensorflow","tflite"],"created_at":"2025-03-18T16:31:24.062Z","updated_at":"2026-04-11T00:04:41.723Z","avatar_url":"https://github.com/daedalus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The Brain Collector\n\n\u003e A tool to scan Android devices for ML model weight files via ADB.\n\n[![PyPI](https://img.shields.io/pypi/v/thebraincollector.svg)](https://pypi.org/project/thebraincollector/)\n[![Python](https://img.shields.io/pypi/pyversions/thebraincollector.svg)](https://pypi.org/project/thebraincollector/)\n[![Coverage](https://codecov.io/gh/dclavijo/TBC/branch/main/graph/badge.svg)](https://codecov.io/gh/dclavijo/TBC)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\n## Install\n\n```bash\npip install thebraincollector\n```\n\n## Usage\n\n```python\nfrom tbc import find_ml_models, get_device_info\n\n# Get device information\ninfo = get_device_info()\nprint(f\"Device: {info['model']}\")\n\n# Find ML models on connected device\nmodels = find_ml_models()\n```\n\n## CLI\n\n```bash\ntbc --help\ntbc --file /path/to/file\ntbc --local-dir /path/to/dir\ntbc --export-csv results.csv --cleanup\n```\n\n## API\n\n### `get_device_info() -\u003e dict`\nReturns device serial number, model, and manufacturer.\n\n### `find_ml_models() -\u003e set`\nSearches connected Android device for ML model files.\n\n### `scan_files(files: list[str], local: bool = False) -\u003e None`\nScans files for ML model or APK extensions.\n\n### `human_readable_size(size_bytes: int) -\u003e str`\nConverts bytes to human-readable format.\n\n### `calculate_md5(file_path: str) -\u003e str | None`\nCalculates MD5 hash of a file.\n\n## Development\n\n```bash\ngit clone https://github.com/dclavijo/TBC.git\ncd TBC\npip install -e \".[test]\"\n\n# run tests\npytest\n\n# format\nruff format src/ tests/\n\n# lint\nruff check src/ tests/\n\n# type check\nmypy src/\n```\n\n## License\n\nMIT License - see LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaedalus%2Ftbc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaedalus%2Ftbc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaedalus%2Ftbc/lists"}