wp-utils


Namewp-utils JSON
Version 0.2.10 PyPI version JSON
download
home_pagehttps://github.com/wpumacay/tiny_utils
SummaryA small C/C++ helper library
upload_time2023-12-23 21:24:36
maintainer
docs_urlNone
authorWilbert Santos Pumacay Huallpa
requires_python>=3.7
licenseMIT License
keywords c c++ utils
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Loco-Utils

A small set of C/C++ helper functions and macros that I used alongside various
projects related to the `Loco` framework I'm currently developing.

## Build Status

| Build   | Status
| ------- | ------------------------------
| Ubuntu  | [![ci-linux][0]][1]       |
| Windows | [![ci-windows][2]][3]     |
| MacOS   | [![ci-macos][4]][5]       |

## How to Use

This is a `CMake` based project, and all dependencies are managed by this tool
itself (i.e., we make use of `FetchContent`), so no additional dependencies have
to be installed. So, there are two ways you can use this project alongside yours:

* Include via `add_subdirectory`: This is the quickest way to integrate the
  project alongside yours. You'll have to download the source code to some folder
  either by cloning the repo, or by adding it as a `git-submodule`. Either way,
  let's say you placed the source into `SOME_FOLDER/loco_utils`. Then you'll just
  have to do the following in some part of your CMake setup:

  ```cmake
    # On some part of your CMake configuration rules
    add_subdirectory(SOME_FOLDER/loco_utils)
  ```

* Get it via `FetchContent`: This is an option that doesn't require for you to
  directly clone or link the repo. You can use `FetchContent` and `FetchContent_MakeAvailable`
  to add this project directly into your CMake build workflow, as shown below:

  ```cmake
    # Set where to place source-code and where to place binaries/logs
    set(SOME_SRC_PATH "Some-source-path-here")
    set(SOME_BUILD_PATH "Some-build-path-here")
    # Define some extra cmake-args to pass to this project (loco_utils)
    set(SOME_CMAKE_ARGS "-DLOCOUTILS_BUILD_EXAMPLES=OFF -DLOCOUTILS_BUILD_DOCS=OFF")
    # On some part where you setup third-party dependencies
    FetchContent(loco_utils
        GIT_REPOSITORY "https://github.com/wpumacay/loco_utils.git"
        GIT_PROGRESS TRUE
        USES_TERMINAL_DOWNLOAD TRUE
        PREFIX "${SOME_SRC_PATH}/loco_utils"
        DOWNLOAD_DIR "${SOME_SRC_PATH}/loco_utils"
        SOURCE_DIR "${SOME_SRC_PATH}/loco_utils/source"
        BINARY_DIR "${SOME_BUILD_PATH}/loco_utils/build"
        STAMP_DIR "${SOME_BUILD_PATH}/loco_utils/stamp"
        TMP_DIR "${SOME_BUILD_PATH}/loco_utils/tmp"
        CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release
                   -DCMAKE_GENERATOR=${CMAKE_GENERATOR}
                   -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
                   -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
                   -DCMAKE_INSTALL_INCLUDEDIR=${CMAKE_INSTALL_INCLUDEDIR}
                   -DCMAKE_INSTALL_LIBDIR=${CMAKE_INSTALL_LIBDIR}
                   -DCMAKE_INSTALL_DOCDIR=${CMAKE_INSTALL_DOCDIR}
                   -DCMAKE_INSTALL_BINDIR=${CMAKE_INSTALL_BINDIR}
                   -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}
                   ${SOME_CMAKE_ARGS}
        BUILD_ALWAYS OFF)
  ```

* Install and use `find_package`: This last option is not available yet, but once
  we add the install rules for the CMake project, you'll be able to just **install**
  the library into your system, import it using **find_package**, and **linking**
  using the exposed `LocoUtilsCpp` target, as shown below:

  * *Installing the project*

  ```shell
    mkdir build
    cmake -S . -B build
    cmake --build build
    cmake --install build
  ```

  * *Including using `find_package`*

  ```cmake
    # Locate the installed project using find_package()
    find_package(LocoUtils REQUIRED)
  ```

## Install the Python bindings

There are some Python bindings (generated using Pybind11), which you can install
using the provided `setup.py` script. Just run either `python setup.py install`,
or `pip install --verbose .` (add verbose just to check if everything went well)

```shell
  # Install python bindings
  # Option-1
  python setup.py install
  # Option-2
  pip install --verbose .
```

---

[0]: <https://github.com/wpumacay/loco_utils/actions/workflows/ci-linux.yml/badge.svg> (ci-linux-badge)
[1]: <https://github.com/wpumacay/loco_utils/actions/workflows/ci-linux.yml> (ci-linux-status)
[2]: <https://github.com/wpumacay/loco_utils/actions/workflows/ci-windows.yml/badge.svg> (ci-windows-badge)
[3]: <https://github.com/wpumacay/loco_utils/actions/workflows/ci-windows.yml> (ci-windows-status)
[4]: <https://github.com/wpumacay/loco_utils/actions/workflows/ci-macos.yml/badge.svg> (ci-macos-badge)
[5]: <https://github.com/wpumacay/loco_utils/actions/workflows/ci-macos.yml> (ci-macos-status)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/wpumacay/tiny_utils",
    "name": "wp-utils",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "C C++ Utils",
    "author": "Wilbert Santos Pumacay Huallpa",
    "author_email": "wpumacay@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c2/92/d2076090a7b92f53e1faae3b73faa88636f6806a48857e8aa75c6e24ea00/wp-utils-0.2.10.tar.gz",
    "platform": null,
    "description": "# Loco-Utils\n\nA small set of C/C++ helper functions and macros that I used alongside various\nprojects related to the `Loco` framework I'm currently developing.\n\n## Build Status\n\n| Build   | Status\n| ------- | ------------------------------\n| Ubuntu  | [![ci-linux][0]][1]       |\n| Windows | [![ci-windows][2]][3]     |\n| MacOS   | [![ci-macos][4]][5]       |\n\n## How to Use\n\nThis is a `CMake` based project, and all dependencies are managed by this tool\nitself (i.e., we make use of `FetchContent`), so no additional dependencies have\nto be installed. So, there are two ways you can use this project alongside yours:\n\n* Include via `add_subdirectory`: This is the quickest way to integrate the\n  project alongside yours. You'll have to download the source code to some folder\n  either by cloning the repo, or by adding it as a `git-submodule`. Either way,\n  let's say you placed the source into `SOME_FOLDER/loco_utils`. Then you'll just\n  have to do the following in some part of your CMake setup:\n\n  ```cmake\n    # On some part of your CMake configuration rules\n    add_subdirectory(SOME_FOLDER/loco_utils)\n  ```\n\n* Get it via `FetchContent`: This is an option that doesn't require for you to\n  directly clone or link the repo. You can use `FetchContent` and `FetchContent_MakeAvailable`\n  to add this project directly into your CMake build workflow, as shown below:\n\n  ```cmake\n    # Set where to place source-code and where to place binaries/logs\n    set(SOME_SRC_PATH \"Some-source-path-here\")\n    set(SOME_BUILD_PATH \"Some-build-path-here\")\n    # Define some extra cmake-args to pass to this project (loco_utils)\n    set(SOME_CMAKE_ARGS \"-DLOCOUTILS_BUILD_EXAMPLES=OFF -DLOCOUTILS_BUILD_DOCS=OFF\")\n    # On some part where you setup third-party dependencies\n    FetchContent(loco_utils\n        GIT_REPOSITORY \"https://github.com/wpumacay/loco_utils.git\"\n        GIT_PROGRESS TRUE\n        USES_TERMINAL_DOWNLOAD TRUE\n        PREFIX \"${SOME_SRC_PATH}/loco_utils\"\n        DOWNLOAD_DIR \"${SOME_SRC_PATH}/loco_utils\"\n        SOURCE_DIR \"${SOME_SRC_PATH}/loco_utils/source\"\n        BINARY_DIR \"${SOME_BUILD_PATH}/loco_utils/build\"\n        STAMP_DIR \"${SOME_BUILD_PATH}/loco_utils/stamp\"\n        TMP_DIR \"${SOME_BUILD_PATH}/loco_utils/tmp\"\n        CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release\n                   -DCMAKE_GENERATOR=${CMAKE_GENERATOR}\n                   -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}\n                   -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}\n                   -DCMAKE_INSTALL_INCLUDEDIR=${CMAKE_INSTALL_INCLUDEDIR}\n                   -DCMAKE_INSTALL_LIBDIR=${CMAKE_INSTALL_LIBDIR}\n                   -DCMAKE_INSTALL_DOCDIR=${CMAKE_INSTALL_DOCDIR}\n                   -DCMAKE_INSTALL_BINDIR=${CMAKE_INSTALL_BINDIR}\n                   -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}\n                   ${SOME_CMAKE_ARGS}\n        BUILD_ALWAYS OFF)\n  ```\n\n* Install and use `find_package`: This last option is not available yet, but once\n  we add the install rules for the CMake project, you'll be able to just **install**\n  the library into your system, import it using **find_package**, and **linking**\n  using the exposed `LocoUtilsCpp` target, as shown below:\n\n  * *Installing the project*\n\n  ```shell\n    mkdir build\n    cmake -S . -B build\n    cmake --build build\n    cmake --install build\n  ```\n\n  * *Including using `find_package`*\n\n  ```cmake\n    # Locate the installed project using find_package()\n    find_package(LocoUtils REQUIRED)\n  ```\n\n## Install the Python bindings\n\nThere are some Python bindings (generated using Pybind11), which you can install\nusing the provided `setup.py` script. Just run either `python setup.py install`,\nor `pip install --verbose .` (add verbose just to check if everything went well)\n\n```shell\n  # Install python bindings\n  # Option-1\n  python setup.py install\n  # Option-2\n  pip install --verbose .\n```\n\n---\n\n[0]: <https://github.com/wpumacay/loco_utils/actions/workflows/ci-linux.yml/badge.svg> (ci-linux-badge)\n[1]: <https://github.com/wpumacay/loco_utils/actions/workflows/ci-linux.yml> (ci-linux-status)\n[2]: <https://github.com/wpumacay/loco_utils/actions/workflows/ci-windows.yml/badge.svg> (ci-windows-badge)\n[3]: <https://github.com/wpumacay/loco_utils/actions/workflows/ci-windows.yml> (ci-windows-status)\n[4]: <https://github.com/wpumacay/loco_utils/actions/workflows/ci-macos.yml/badge.svg> (ci-macos-badge)\n[5]: <https://github.com/wpumacay/loco_utils/actions/workflows/ci-macos.yml> (ci-macos-status)\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A small C/C++ helper library",
    "version": "0.2.10",
    "project_urls": {
        "Homepage": "https://github.com/wpumacay/tiny_utils"
    },
    "split_keywords": [
        "c",
        "c++",
        "utils"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "efa72eea772b17ea229450e6c3ca774163c2190cba342504aae24c13db0232e6",
                "md5": "18d3ec6affeb009ee70adec4d9451c70",
                "sha256": "fa3e8d34a0366ea692d046f74bc38501ee589c45f84e4dce489cb3c9e86c7a3f"
            },
            "downloads": -1,
            "filename": "wp_utils-0.2.10-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "18d3ec6affeb009ee70adec4d9451c70",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.7",
            "size": 1050465,
            "upload_time": "2023-12-23T21:26:27",
            "upload_time_iso_8601": "2023-12-23T21:26:27.088405Z",
            "url": "https://files.pythonhosted.org/packages/ef/a7/2eea772b17ea229450e6c3ca774163c2190cba342504aae24c13db0232e6/wp_utils-0.2.10-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "50ed3ba59e35d970a2492a9aaf36152e041cfa156b928ab7783555ebca47fe94",
                "md5": "b11ea45d11f04e1971747935c1b40d10",
                "sha256": "278e80d996503a507e9c201e028e74a515f9e46f34f4351dae257642f6d7b3a2"
            },
            "downloads": -1,
            "filename": "wp_utils-0.2.10-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "b11ea45d11f04e1971747935c1b40d10",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.7",
            "size": 1051962,
            "upload_time": "2023-12-23T21:26:24",
            "upload_time_iso_8601": "2023-12-23T21:26:24.041588Z",
            "url": "https://files.pythonhosted.org/packages/50/ed/3ba59e35d970a2492a9aaf36152e041cfa156b928ab7783555ebca47fe94/wp_utils-0.2.10-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e9b8c049bee0aaadd028d8e2462d63aa29174009f14de459ab394afc82e46704",
                "md5": "d83078acdb49a2fc32e9c463b3917e0c",
                "sha256": "fa8239df1b33c67635d82686c254405879f9072cb7527d99bc50e106930fb6ac"
            },
            "downloads": -1,
            "filename": "wp_utils-0.2.10-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "d83078acdb49a2fc32e9c463b3917e0c",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.7",
            "size": 1050917,
            "upload_time": "2023-12-23T21:26:28",
            "upload_time_iso_8601": "2023-12-23T21:26:28.509300Z",
            "url": "https://files.pythonhosted.org/packages/e9/b8/c049bee0aaadd028d8e2462d63aa29174009f14de459ab394afc82e46704/wp_utils-0.2.10-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bf8086b542a569c79359af77a091af40fb9b329c0bfbb2a692b5d87be06dcdaa",
                "md5": "4fffcaecf4a30d0a84199fcdfaad6ba7",
                "sha256": "c024c5d2ff0d5a1d39da039515c1938e23eca161b8fda9945910147c57973822"
            },
            "downloads": -1,
            "filename": "wp_utils-0.2.10-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "4fffcaecf4a30d0a84199fcdfaad6ba7",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.7",
            "size": 1050289,
            "upload_time": "2023-12-23T21:26:27",
            "upload_time_iso_8601": "2023-12-23T21:26:27.192386Z",
            "url": "https://files.pythonhosted.org/packages/bf/80/86b542a569c79359af77a091af40fb9b329c0bfbb2a692b5d87be06dcdaa/wp_utils-0.2.10-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a737b5f89a029e80adb159fd284b91d37ed0db554bf78c9f211f1180cd6a3f46",
                "md5": "8af3dcaec3f912c4a43c6632ac787d29",
                "sha256": "9c9159038b16a6d2ecde702230ea3f2907e3918968eb62f90f1e863e9c96393b"
            },
            "downloads": -1,
            "filename": "wp_utils-0.2.10-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "8af3dcaec3f912c4a43c6632ac787d29",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.7",
            "size": 1050688,
            "upload_time": "2023-12-23T21:26:25",
            "upload_time_iso_8601": "2023-12-23T21:26:25.092009Z",
            "url": "https://files.pythonhosted.org/packages/a7/37/b5f89a029e80adb159fd284b91d37ed0db554bf78c9f211f1180cd6a3f46/wp_utils-0.2.10-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c292d2076090a7b92f53e1faae3b73faa88636f6806a48857e8aa75c6e24ea00",
                "md5": "89dd08287553aeac1e0c94dc0f1dde04",
                "sha256": "a63007fd9bb87e2815e505b570375e9b7e6049e39cee349f8d6f6ca103c0aeb7"
            },
            "downloads": -1,
            "filename": "wp-utils-0.2.10.tar.gz",
            "has_sig": false,
            "md5_digest": "89dd08287553aeac1e0c94dc0f1dde04",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 29340,
            "upload_time": "2023-12-23T21:24:36",
            "upload_time_iso_8601": "2023-12-23T21:24:36.416070Z",
            "url": "https://files.pythonhosted.org/packages/c2/92/d2076090a7b92f53e1faae3b73faa88636f6806a48857e8aa75c6e24ea00/wp-utils-0.2.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-23 21:24:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wpumacay",
    "github_project": "tiny_utils",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "wp-utils"
}
        
Elapsed time: 0.37516s