{"id":38346599,"url":"https://github.com/accessibleapps/libloader","last_synced_at":"2026-01-17T03:03:59.484Z","repository":{"id":43357891,"uuid":"191996564","full_name":"accessibleapps/libloader","owner":"accessibleapps","description":"Quickly and easily load shared libraries on various platforms. Also includes a libloader.com module for loading COM modules on Windows.","archived":false,"fork":false,"pushed_at":"2026-01-14T03:17:50.000Z","size":38,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T07:07:19.093Z","etag":null,"topics":["com","cross-platform","ctypes","library-loader","linux","macos","python","shared-libraries","windows"],"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/accessibleapps.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-06-14T19:36:49.000Z","updated_at":"2026-01-14T03:17:53.000Z","dependencies_parsed_at":"2025-10-20T05:08:05.340Z","dependency_job_id":"444ca224-7cd0-40ac-bacd-e409573e42cd","html_url":"https://github.com/accessibleapps/libloader","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/accessibleapps/libloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accessibleapps%2Flibloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accessibleapps%2Flibloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accessibleapps%2Flibloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accessibleapps%2Flibloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/accessibleapps","download_url":"https://codeload.github.com/accessibleapps/libloader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accessibleapps%2Flibloader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["com","cross-platform","ctypes","library-loader","linux","macos","python","shared-libraries","windows"],"created_at":"2026-01-17T03:03:59.340Z","updated_at":"2026-01-17T03:03:59.447Z","avatar_url":"https://github.com/accessibleapps.png","language":"Python","readme":"# Libloader\n\nLibloader is a cross-platform Python library that simplifies loading shared libraries on macOS, Windows, and Linux. It handles platform-specific differences automatically, making your code more portable.\n\nIt also provides a COM module (`libloader.com`), making it easier to load COM DLLs on Windows.\n\n## Installation\n\n```bash\npip install libloader\n```\n\n## Usage\n\n### Loading Shared Libraries\n\n```python\nfrom libloader import load_library\n\n# Load a library with default paths\nmy_lib = load_library(\"mylibrary\")\n\n# Load a library with custom paths for 32-bit and 64-bit versions\nmy_lib = load_library(\"mylibrary\", x86_path=\"./lib/x86\", x64_path=\"./lib/x64\")\n\n# Load a library with ARM64 support (M1+ Macs, ARM servers)\nmy_lib = load_library(\"mylibrary\", x64_path=\"./lib/x64\", arm64_path=\"./lib/arm64\")\n\n# Call a function from the library\nresult = my_lib.some_function(arg1, arg2)\n```\n\n### Working with COM Objects (Windows)\n\n```python\nfrom libloader.com import load_com\n\n# Load a COM object\nexcel = load_com(\"Excel.Application\")\n\n# Try multiple COM objects until one succeeds\nspeech = load_com(\"SAPI.SpVoice\", \"SpeechLib.SpVoice\")\n```\n\n## API Reference\n\n### libloader\n\n* `load_library(library, x86_path=\".\", x64_path=\".\", arm64_path=None, *args, **kwargs)`: Load a library with the given name. If `arm64_path` is not specified on ARM64 systems, falls back to `x64_path`.\n* `find_library_path(libname, x86_path=\".\", x64_path=\".\", arm64_path=None)`: Finds the path of the given library.\n* `get_functype()`: Returns the ctypes functype for the current platform.\n* `get_library_extension()`: Get the extension of the library for your current platform.\n* `_do_load(file, *args, **kwargs)`: Attempts to actually load the library. Used internally by load_library.\n\n### libloader.com\n\n* `load_com(*names)`: Load a COM object. If you pass multiple names, it will try each one until one works.\n* `prepare_gencache()`: Prepare the gencache for COM. Called automatically by load_com().\n\n## Platform Support\n\nLibloader automatically handles the differences between platforms:\n\n* Windows: `.dll` files\n* macOS: `.dylib` files\n* Linux: `.so` files\n\n### Architecture Support\n\nLibloader automatically detects the system architecture and loads the appropriate library:\n\n* **x86** (32-bit): Uses `x86_path`\n* **x86_64/AMD64** (64-bit Intel/AMD): Uses `x64_path`\n* **ARM64/aarch64** (M1+ Macs, ARM servers): Uses `arm64_path` if specified, otherwise falls back to `x64_path`\n\nThis means existing code works on Apple Silicon Macs without modification, while allowing you to provide architecture-specific binaries when needed.\n\n## License\n\nSee the LICENSE file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccessibleapps%2Flibloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faccessibleapps%2Flibloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccessibleapps%2Flibloader/lists"}