16 Commits

Author SHA1 Message Date
fd55f1fa1c fixed +-120s 2025-06-05 11:14:10 +03:00
65c7fa4a48 +- 120s 2025-06-05 11:02:00 +03:00
dc7d55044d Merge branch 'main' of bb.hublab.ru:HUB/hublib-backend 2025-06-04 16:22:12 +03:00
9f145a3126 changed time param 2025-06-04 16:21:41 +03:00
d364c9d2f5 Удалить b.py 2025-06-03 08:05:43 +00:00
a.kudelko
4171ee8480 Update hublib backend by a.kudelko at 2025-06-03T08:05:20 2025-06-03 08:05:23 +00:00
e111ff648f deleted old 2025-06-03 10:14:16 +03:00
d05f8270d8 renamed lib 2025-06-03 10:13:42 +03:00
dc45194e7c Удалить b.py 2025-06-02 11:10:48 +00:00
50b652fbc7 Update hublib backend 2025-06-02 10:59:16 +00:00
becc04de43 asd 2025-06-02 10:48:13 +00:00
666eef0f5d Обновить setup.py 2025-05-29 10:11:26 +00:00
4fc1ebe80c Обновить setup.py 2025-05-29 10:03:31 +00:00
fb6cd0404d changed date format 2025-05-28 15:27:25 +03:00
5a605f327d obfuscated 2025-05-28 12:44:57 +03:00
aa4c711a27 changed 2025-05-27 14:41:39 +03:00
6 changed files with 16 additions and 25 deletions

4
hublib/.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,4 @@
{
"python.languageServer": "None",
"python.analysis.typeCheckingMode": "off"
}

BIN
hublib/libuniffi_hublib.so Normal file

Binary file not shown.

View File

@@ -460,9 +460,9 @@ def _uniffi_check_contract_api_version(lib):
raise InternalError("UniFFI contract version mismatch: try cleaning and rebuilding your project")
def _uniffi_check_api_checksums(lib):
if lib.uniffi_hublib_checksum_func_get_secret_value() != 7762:
if lib.uniffi_hublib_checksum_func_get_secret_value() != 58838:
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
if lib.uniffi_hublib_checksum_func_recreate_secret_value() != 51310:
if lib.uniffi_hublib_checksum_func_recreate_secret_value() != 37521:
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
# A ctypes library to expose the extern-C FFI definitions.
@@ -571,14 +571,14 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure):
_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiForeignFutureStructVoid,
)
_UniffiLib.uniffi_hublib_fn_func_get_secret_value.argtypes = (
ctypes.c_uint64,
_UniffiRustBuffer,
_UniffiRustBuffer,
_UniffiRustBuffer,
ctypes.POINTER(_UniffiRustCallStatus),
)
_UniffiLib.uniffi_hublib_fn_func_get_secret_value.restype = _UniffiRustBuffer
_UniffiLib.uniffi_hublib_fn_func_recreate_secret_value.argtypes = (
ctypes.c_uint64,
_UniffiRustBuffer,
_UniffiRustBuffer,
_UniffiRustBuffer,
_UniffiRustBuffer,
@@ -869,19 +869,6 @@ _uniffi_check_contract_api_version(_UniffiLib)
# Public interface members begin here.
class _UniffiConverterUInt64(_UniffiConverterPrimitiveInt):
CLASS_NAME = "u64"
VALUE_MIN = 0
VALUE_MAX = 2**64
@staticmethod
def read(buf):
return buf.read_u64()
@staticmethod
def write(value, buf):
buf.write_u64(value)
class _UniffiConverterString:
@staticmethod
def check_lower(value):
@@ -916,21 +903,21 @@ class _UniffiConverterString:
# Async support
def get_secret_value(cur_time: "int",user_agent: "str",url: "str") -> "str":
_UniffiConverterUInt64.check_lower(cur_time)
def get_secret_value(http_date: "str",user_agent: "str",url: "str") -> "str":
_UniffiConverterString.check_lower(http_date)
_UniffiConverterString.check_lower(user_agent)
_UniffiConverterString.check_lower(url)
return _UniffiConverterString.lift(_uniffi_rust_call(_UniffiLib.uniffi_hublib_fn_func_get_secret_value,
_UniffiConverterUInt64.lower(cur_time),
_UniffiConverterString.lower(http_date),
_UniffiConverterString.lower(user_agent),
_UniffiConverterString.lower(url)))
def recreate_secret_value(cur_time: "int",user_agent: "str",url: "str",gotten_value: "str") -> "str":
_UniffiConverterUInt64.check_lower(cur_time)
def recreate_secret_value(http_date: "str",user_agent: "str",url: "str",gotten_value: "str") -> "str":
_UniffiConverterString.check_lower(http_date)
_UniffiConverterString.check_lower(user_agent)
@@ -939,7 +926,7 @@ def recreate_secret_value(cur_time: "int",user_agent: "str",url: "str",gotten_va
_UniffiConverterString.check_lower(gotten_value)
return _UniffiConverterString.lift(_uniffi_rust_call(_UniffiLib.uniffi_hublib_fn_func_recreate_secret_value,
_UniffiConverterUInt64.lower(cur_time),
_UniffiConverterString.lower(http_date),
_UniffiConverterString.lower(user_agent),
_UniffiConverterString.lower(url),
_UniffiConverterString.lower(gotten_value)))

View File

@@ -2,9 +2,9 @@ from setuptools import find_packages, setup
setup(
name='signlib',
name='hublib',
packages=find_packages(),
version='0.1.0',
include_package_data=True,
package_data={'signlib': ['*.so']},
package_data={'hublib': ['*.so']},
)

Binary file not shown.