pydynamiclib


Namepydynamiclib JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/A-Boring-Square/PyDLL
SummaryA Python package for packaging and importing compiled .pyc files into dll like packages
upload_time2024-09-08 01:14:56
maintainerNone
docs_urlNone
authorA-Boring-Square
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            PyDLL
=====

PyDLL is a Python package for compiling and packaging Python code and its dependencies into a single distributable archive. This package supports dynamically loading Python modules from those packages.

Table of Contents
-----------------

*   [Installation](#installation)
*   [Usage](#usage)
*   [License](#license)

Installation
------------

To install the `pydll` package, use the command:

    pip install pydynamiclib

or

    pip3 install pydynamiclib

Usage
-----

### Compiling and Packaging

To compile and package your Python source code into a `.pydll` file, use the following command:

    pydll /path/to/your/source_directory output_package.pydll

This command will:

1.  Compile all `.py` files in the specified source directory.
2.  Create a ZIP archive containing the compiled files and required dependencies.
NOTE: when packaging a library make all the import statments reroute to the Lib dir

### Loading a PyDLL Package

You can load a PyDLL package using the `LoadPyDLL` function:

    import pydll
    
    # Load the default __init__.py module
    module = pydll.LoadPyDLL('path_to_your_package.pydll')
    
    # Load a specific module (e.g., 'QtWidget')
    module = pydll.LoadPyDLL('path_to_your_package.pydll', specific_module='QtWidget')


### Example Usage

After installing the `pydll` package, you can run it from the command line:

    pydll /path/to/your/source_directory output_package.pydll

This will compile the Python files and package them into a `.pydll` archive.

License
-------

This project is licensed under the MIT License - see the `LICENSE` file for details.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/A-Boring-Square/PyDLL",
    "name": "pydynamiclib",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "A-Boring-Square",
    "author_email": "aboringsquarel@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/bc/0a/38c3327ac5997ce78bcf2c77aaf8d861e4b21935ae0e794b982d203cc05a/pydynamiclib-0.1.3.tar.gz",
    "platform": null,
    "description": "PyDLL\r\n=====\r\n\r\nPyDLL is a Python package for compiling and packaging Python code and its dependencies into a single distributable archive. This package supports dynamically loading Python modules from those packages.\r\n\r\nTable of Contents\r\n-----------------\r\n\r\n*   [Installation](#installation)\r\n*   [Usage](#usage)\r\n*   [License](#license)\r\n\r\nInstallation\r\n------------\r\n\r\nTo install the `pydll` package, use the command:\r\n\r\n    pip install pydynamiclib\r\n\r\nor\r\n\r\n    pip3 install pydynamiclib\r\n\r\nUsage\r\n-----\r\n\r\n### Compiling and Packaging\r\n\r\nTo compile and package your Python source code into a `.pydll` file, use the following command:\r\n\r\n    pydll /path/to/your/source_directory output_package.pydll\r\n\r\nThis command will:\r\n\r\n1.  Compile all `.py` files in the specified source directory.\r\n2.  Create a ZIP archive containing the compiled files and required dependencies.\r\nNOTE: when packaging a library make all the import statments reroute to the Lib dir\r\n\r\n### Loading a PyDLL Package\r\n\r\nYou can load a PyDLL package using the `LoadPyDLL` function:\r\n\r\n    import pydll\r\n    \r\n    # Load the default __init__.py module\r\n    module = pydll.LoadPyDLL('path_to_your_package.pydll')\r\n    \r\n    # Load a specific module (e.g., 'QtWidget')\r\n    module = pydll.LoadPyDLL('path_to_your_package.pydll', specific_module='QtWidget')\r\n\r\n\r\n### Example Usage\r\n\r\nAfter installing the `pydll` package, you can run it from the command line:\r\n\r\n    pydll /path/to/your/source_directory output_package.pydll\r\n\r\nThis will compile the Python files and package them into a `.pydll` archive.\r\n\r\nLicense\r\n-------\r\n\r\nThis project is licensed under the MIT License - see the `LICENSE` file for details.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python package for packaging and importing compiled .pyc files into dll like packages",
    "version": "0.1.3",
    "project_urls": {
        "Homepage": "https://github.com/A-Boring-Square/PyDLL"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bc0a38c3327ac5997ce78bcf2c77aaf8d861e4b21935ae0e794b982d203cc05a",
                "md5": "b70d482e8cfcba8a4e1adeb08ce0073e",
                "sha256": "11739fcca5e24b6bde7d5b3e9015073f5d48f5402e33ab008db0df006511bb61"
            },
            "downloads": -1,
            "filename": "pydynamiclib-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "b70d482e8cfcba8a4e1adeb08ce0073e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4731,
            "upload_time": "2024-09-08T01:14:56",
            "upload_time_iso_8601": "2024-09-08T01:14:56.611382Z",
            "url": "https://files.pythonhosted.org/packages/bc/0a/38c3327ac5997ce78bcf2c77aaf8d861e4b21935ae0e794b982d203cc05a/pydynamiclib-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-08 01:14:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "A-Boring-Square",
    "github_project": "PyDLL",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pydynamiclib"
}
        
Elapsed time: 0.31180s