Skip to content

Commit 2d31430

Browse files
committed
Added a basic README.
1 parent b57986f commit 2d31430

4 files changed

Lines changed: 23 additions & 1 deletion

File tree

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Libloader
2+
3+
Libloader provides a way to quickly and easily load shared libraries on macOS, Windows and Linux.
4+
5+
It also provides a COM module (libloader.com), making it easier to load COM DLLs on Windows.
6+
7+
## Functions.
8+
9+
### com
10+
11+
* prepare_gencache(): Prepare the gencache for COM. Not mandatory to be called by you, because load_com() calls it.
12+
* load_com(*names): Let's you load a COM object. If you pass more than one, if the first fails, it will try the next one, until one works, or it runs out of objects.
13+
14+
### libloader
15+
16+
* load_library(library, x86_path=".", x64_path=".", *args, **kwargs): Load a library with the given name.
17+
* _do_load(file, *args, **kwargs): Attempts to actually load the library. Used by load_library, although you can call it yourself.
18+
* find_library_path(libname, x86_path=".", x64_path="."): Finds the path of the given library.
19+
* get_functype(): Returns the ctypes functype of the given platform.
20+
* get_library_extension(): Get the extension of the library for your current platform.

libloader/libloader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os
55
import sys
66

7+
78
TYPES = {
89
"Linux": {
910
"loader": ctypes.CDLL,

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
license_files = LICENSE
33

44
[bdist_wheel]
5-
universal=1
5+
universal=1

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from setuptools import setup, find_packages
22
from libloader import __author__, __author_email__, __doc__, __version__
33

4+
45
setup(
56
name="libloader",
67
version=__version__,

0 commit comments

Comments
 (0)