pylongver


Namepylongver JSON
Version 0.2.5 PyPI version JSON
download
home_pageNone
SummaryA python module to print the verbose version of your code
upload_time2024-09-20 20:33:19
maintainerNone
docs_urlNone
authork-katfish
requires_python>=3.6
license# License Copyright (c) 2024 Kyle Ketchell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords version verbose pylongver system info debug argparse
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PyLongVer

PyLongVer is a utility to print a long version message about your python code.

This prints the version of the package in a long format with extra verbose
details about the Python interpreter, system, OpenSSL, and all imported modules
whose version information is available.

This package provides a simple interface for printing the version information
by adding an argument to the argparse parser. The package also provides a
function to print the version information directly.

## Sample output

```python
>>> from pylongver import print_version_info
>>> print_version_info("My Package 1.0.0")
My Package 1.0.0
Python Version: 3.12.6 (main, Sep  8 2024, 13:18:56) [GCC 14.2.1 20240805]
System: Linux
Platform: Linux-6.10.10-arch1-1-x86_64-with-glibc2.40
Architecture: ('64bit', 'ELF')
OpenSSL Version: OpenSSL 3.3.2 3 Sep 2024

Imported Modules:
argparse: 1.1
csv: 1.0
platform: 1.0.8
pylongver: 0.1.0
re: 2.2.1
zlib: 1.0
```

## Usage

### Using the ArgumentParser

```python
import argparse
from pylongver import LongVersion

parser = argparse.ArgumentParser()
parser.add_argument("--version", action=LongVersion, version="My Package 1.0.0")
args = parser.parse_args()
```

### Using the print_version_info function

```python
from pylongver import print_version_info

print_version_info()
```

## About

### Authors

Kyle Ketchell, creator and maintainer

### License

MIT


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pylongver",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "version, verbose, pylongver, system info, debug, argparse",
    "author": "k-katfish",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/ce/e4/748a2d181fa0bd8c8f4c33186d8d81122fd1a504f42748624c5343f53d1e/pylongver-0.2.5.tar.gz",
    "platform": null,
    "description": "# PyLongVer\n\nPyLongVer is a utility to print a long version message about your python code.\n\nThis prints the version of the package in a long format with extra verbose\ndetails about the Python interpreter, system, OpenSSL, and all imported modules\nwhose version information is available.\n\nThis package provides a simple interface for printing the version information\nby adding an argument to the argparse parser. The package also provides a\nfunction to print the version information directly.\n\n## Sample output\n\n```python\n>>> from pylongver import print_version_info\n>>> print_version_info(\"My Package 1.0.0\")\nMy Package 1.0.0\nPython Version: 3.12.6 (main, Sep  8 2024, 13:18:56) [GCC 14.2.1 20240805]\nSystem: Linux\nPlatform: Linux-6.10.10-arch1-1-x86_64-with-glibc2.40\nArchitecture: ('64bit', 'ELF')\nOpenSSL Version: OpenSSL 3.3.2 3 Sep 2024\n\nImported Modules:\nargparse: 1.1\ncsv: 1.0\nplatform: 1.0.8\npylongver: 0.1.0\nre: 2.2.1\nzlib: 1.0\n```\n\n## Usage\n\n### Using the ArgumentParser\n\n```python\nimport argparse\nfrom pylongver import LongVersion\n\nparser = argparse.ArgumentParser()\nparser.add_argument(\"--version\", action=LongVersion, version=\"My Package 1.0.0\")\nargs = parser.parse_args()\n```\n\n### Using the print_version_info function\n\n```python\nfrom pylongver import print_version_info\n\nprint_version_info()\n```\n\n## About\n\n### Authors\n\nKyle Ketchell, creator and maintainer\n\n### License\n\nMIT\n\n",
    "bugtrack_url": null,
    "license": "# License  Copyright (c) 2024 Kyle Ketchell  Permission is hereby granted, free of charge,  to any person obtaining a copy of this software  and associated documentation files  (the \u201cSoftware\u201d),  to deal in the Software  without restriction,  including  without limitation  the rights to use,  copy,  modify,  merge, publish, distribute, sublicense, and/or sell copies of the Software,  and to permit persons to whom the Software  is furnished to do so, subject to the following conditions:  The above copyright notice  and  this permission notice shall be included in all copies or substantial portions of the Software.  THE  SOFTWARE  IS  PROVIDED  \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND,  EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT  LIMITED  TO  THE  WARRANTIES  OF MERCHANTABILITY, FITNESS  FOR A  PARTICULAR PURPOSE  AND NONINFRINGEMENT.  IN NO EVENT  SHALL THE AUTHORS  OR  COPYRIGHT  HOLDERS  BE  LIABLE  FOR  ANY  CLAIM,  DAMAGES  OR OTHER LIABILITY,  WHETHER  IN  AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF  OR  IN CONNECTION WITH THE SOFTWARE  OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A python module to print the verbose version of your code",
    "version": "0.2.5",
    "project_urls": {
        "Homepage": "https://github.com/k-katfish/pylongver",
        "Issues": "https://github.com/k-katfish/pylongver/issues",
        "Source": "https://github.com/k-katfish/pylongver"
    },
    "split_keywords": [
        "version",
        " verbose",
        " pylongver",
        " system info",
        " debug",
        " argparse"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "790347b90ca6ee10ca7af84b8237653f1af1df7e4009db5bcdde4d45838a3199",
                "md5": "239ace779eae7ce5bcd39a1767b7a682",
                "sha256": "c918c193a3031618186862a1de93afbaf670ca2554544d4551e262450695587f"
            },
            "downloads": -1,
            "filename": "pylongver-0.2.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "239ace779eae7ce5bcd39a1767b7a682",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 5505,
            "upload_time": "2024-09-20T20:33:17",
            "upload_time_iso_8601": "2024-09-20T20:33:17.692277Z",
            "url": "https://files.pythonhosted.org/packages/79/03/47b90ca6ee10ca7af84b8237653f1af1df7e4009db5bcdde4d45838a3199/pylongver-0.2.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cee4748a2d181fa0bd8c8f4c33186d8d81122fd1a504f42748624c5343f53d1e",
                "md5": "4c389059829051b175eeefab9f1bc7bc",
                "sha256": "bbc6d673bcc8a5b11a584ee2499fb214b16a98056c7c633d478c85b2be681f57"
            },
            "downloads": -1,
            "filename": "pylongver-0.2.5.tar.gz",
            "has_sig": false,
            "md5_digest": "4c389059829051b175eeefab9f1bc7bc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4300,
            "upload_time": "2024-09-20T20:33:19",
            "upload_time_iso_8601": "2024-09-20T20:33:19.149073Z",
            "url": "https://files.pythonhosted.org/packages/ce/e4/748a2d181fa0bd8c8f4c33186d8d81122fd1a504f42748624c5343f53d1e/pylongver-0.2.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-20 20:33:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "k-katfish",
    "github_project": "pylongver",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pylongver"
}
        
Elapsed time: 0.35483s