declback


Namedeclback JSON
Version 1.1.0 PyPI version JSON
download
home_page
SummaryDeclarative backend framework
upload_time2023-03-22 06:47:45
maintainer
docs_urlNone
author
requires_python>=3.10
licenseCopyright (c) 2023 Karim Kamaletdinov 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. 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 feed reader tutorial
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Declback
## A declarative python backend framework

## Quickstart with pure Declback
1. Install the library via pip
```bash
pip install declback
```
2. Import it
```python
from declback import Trigger, chain
```
3. Create a functions to run inside chain
```python
def function_one():
    return "hello"
def function_two(message):
    return message + " world"
def function_three(full_message):
    print(full_message)
```
4. Create a Trigger instance
```python
trigger = Trigger()
```
5. Build a chain from your functions
```python
chain(trigger, function_one, function_two, function_three)
```
5. Run your trigger
```python
# run your trigger when you want to run your chain
trigger.run()
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "declback",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "feed,reader,tutorial",
    "author": "",
    "author_email": "Kamaletdinov Karim <450906k@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/32/f4/1e09f17b2a6c38e2ac494eafa78a49e9bc06510fb6bf8e6ddae82a00eace/declback-1.1.0.tar.gz",
    "platform": null,
    "description": "# Declback\n## A declarative python backend framework\n\n## Quickstart with pure Declback\n1. Install the library via pip\n```bash\npip install declback\n```\n2. Import it\n```python\nfrom declback import Trigger, chain\n```\n3. Create a functions to run inside chain\n```python\ndef function_one():\n    return \"hello\"\ndef function_two(message):\n    return message + \" world\"\ndef function_three(full_message):\n    print(full_message)\n```\n4. Create a Trigger instance\n```python\ntrigger = Trigger()\n```\n5. Build a chain from your functions\n```python\nchain(trigger, function_one, function_two, function_three)\n```\n5. Run your trigger\n```python\n# run your trigger when you want to run your chain\ntrigger.run()\n```\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2023 Karim Kamaletdinov  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.  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": "Declarative backend framework",
    "version": "1.1.0",
    "split_keywords": [
        "feed",
        "reader",
        "tutorial"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "685e1c986f05dea7d9651bbb56f4073424eb57bbf432cb2abaa5cd84453ffa34",
                "md5": "7c321b47e4fc26cacbc6dd8f5786104d",
                "sha256": "cc43a2a9b306a6cb1c49c3c9389e1cb8254d77c7974783b7d6d00e71eac1d7ec"
            },
            "downloads": -1,
            "filename": "declback-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7c321b47e4fc26cacbc6dd8f5786104d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 3329,
            "upload_time": "2023-03-22T06:47:44",
            "upload_time_iso_8601": "2023-03-22T06:47:44.444976Z",
            "url": "https://files.pythonhosted.org/packages/68/5e/1c986f05dea7d9651bbb56f4073424eb57bbf432cb2abaa5cd84453ffa34/declback-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "32f41e09f17b2a6c38e2ac494eafa78a49e9bc06510fb6bf8e6ddae82a00eace",
                "md5": "eae7244730a60d3b667051ec11a51587",
                "sha256": "8205dc945ed0676a06a285e28b73706b965a8355d0dce8f9b4ae78ceb232fee1"
            },
            "downloads": -1,
            "filename": "declback-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "eae7244730a60d3b667051ec11a51587",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 3029,
            "upload_time": "2023-03-22T06:47:45",
            "upload_time_iso_8601": "2023-03-22T06:47:45.538324Z",
            "url": "https://files.pythonhosted.org/packages/32/f4/1e09f17b2a6c38e2ac494eafa78a49e9bc06510fb6bf8e6ddae82a00eace/declback-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-22 06:47:45",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "declback"
}
        
Elapsed time: 0.07804s