license headers (& minor misc fixes)

This commit is contained in:
saces 2026-03-11 22:06:44 +01:00
parent d58ea40593
commit c06740b144
32 changed files with 60 additions and 30 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
.venv .venv
compose.override.yaml compose.override.yaml
work work
dist

View file

@ -1,3 +1,5 @@
// Copyright (C) 2026 saces@c-base.org
// SPDX-License-Identifier: AGPL-3.0-only
package mxpassfile package mxpassfile
import ( import (

View file

@ -1,3 +1,6 @@
// Copyright (C) 2026 saces@c-base.org
// SPDX-License-Identifier: AGPL-3.0-only
package mxpassfile package mxpassfile
import ( import (

View file

@ -1,5 +1,7 @@
// Copyright (C) 2026 saces@c-base.org
// SPDX-License-Identifier: AGPL-3.0-only
//go:build windows //go:build windows
// +build windows
package mxpassfile package mxpassfile

View file

@ -1,5 +1,7 @@
// Copyright (C) 2026 saces@c-base.org
// SPDX-License-Identifier: AGPL-3.0-only
//go:build !windows //go:build !windows
// +build !windows
package mxpassfile package mxpassfile

View file

@ -1,3 +1,5 @@
// Copyright (C) 2026 saces@c-base.org
// SPDX-License-Identifier: AGPL-3.0-only
package mxapi package mxapi
import ( import (

View file

@ -1,3 +1,5 @@
// Copyright (C) 2026 saces@c-base.org
// SPDX-License-Identifier: AGPL-3.0-only
package mxapi package mxapi
import ( import (

View file

@ -1,6 +1,7 @@
#!/usr/bin/python # Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import os import os
import sys
from cffi import FFI from cffi import FFI
lib_list = [ lib_list = [

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import os import os
import subprocess import subprocess

View file

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*- # Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import json import json
import logging import logging

View file

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
from _pygomx import ffi, lib from _pygomx import ffi, lib
import json import json

View file

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import json import json
import logging import logging

1
smal/.gitignore vendored
View file

@ -1 +1,2 @@
__pycache__ __pycache__
*.egg-info

View file

@ -1 +0,0 @@
from .demobot import main

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys import sys
from .demobot import main from .demobot import main

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import logging import logging
from smal.bot import SMALBot from smal.bot import SMALBot

View file

@ -1 +0,0 @@
from .demobot import main

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys import sys
from .demobot import main from .demobot import main

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import logging import logging
from smal.simple.bot import SMALBot from smal.simple.bot import SMALBot

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys import sys
from _pygomx import lib, ffi from _pygomx import lib, ffi

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys import sys
from _pygomx import lib, ffi from _pygomx import lib, ffi

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys import sys
from _pygomx import lib, ffi from _pygomx import lib, ffi
import click import click

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys import sys
from _pygomx import lib, ffi from _pygomx import lib, ffi

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys import sys
from _pygomx import lib, ffi from _pygomx import lib, ffi

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys import sys
from _pygomx import lib, ffi from _pygomx import lib, ffi

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import logging import logging
import asyncio import asyncio

View file

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import logging import logging
from .app import SMALApp from .app import SMALApp

View file

@ -1,13 +0,0 @@
# -*- coding: utf-8 -*-
class APIError(Exception):
"""Exception raised for api usage errors.
Attributes:
message -- explanation of the error
"""
def __init__(self, message):
self.message = message[4:]
super().__init__(self.message)

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import logging import logging
from pygomx.simple import _SimpleClient from pygomx.simple import _SimpleClient

View file

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import logging import logging
from .app import SMALApp from .app import SMALApp

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys import sys
from .smalsetup import smalsetup from .smalsetup import smalsetup

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys import sys
import os import os
import getpass import getpass