netbox-better-templates


Namenetbox-better-templates JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/radin-system/netbox-better-templates
SummaryAdds some functionality to netbox templates and config render.
upload_time2025-08-10 13:54:59
maintainerNone
docs_urlNone
authorRadin System
requires_python>=3.11
licenseNone
keywords python netbox provisioning template jinja jinja2
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Netbox Better Templates Plugin
Adds some functionality to netbox templates and config render.
The plugin uses `Monkey-patching` and injects extensions into the netbox render method.

## Installation

1. Install plugin with pip

```bash
cd /opt/netbox
source venv/bin/activate
pip install netbox_better_templates
```

2. Add `netbox_better_templates` to `local_requirements.txt` file

3. Edit the `PLUGINS` in `configuration.py`
```python
PLUGINS = [
    'netbox_better_templates'
]
```


## Added Functions

- **datetime**: adds datetime to config templates.
```jinja3
{{ datetime.now() }}
```

- **now**: standard now function of datetime.
```jinja3
{{ now() }}
```

contributors are welcome. fork for any changes you want to make

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/radin-system/netbox-better-templates",
    "name": "netbox-better-templates",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "python, netbox, provisioning, template, jinja, jinja2",
    "author": "Radin System",
    "author_email": "Radin-System <technical@rsto.ir>",
    "download_url": "https://files.pythonhosted.org/packages/55/01/c6a4f2058738f7eb5e729920d2157fc3bde5156e2ea21dd6b282a2f239bc/netbox_better_templates-1.0.2.tar.gz",
    "platform": null,
    "description": "# Netbox Better Templates Plugin\nAdds some functionality to netbox templates and config render.\nThe plugin uses `Monkey-patching` and injects extensions into the netbox render method.\n\n## Installation\n\n1. Install plugin with pip\n\n```bash\ncd /opt/netbox\nsource venv/bin/activate\npip install netbox_better_templates\n```\n\n2. Add `netbox_better_templates` to `local_requirements.txt` file\n\n3. Edit the `PLUGINS` in `configuration.py`\n```python\nPLUGINS = [\n    'netbox_better_templates'\n]\n```\n\n\n## Added Functions\n\n- **datetime**: adds datetime to config templates.\n```jinja3\n{{ datetime.now() }}\n```\n\n- **now**: standard now function of datetime.\n```jinja3\n{{ now() }}\n```\n\ncontributors are welcome. fork for any changes you want to make\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Adds some functionality to netbox templates and config render.",
    "version": "1.0.2",
    "project_urls": {
        "BugTracker": "https://github.com/Radin-System/netbox-better-templates/issues",
        "Homepage": "https://github.com/Radin-System/netbox-better-templates"
    },
    "split_keywords": [
        "python",
        " netbox",
        " provisioning",
        " template",
        " jinja",
        " jinja2"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4b8b67f9886ddac72572d45fbf99d1708b2871f121c75711db5445a1ea39213c",
                "md5": "810d0dd983189ff83fa842e84c99f2c4",
                "sha256": "4bf58fe555ad27b46d05aae4d988d970a965df443b8b5b7d04a370c6b57ddb9b"
            },
            "downloads": -1,
            "filename": "netbox_better_templates-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "810d0dd983189ff83fa842e84c99f2c4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 3585,
            "upload_time": "2025-08-10T13:54:58",
            "upload_time_iso_8601": "2025-08-10T13:54:58.079863Z",
            "url": "https://files.pythonhosted.org/packages/4b/8b/67f9886ddac72572d45fbf99d1708b2871f121c75711db5445a1ea39213c/netbox_better_templates-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5501c6a4f2058738f7eb5e729920d2157fc3bde5156e2ea21dd6b282a2f239bc",
                "md5": "8a367c77c6ea670a4987db9c73039d34",
                "sha256": "6b99e5e8feae48dc9afa0f94d8f971e076fe71003b1785dc886ba0a9a8975701"
            },
            "downloads": -1,
            "filename": "netbox_better_templates-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "8a367c77c6ea670a4987db9c73039d34",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 2724,
            "upload_time": "2025-08-10T13:54:59",
            "upload_time_iso_8601": "2025-08-10T13:54:59.466112Z",
            "url": "https://files.pythonhosted.org/packages/55/01/c6a4f2058738f7eb5e729920d2157fc3bde5156e2ea21dd6b282a2f239bc/netbox_better_templates-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-10 13:54:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "radin-system",
    "github_project": "netbox-better-templates",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "netbox-better-templates"
}
        
Elapsed time: 0.99893s