File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11'''
22Name: remove-json-keys.py
3- Version: 2026.2.10.11
3+ Version: 2026.2.10.12
44Author: Adam Lui
55Description: Remove key/value pairs from json_dir/**.json
66Homepage: https://github.com/adamlui/python-utils
1111
1212import argparse
1313import os , re
14- from types import SimpleNamespace
14+ from types import SimpleNamespace as sns
1515
16- cli = SimpleNamespace (
16+ cli = sns (
1717 name = 'remove-json-keys' ,
18- urls = SimpleNamespace (jsdelivr = 'https://cdn.jsdelivr.net/gh/adamlui/python-utils' )
18+ urls = sns (jsdelivr = 'https://cdn.jsdelivr.net/gh/adamlui/python-utils' )
1919)
2020
2121# Parse CLI args
Original file line number Diff line number Diff line change 11'''
22Name: translate-en-messages.py
3- Version: 2026.2.10.17
3+ Version: 2026.2.10.18
44Author: Adam Lui
55Description: Translate en/messages.json to other locales
66Homepage: https://github.com/adamlui/python-utils
1313import os , json
1414from sys import stdout
1515from translate import Translator
16- from types import SimpleNamespace
16+ from types import SimpleNamespace as sns
1717from urllib .request import urlopen
1818
19- cli = SimpleNamespace (
19+ cli = sns (
2020 name = 'translate-messages' ,
21- urls = SimpleNamespace (jsdelivr = 'https://cdn.jsdelivr.net/gh/adamlui/python-utils' )
21+ urls = sns (jsdelivr = 'https://cdn.jsdelivr.net/gh/adamlui/python-utils' )
2222)
2323
2424provider = ''
You can’t perform that action at this time.
0 commit comments