Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
aisbf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
aisbf
Commits
48892294
Commit
48892294
authored
May 10, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(license): add Python headers to Studio files
parent
30d9bae8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
92 additions
and
0 deletions
+92
-0
studio.py
aisbf/studio.py
+19
-0
test_dashboard_studio.py
tests/routes/test_dashboard_studio.py
+19
-0
test_license_headers.py
tests/test_license_headers.py
+35
-0
test_studio.py
tests/test_studio.py
+19
-0
No files found.
aisbf/studio.py
View file @
48892294
"""
Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
AISBF - AI Service Broker Framework || AI Should Be Free
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
from
__future__
import
annotations
from
__future__
import
annotations
from
dataclasses
import
dataclass
from
dataclasses
import
dataclass
...
...
tests/routes/test_dashboard_studio.py
View file @
48892294
"""
Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
AISBF - AI Service Broker Framework || AI Should Be Free
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import
json
import
json
from
pathlib
import
Path
from
pathlib
import
Path
import
sys
import
sys
...
...
tests/test_license_headers.py
0 → 100644
View file @
48892294
from
pathlib
import
Path
PYTHON_LICENSE_HEADER
=
[
'"""'
,
'Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>'
,
''
,
'AISBF - AI Service Broker Framework || AI Should Be Free'
,
''
,
'This program is free software: you can redistribute it and/or modify'
,
'it under the terms of the GNU General Public License as published by'
,
'the Free Software Foundation, either version 3 of the License, or'
,
'(at your option) any later version.'
,
''
,
'This program is distributed in the hope that it will be useful,'
,
'but WITHOUT ANY WARRANTY; without even the implied warranty of'
,
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the'
,
'GNU General Public License for more details.'
,
''
,
'You should have received a copy of the GNU General Public License'
,
'along with this program. If not, see <https://www.gnu.org/licenses/>.'
,
'"""'
,
]
def
test_target_studio_python_files_use_standard_aisbf_license_header
():
repo_root
=
Path
(
__file__
)
.
resolve
()
.
parents
[
1
]
target_files
=
[
repo_root
/
'aisbf'
/
'studio.py'
,
repo_root
/
'tests'
/
'test_studio.py'
,
repo_root
/
'tests'
/
'routes'
/
'test_dashboard_studio.py'
,
]
for
path
in
target_files
:
lines
=
path
.
read_text
(
encoding
=
'utf-8'
)
.
splitlines
()
assert
lines
[:
len
(
PYTHON_LICENSE_HEADER
)]
==
PYTHON_LICENSE_HEADER
,
path
.
as_posix
()
tests/test_studio.py
View file @
48892294
"""
Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
AISBF - AI Service Broker Framework || AI Should Be Free
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import
pytest
import
pytest
from
aisbf.studio
import
(
from
aisbf.studio
import
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment