dtPyAppFramework


NamedtPyAppFramework JSON
Version 1.1 PyPI version JSON
download
home_page
SummaryA Python library for common features in application development.
upload_time2024-03-05 11:24:25
maintainer
docs_urlNone
author
requires_python>=3.9
licenseMIT License Copyright (c) 2024 Digital-Thought 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 framework logging secrets settings
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # dtPyAppFramework

[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

**dtPyAppFramework** is a Python library designed to streamline the development of Python applications by providing common features and abstractions. It promotes good practices, modular design, and ease of use.

## Features

- **Singleton Management:** Simplify the use of singleton classes by automating initialisation with predefined parameters.
- **Settings and Configuration:** Manage application settings and configurations effortlessly.
- **Secrets Management:** Securely handle secrets and credentials using local or cloud-based stores like AWS Secrets Manager and Asure KeyVault.
- **Application Initialisation:** Quickly initialise your Python applications with the `AbstractApp` class, which takes care of common initialisation tasks.
- **Process Management:** Use the `ProcessManager` for efficient process handling in your applications.

## Installation

```bash
pip install dtPyAppFramework
```

## Getting Started
### AbstractApp Class ###
The **`AbstractApp`** class serves as a base class for creating Python applications. It handles common initialisation tasks and provides a structure for defining command-line arguments and the main application logic.


To create a simple Python application using dtPyAppFramework:
```python
from dtPyAppFramework.app import AbstractApp
from dtPyAppFramework import settings

import logging

class MyApplication(AbstractApp):

    def define_args(self, arg_parser):
        # Define your command-line arguments here
        return

    def main(self, args):
        logging.info("Running your code")
        ## Place you own code here that you wish to run
        
# Initialise and run the application
MyApplication(description="Simple App", version="1.0", short_name="simple_app",
          full_name="Simple Application", console_app=True).run()
```

## Features
Now lets take some time to go over the various features that makes `dtPyAppFramework` such a power library to base your 
Python projects of.

### Logging
`dtPyAppFramework` offers flexible logging capabilities, allowing you to configure and manage logs easily. <br>
In addition it offers some pretty cool logging capabilities straight out of the door which requires no setup from you.

### Configuration Files
Easily read and manage configuration settings from configurations files.<br>
Configuration files can be set for a specific user or for any user of the application.

### Secrets Management
Securely store and retrieve sensitive information with encryption and best practices.<br>
You can store secrets for a specific user or make secrets available to all users of the application.<br>
In addition, you can use the AWS Secrets Management seamlessly within the application alongside the in-built secrets store.

### Command Line Arguments
Effortlessly parse and manage command line arguments with support for defining options and accessing them in your code.

### Application Directories
Access common resource paths like user storage directories.

### Resource Manager
A robust Resource Manager, which is a singleton class named `ResourceManager`.

## License

This project is licensed under the [MIT License](https://opensource.org/licenses/MIT).

## Contact

If you have any questions, bug reports, or feature requests, feel free to [contact us](mailto:dev@digital-thought.org).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "dtPyAppFramework",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "Digital-Thought <dev@digital-thought.org>",
    "keywords": "framework,logging,secrets,settings",
    "author": "",
    "author_email": "Digital-Thought <dev@digital-thought.org>",
    "download_url": "https://files.pythonhosted.org/packages/9c/95/9cf34928e4873c94d1aeba9136e1574b596c43fcf57d7a634ac17a6c285a/dtPyAppFramework-1.1.tar.gz",
    "platform": null,
    "description": "# dtPyAppFramework\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n**dtPyAppFramework** is a Python library designed to streamline the development of Python applications by providing common features and abstractions. It promotes good practices, modular design, and ease of use.\n\n## Features\n\n- **Singleton Management:** Simplify the use of singleton classes by automating initialisation with predefined parameters.\n- **Settings and Configuration:** Manage application settings and configurations effortlessly.\n- **Secrets Management:** Securely handle secrets and credentials using local or cloud-based stores like AWS Secrets Manager and Asure KeyVault.\n- **Application Initialisation:** Quickly initialise your Python applications with the `AbstractApp` class, which takes care of common initialisation tasks.\n- **Process Management:** Use the `ProcessManager` for efficient process handling in your applications.\n\n## Installation\n\n```bash\npip install dtPyAppFramework\n```\n\n## Getting Started\n### AbstractApp Class ###\nThe **`AbstractApp`** class serves as a base class for creating Python applications. It handles common initialisation tasks and provides a structure for defining command-line arguments and the main application logic.\n\n\nTo create a simple Python application using dtPyAppFramework:\n```python\nfrom dtPyAppFramework.app import AbstractApp\nfrom dtPyAppFramework import settings\n\nimport logging\n\nclass MyApplication(AbstractApp):\n\n    def define_args(self, arg_parser):\n        # Define your command-line arguments here\n        return\n\n    def main(self, args):\n        logging.info(\"Running your code\")\n        ## Place you own code here that you wish to run\n        \n# Initialise and run the application\nMyApplication(description=\"Simple App\", version=\"1.0\", short_name=\"simple_app\",\n          full_name=\"Simple Application\", console_app=True).run()\n```\n\n## Features\nNow lets take some time to go over the various features that makes `dtPyAppFramework` such a power library to base your \nPython projects of.\n\n### Logging\n`dtPyAppFramework` offers flexible logging capabilities, allowing you to configure and manage logs easily. <br>\nIn addition it offers some pretty cool logging capabilities straight out of the door which requires no setup from you.\n\n### Configuration Files\nEasily read and manage configuration settings from configurations files.<br>\nConfiguration files can be set for a specific user or for any user of the application.\n\n### Secrets Management\nSecurely store and retrieve sensitive information with encryption and best practices.<br>\nYou can store secrets for a specific user or make secrets available to all users of the application.<br>\nIn addition, you can use the AWS Secrets Management seamlessly within the application alongside the in-built secrets store.\n\n### Command Line Arguments\nEffortlessly parse and manage command line arguments with support for defining options and accessing them in your code.\n\n### Application Directories\nAccess common resource paths like user storage directories.\n\n### Resource Manager\nA robust Resource Manager, which is a singleton class named `ResourceManager`.\n\n## License\n\nThis project is licensed under the [MIT License](https://opensource.org/licenses/MIT).\n\n## Contact\n\nIf you have any questions, bug reports, or feature requests, feel free to [contact us](mailto:dev@digital-thought.org).\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Digital-Thought  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.",
    "summary": "A Python library for common features in application development.",
    "version": "1.1",
    "project_urls": {
        "Documentation": "https://dtpyappframework.readthedocs.io",
        "Homepage": "https://github.com/Digital-Thought/dtPyAppFramework",
        "Repository": "https://github.com/Digital-Thought/dtPyAppFramework"
    },
    "split_keywords": [
        "framework",
        "logging",
        "secrets",
        "settings"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ec7bc6562d260692c40b3eee4b30182cb90c469730fcf37608101c27e6b26c2e",
                "md5": "f40d603b85f6a8d2f8b23046e1703b8a",
                "sha256": "875dfb1c1d87296aaffbcbda598609ef5c18a363b5e03ed2050b6570b1268d57"
            },
            "downloads": -1,
            "filename": "dtPyAppFramework-1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f40d603b85f6a8d2f8b23046e1703b8a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 26175,
            "upload_time": "2024-03-05T11:24:24",
            "upload_time_iso_8601": "2024-03-05T11:24:24.239454Z",
            "url": "https://files.pythonhosted.org/packages/ec/7b/c6562d260692c40b3eee4b30182cb90c469730fcf37608101c27e6b26c2e/dtPyAppFramework-1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9c959cf34928e4873c94d1aeba9136e1574b596c43fcf57d7a634ac17a6c285a",
                "md5": "dd4a0c38d8e696a647ec44c52bba1851",
                "sha256": "c1044b63ea627e920ec5ff8a8cab23f2c68010253ae39da033cc3ee29adc11f8"
            },
            "downloads": -1,
            "filename": "dtPyAppFramework-1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "dd4a0c38d8e696a647ec44c52bba1851",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 21322,
            "upload_time": "2024-03-05T11:24:25",
            "upload_time_iso_8601": "2024-03-05T11:24:25.876490Z",
            "url": "https://files.pythonhosted.org/packages/9c/95/9cf34928e4873c94d1aeba9136e1574b596c43fcf57d7a634ac17a6c285a/dtPyAppFramework-1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-05 11:24:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Digital-Thought",
    "github_project": "dtPyAppFramework",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "dtpyappframework"
}
        
Elapsed time: 0.21469s