42 Commits
Author SHA1 Message Date
C 10537855f6 add initial web hook handling 2025-10-26 15:33:02 -07:00
C 3a5f477914 ignore things i forgot 2025-10-26 15:32:43 -07:00
C de9852e374 add arguments for host and port!!! yay!! 2025-10-23 14:42:41 -07:00
C 5440da0bdf BIG rename 2025-10-16 17:03:34 -07:00
C 40d9999a80 wtf is going on with these imports man 2025-10-14 15:53:08 -07:00
C 5887771a38 rename sql -> sqlite 2025-10-14 15:52:59 -07:00
C 55e04f0a7c all the reflex web junk lole 2025-10-14 15:52:42 -07:00
C 1df6c42b41 add reflex for web stuff! 2025-10-14 15:52:22 -07:00
C 1ba6f903d9 global throttle things 2025-10-12 11:52:04 -07:00
C 8faf56f9ad time stuff 2025-10-12 11:51:49 -07:00
ph0sgene d1059905c6 Update README.md 2025-10-11 21:43:11 +00:00
ph0sgene 6e488ca352 Update README.md 2025-10-11 21:42:35 +00:00
ph0sgene dd356b0d13 Update README.md 2025-10-11 21:42:02 +00:00
ph0sgene 1a77623e4d Update README.md 2025-10-11 21:40:10 +00:00
C 8d7564185f fancy new readme 2025-10-11 14:26:30 -07:00
C e1da46d61b spooder 2025-10-11 14:17:51 -07:00
C 86d6e5a61d mk test in test because test 2025-10-11 13:57:02 -07:00
C 5d580d68f6 modulize it >:( stupid wsl 2025-10-11 13:56:53 -07:00
C 2308d183e9 misc fixes 2025-10-11 13:56:34 -07:00
C 67891e5222 fix up db fetch and insert 2025-10-11 13:56:13 -07:00
C 04cfd42b4b remove previous stuff from asquare and put it in glue 2025-10-11 13:56:01 -07:00
C d612003f32 make middleware module (glue) 2025-10-11 13:55:39 -07:00
C 8ded841d44 global throttler implementation 2025-10-11 13:55:15 -07:00
C 76fa9a8db1 ignore venv 2025-10-11 13:54:10 -07:00
C 005bf87df5 add initial review testing for sql 2025-10-11 11:39:29 -07:00
C aa8883c822 rate limit 2025-10-11 11:39:12 -07:00
C 53994f99dc move throttler example. we dont need it in src 2025-10-11 11:38:54 -07:00
C 0f8b9b444b this is the schedule manager not the db 2025-10-11 11:33:14 -07:00
C 90ca36f426 big sexy sqlite db 2025-10-11 11:33:00 -07:00
C 5691cebc11 add rate limit handling to synch version :( 2025-10-10 11:05:39 -07:00
C f1c9655748 bs4 for testing 2025-10-10 11:05:21 -07:00
C 4fe20615d3 i guess this should be versioned 2025-10-10 11:05:14 -07:00
C d32c17a5da add stuff todo for fixing database 2025-10-09 17:15:12 -07:00
C 729746b0bd uv refresh 2025-10-09 17:14:59 -07:00
C 152bfb316b add verbosity to startup 2025-10-09 17:14:53 -07:00
C 369ccdbfc0 testing subclassed asquare 2025-10-09 17:14:37 -07:00
C a419dd498f handle no numbers in set name 2025-10-09 17:13:56 -07:00
C b4b0ccdac6 added rotating logs! epicsauce 2025-10-09 13:33:59 -07:00
C 32664c3a10 added optional logging to brickset 2025-10-09 13:33:51 -07:00
C 41ce94c85c Auto stash before rebase of "uv" 2025-10-09 12:55:38 -07:00
ph0sgene 397eddf299 rm 314t 2025-10-09 12:54:32 -07:00
C 8affb90308 refactor: Migrate build system to Hatch and integrate UV 2025-10-09 12:49:37 -07:00
5 changed files with 41 additions and 86 deletions

No files matched your search

+38 -37
View File
@@ -1,37 +1,38 @@
logs/
.env
__pycache__/
*.pyc
.vscode/
.idea/
.DS_Store
*.db
*.sqlite3
*.log
bin/build/
.zip
snippet.py
doc/square-src/square-python-sdk-43.0.2.20250820/
doc/square-src/
doc/pw-inventory/pw-inventory.zip
doc/pw-inventory/SQUARE_inventory_forautomation_2025-06-18-0139.csv
doc/pw-inventory/square_inventory_export_2025-06-18-0137.xlsx
square-src.code-workspace
doc/pw-inventory/
studspider.db-journal
.venv
*.db
*.py[cod]
.web
.states
assets/external/
__pycache__/
win/
.github/
logs/
.env
__pycache__/
*.pyc
.vscode/
.idea/
.DS_Store
*.db
*.sqlite3
*.log
bin/build/
.zip
snippet.py
doc/square-src/square-python-sdk-43.0.2.20250820/
doc/square-src/
doc/pw-inventory/pw-inventory.zip
doc/pw-inventory/SQUARE_inventory_forautomation_2025-06-18-0139.csv
doc/pw-inventory/square_inventory_export_2025-06-18-0137.xlsx
square-src.code-workspace
doc/pw-inventory/
studspider.db-journal
.venv
*.db
*.py[cod]
.web
.states
assets/external/
__pycache__/
win/
.github/
activate/
-21
View File
@@ -1,21 +0,0 @@
FROM python:3.13-alpine
# Install uv
RUN pip install uv
# Set working directory
WORKDIR /app
# Copy project files
COPY pyproject.toml ./
COPY README.md ./
# Install dependencies using uv without venv
RUN uv pip compile pyproject.toml -o requirements.txt && \
uv pip install --system -r requirements.txt
# Copy the rest of the application
COPY . .
# Default command
CMD ["python", "tests/test.py"]
+1 -1
View File
@@ -48,7 +48,7 @@ def get_set(set_number: int) -> dict:
}
# add PW 10% b4 tax
our_set.update(
{"set_adjustredprice": our_set["set_retailprice"] + ((10 / 100) * our_set["set_retailprice"])}
{"set_adjustredprice": our_set + ((10 / 100) * our_set["set_retailprice"])}
)
our_set["pw_name"] = (
f"{our_set['set_num']} - {our_set["set_theme"].upper()} {our_set['set_name']}"
+1 -1
View File
@@ -1,6 +1,6 @@
import json
from . import get_sq_env
import get_sq_env
SQUARE_TOKEN = get_sq_env.SQUARE_TOKEN
LEGO_CAT_ID = get_sq_env.LEGO_CAT_ID
+1 -26
View File
@@ -1,31 +1,6 @@
import sys
from pathlib import Path
from pprint import pprint
sys.path.insert(0, str(Path(__file__).parent.parent))
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
import src.libsquare as sq
import src.bricksetapi as lego
print("=" * 80)
result = sock.connect_ex(('127.0.0.1', 7432))
if result == 0:
print("PORT 7432 IS IN USE")
else:
print("PORT 7432 IS AVAILABLE")
sock.close()
print("=" * 80)
print("SQUARE OBJECT FOR SET 71417:")
print("=" * 80)
oursq = sq.get_itm("71417")
pprint(oursq, width=120, depth=None)
print("\n" + "=" * 80)
print("LEGO SET INFORMATION FOR SET 71417:")
print("=" * 80)
ourlego = lego.get_set(71417)
print("=" * 80)
pprint(ourlego, width=120, depth=None)
print(f"{oursq}\n\n{ourlego}\n\n")