Skip to content

Commit

Permalink
pycodestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpete committed Nov 18, 2023
1 parent 1c75100 commit f624701
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 26 deletions.
6 changes: 6 additions & 0 deletions nfc_dict_diff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env python3
"""
nfc_dict_diff.py : strip diff dict key files
Written By: Peter Shipley github.com/evilpete
From pkg https://github.com/evilpete/flipper_toolbox
"""

# Quick script to diff two Flipper NFC dict lists

Expand Down
10 changes: 7 additions & 3 deletions nfc_dict_strip.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/env python3

"""
nfc_dict_strip.py : strip duplicate dict keys
Written By: Peter Shipley github.com/evilpete
From pkg https://github.com/evilpete/flipper_toolbox
"""
# Quick script to comment out or strip duplicate dict keys

#
Expand Down Expand Up @@ -27,7 +33,7 @@ def dict_strip(file_1, file_2):
if _debug:
print(f">>> {line}", end="", file=sys.stderr)
if line[0] == '#':
if not line.startswith("# Generated"):
if not line.startswith("# Generated "):
print(line, end="")
continue
dat = line[:12].upper()
Expand All @@ -51,9 +57,7 @@ def dict_strip(file_1, file_2):

if av and av[0] == '-h':
print("Usage:\n\tnfc_dict_strip.py [-d ] dict_file_A dict_file_B > dict_nodups\n")

print("\tremoves duplicate keys, outputing only keys unique to dict_file_B")

sys.exit(0)

if av and av[0] == '-d':
Expand Down
6 changes: 6 additions & 0 deletions nfc_flip2prox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env python3
"""
nfc_flip2prox.py
Written By: Peter Shipley github.com/evilpete
From pkg https://github.com/evilpete/flipper_toolbox
"""

# pylint: disable=line-too-long

Expand Down
7 changes: 7 additions & 0 deletions subghz_insteon.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/usr/bin/env python3
"""
subghz_insteon.py : Generate Insteon command packets in Flipper .sub format
Written By: Peter Shipley github.com/evilpete
From pkg https://github.com/evilpete/flipper_toolbox
"""

import sys
import time
Expand Down
14 changes: 6 additions & 8 deletions subghz_secplusv1.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#!/usr/bin/env python3
"""
Display and/or edit Flipper SubGhz Security+ 1.0 Key Files
# **WORK IN PROGRESS**
Peter Shipley github.com/evilpete
#
# Display and/or edit Flipper SubGhz Security+ 1.0 Key Files
#
# Peter Shipley github.com/evilpete
#
# From pkg https://github.com/evilpete/flipper_toolbox
#
From pkg https://github.com/evilpete/flipper_toolbox
"""

# **WORK IN PROGRESS**

import sys
import time
Expand Down
16 changes: 8 additions & 8 deletions subghz_secplusv2.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env python3

# **WORK IN PROGRESS**
"""
Display and/or edit Flipper SubGhz Security+ 2.0 Key Files
#
# Display and/or edit Flipper SubGhz Security+ 2.0 Key Files
#
# Peter Shipley github.com/evilpete
#
# From pkg https://github.com/evilpete/flipper_toolbox
#
Peter Shipley github.com/evilpete
From pkg https://github.com/evilpete/flipper_toolbox
"""

# **WORK IN PROGRESS**

import sys
import os
Expand Down
14 changes: 7 additions & 7 deletions subghz_x10.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env python3
"""
Generate X10 RF command in Flipper .sub format
Peter Shipley github.com/evilpete
From pkg https://github.com/evilpete/flipper_toolbox
"""

import sys
import time

#
# Generate X10 RF command in Flipper .sub format
#
# Peter Shipley github.com/evilpete
#
# From pkg https://github.com/evilpete/flipper_toolbox
#

# Usage;
# ./subghz_x10.py <dst_node_addr><src_node_addr> [On|Off]
Expand Down

0 comments on commit f624701

Please sign in to comment.