netbox-sqlquery 0.1.1__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/PKG-INFO +8 -6
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/README.md +6 -4
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/__init__.py +2 -2
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/migrations/0001_initial.py +2 -2
- netbox_sqlquery-0.1.3/netbox_sqlquery/static/netbox_sqlquery/editor.js +679 -0
- netbox_sqlquery-0.1.3/netbox_sqlquery/static/netbox_sqlquery/icon.LICENSE +2 -0
- netbox_sqlquery-0.1.3/netbox_sqlquery/static/netbox_sqlquery/icon.svg +9 -0
- netbox_sqlquery-0.1.3/netbox_sqlquery/templates/netbox_sqlquery/query.html +327 -0
- netbox_sqlquery-0.1.3/netbox_sqlquery/templates/netbox_sqlquery/saved_query.html +54 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/urls.py +1 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/views.py +68 -3
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery.egg-info/PKG-INFO +8 -6
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery.egg-info/SOURCES.txt +5 -1
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/pyproject.toml +8 -2
- netbox_sqlquery-0.1.1/netbox_sqlquery/migrations/0003_tablepermission_groups_to_users_group.py +0 -16
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/LICENSE +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/abstract_schema.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/access.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/api/__init__.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/api/serializers.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/api/urls.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/api/views.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/filtersets.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/forms.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/management/__init__.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/management/commands/__init__.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/management/commands/sqlquery_create_views.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/migrations/0002_query_permissions.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/migrations/__init__.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/models.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/navigation.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/preferences.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/schema.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/tables.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/tests/__init__.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/tests/test_access.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/tests/test_api.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/tests/test_models.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery/tests/test_views.py +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery.egg-info/dependency_links.txt +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/netbox_sqlquery.egg-info/top_level.txt +0 -0
- {netbox_sqlquery-0.1.1 → netbox_sqlquery-0.1.3}/setup.cfg +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: netbox-sqlquery
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: SQL query interface for NetBox with syntax highlighting, abstract views, and role-based access control
|
|
5
5
|
Author-email: Ravi Pina <ravi@pina.org>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
7
7
|
Project-URL: Homepage, https://github.com/ravinald/netbox-sqlquery
|
|
8
8
|
Project-URL: Issues, https://github.com/ravinald/netbox-sqlquery/issues
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.12
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
12
|
Dynamic: license-file
|
|
@@ -73,12 +73,13 @@ See [COMPATIBILITY.md](COMPATIBILITY.md) for the full version matrix.
|
|
|
73
73
|
|
|
74
74
|
| NetBox version | Python versions |
|
|
75
75
|
|----------------|------------------------------|
|
|
76
|
-
| 4.
|
|
76
|
+
| 4.5+ | 3.12, 3.13, 3.14 |
|
|
77
77
|
|
|
78
78
|
## Installation
|
|
79
79
|
|
|
80
80
|
```bash
|
|
81
|
-
|
|
81
|
+
cd /path/to/netbox
|
|
82
|
+
venv/bin/pip install netbox-sqlquery
|
|
82
83
|
```
|
|
83
84
|
|
|
84
85
|
Add to your NetBox `configuration.py`:
|
|
@@ -103,13 +104,14 @@ PLUGINS_CONFIG = {
|
|
|
103
104
|
Run migrations:
|
|
104
105
|
|
|
105
106
|
```bash
|
|
106
|
-
|
|
107
|
+
cd /path/to/netbox
|
|
108
|
+
venv/bin/python netbox/manage.py migrate netbox_sqlquery
|
|
107
109
|
```
|
|
108
110
|
|
|
109
111
|
Collect static files:
|
|
110
112
|
|
|
111
113
|
```bash
|
|
112
|
-
python manage.py collectstatic --no-input
|
|
114
|
+
venv/bin/python netbox/manage.py collectstatic --no-input
|
|
113
115
|
```
|
|
114
116
|
|
|
115
117
|
For Docker-based installations, see [docs/docker.md](docs/docker.md).
|
|
@@ -60,12 +60,13 @@ See [COMPATIBILITY.md](COMPATIBILITY.md) for the full version matrix.
|
|
|
60
60
|
|
|
61
61
|
| NetBox version | Python versions |
|
|
62
62
|
|----------------|------------------------------|
|
|
63
|
-
| 4.
|
|
63
|
+
| 4.5+ | 3.12, 3.13, 3.14 |
|
|
64
64
|
|
|
65
65
|
## Installation
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
|
|
68
|
+
cd /path/to/netbox
|
|
69
|
+
venv/bin/pip install netbox-sqlquery
|
|
69
70
|
```
|
|
70
71
|
|
|
71
72
|
Add to your NetBox `configuration.py`:
|
|
@@ -90,13 +91,14 @@ PLUGINS_CONFIG = {
|
|
|
90
91
|
Run migrations:
|
|
91
92
|
|
|
92
93
|
```bash
|
|
93
|
-
|
|
94
|
+
cd /path/to/netbox
|
|
95
|
+
venv/bin/python netbox/manage.py migrate netbox_sqlquery
|
|
94
96
|
```
|
|
95
97
|
|
|
96
98
|
Collect static files:
|
|
97
99
|
|
|
98
100
|
```bash
|
|
99
|
-
python manage.py collectstatic --no-input
|
|
101
|
+
venv/bin/python netbox/manage.py collectstatic --no-input
|
|
100
102
|
```
|
|
101
103
|
|
|
102
104
|
For Docker-based installations, see [docs/docker.md](docs/docker.md).
|
|
@@ -12,11 +12,11 @@ class NetBoxSQLQueryConfig(PluginConfig):
|
|
|
12
12
|
"SQL query interface for NetBox with syntax highlighting,"
|
|
13
13
|
" abstract views, and role-based access control"
|
|
14
14
|
)
|
|
15
|
-
version = "0.1.
|
|
15
|
+
version = "0.1.3"
|
|
16
16
|
author = "Ravi Pina"
|
|
17
17
|
author_email = "ravi@pina.org"
|
|
18
18
|
base_url = "sqlquery"
|
|
19
|
-
min_version = "4.
|
|
19
|
+
min_version = "4.5.0"
|
|
20
20
|
max_version = None
|
|
21
21
|
required_settings = []
|
|
22
22
|
default_settings = {
|
|
@@ -8,8 +8,8 @@ class Migration(migrations.Migration):
|
|
|
8
8
|
|
|
9
9
|
dependencies = [
|
|
10
10
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
11
|
-
("auth", "0012_alter_user_first_name_max_length"),
|
|
12
11
|
("extras", "0001_initial"),
|
|
12
|
+
("users", "0001_squashed_0011"),
|
|
13
13
|
]
|
|
14
14
|
|
|
15
15
|
operations = [
|
|
@@ -85,7 +85,7 @@ class Migration(migrations.Migration):
|
|
|
85
85
|
("require_staff", models.BooleanField(default=False)),
|
|
86
86
|
("require_superuser", models.BooleanField(default=False)),
|
|
87
87
|
("allow", models.BooleanField(default=True)),
|
|
88
|
-
("groups", models.ManyToManyField(blank=True, to="
|
|
88
|
+
("groups", models.ManyToManyField(blank=True, to="users.group")),
|
|
89
89
|
],
|
|
90
90
|
options={
|
|
91
91
|
"ordering": ["-require_superuser", "-require_staff", "pattern"],
|