Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d25e5aac60 | ||
|
|
c88695f1e7 | ||
|
|
8413a89a47 | ||
|
|
6bb11a206b | ||
|
|
4e94468315 | ||
|
|
ae55f36a0a | ||
|
|
e6937617a1 | ||
|
|
1824c9fe59 | ||
|
|
0bc06358e8 | ||
|
|
77db374418 | ||
|
|
e9d2bef2ae | ||
|
|
f514a577c8 | ||
|
|
3e03fd7e8c | ||
|
|
0fc3ad49ea | ||
|
|
0e3117e408 | ||
|
|
88dcb8a475 | ||
|
|
7bbb46398e | ||
|
|
2fc7e773e0 | ||
|
|
784517e886 | ||
|
|
ca99cd3853 | ||
|
|
a62b936920 | ||
|
|
4e808c3be9 | ||
|
|
80250035e5 | ||
|
|
fb908e00b7 | ||
|
|
9804b6d673 | ||
|
|
4dfe50db93 | ||
|
|
1c43e5ba06 | ||
|
|
a85e06a19b | ||
|
|
12f03e8bc9 | ||
|
|
912ad15c28 | ||
|
|
3b8a01160d | ||
|
|
0f60a31ef8 | ||
|
|
f0e1d79e92 | ||
|
|
9a106d366b | ||
|
|
ae459d2171 | ||
|
|
bef441db88 | ||
|
|
72bac66682 | ||
|
|
60b687305e | ||
|
|
43e19b200d | ||
|
|
7f5210ab57 | ||
|
|
3683a6ffc1 | ||
|
|
aa2dc74ff7 | ||
|
|
9b5d04183d | ||
|
|
83769ce7db | ||
|
|
46dda6166a | ||
|
|
d9e64cf212 | ||
|
|
0c41ac2f84 | ||
|
|
7cd8fe6541 |
No files matched your search
+37
-38
@@ -1,38 +1,37 @@
|
|||||||
logs/
|
logs/
|
||||||
.env
|
.env
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.pyc
|
*.pyc
|
||||||
.vscode/
|
.vscode/
|
||||||
.idea/
|
.idea/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
*.db
|
*.db
|
||||||
*.sqlite3
|
*.sqlite3
|
||||||
*.log
|
*.log
|
||||||
bin/build/
|
bin/build/
|
||||||
.zip
|
.zip
|
||||||
snippet.py
|
snippet.py
|
||||||
doc/square-src/square-python-sdk-43.0.2.20250820/
|
doc/square-src/square-python-sdk-43.0.2.20250820/
|
||||||
|
|
||||||
doc/square-src/
|
doc/square-src/
|
||||||
|
|
||||||
doc/pw-inventory/pw-inventory.zip
|
doc/pw-inventory/pw-inventory.zip
|
||||||
|
|
||||||
doc/pw-inventory/SQUARE_inventory_forautomation_2025-06-18-0139.csv
|
doc/pw-inventory/SQUARE_inventory_forautomation_2025-06-18-0139.csv
|
||||||
|
|
||||||
doc/pw-inventory/square_inventory_export_2025-06-18-0137.xlsx
|
doc/pw-inventory/square_inventory_export_2025-06-18-0137.xlsx
|
||||||
|
|
||||||
square-src.code-workspace
|
square-src.code-workspace
|
||||||
|
|
||||||
doc/pw-inventory/
|
doc/pw-inventory/
|
||||||
|
|
||||||
studspider.db-journal
|
studspider.db-journal
|
||||||
.venv
|
.venv
|
||||||
*.db
|
*.db
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
.web
|
.web
|
||||||
.states
|
.states
|
||||||
assets/external/
|
assets/external/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
win/
|
win/
|
||||||
.github/
|
.github/
|
||||||
activate/
|
|
||||||
+21
@@ -0,0 +1,21 @@
|
|||||||
|
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
@@ -48,7 +48,7 @@ def get_set(set_number: int) -> dict:
|
|||||||
}
|
}
|
||||||
# add PW 10% b4 tax
|
# add PW 10% b4 tax
|
||||||
our_set.update(
|
our_set.update(
|
||||||
{"set_adjustredprice": our_set + ((10 / 100) * our_set["set_retailprice"])}
|
{"set_adjustredprice": our_set["set_retailprice"] + ((10 / 100) * our_set["set_retailprice"])}
|
||||||
)
|
)
|
||||||
our_set["pw_name"] = (
|
our_set["pw_name"] = (
|
||||||
f"{our_set['set_num']} - {our_set["set_theme"].upper()} {our_set['set_name']}"
|
f"{our_set['set_num']} - {our_set["set_theme"].upper()} {our_set['set_name']}"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
import get_sq_env
|
from . import get_sq_env
|
||||||
|
|
||||||
SQUARE_TOKEN = get_sq_env.SQUARE_TOKEN
|
SQUARE_TOKEN = get_sq_env.SQUARE_TOKEN
|
||||||
LEGO_CAT_ID = get_sq_env.LEGO_CAT_ID
|
LEGO_CAT_ID = get_sq_env.LEGO_CAT_ID
|
||||||
|
|||||||
+26
-1
@@ -1,6 +1,31 @@
|
|||||||
|
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.libsquare as sq
|
||||||
import src.bricksetapi as lego
|
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")
|
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)
|
ourlego = lego.get_set(71417)
|
||||||
print(f"{oursq}\n\n{ourlego}\n\n")
|
print("=" * 80)
|
||||||
|
pprint(ourlego, width=120, depth=None)
|
||||||
Reference in new issue
Block a user