Skip to content

Commit 00f3c79

Browse files
committed
v1.0.0 - initial stable release
1 parent f9cdcc5 commit 00f3c79

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

MANIFEST.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
include LICENSE README.md
2-
recursive-include s3recon *
3-
recursive-include data *
1+
include LICENSE README.md s3recon/s3recon.yml data/*.txt

s3recon/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.0"
1+
__version__ = "1.0.0"

s3recon/s3recon.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env python3
2-
32
from asyncio import get_event_loop, gather
43
from collections import defaultdict
54
from datetime import datetime
65
from json import dumps
6+
from logging import getLogger, basicConfig, INFO
77
from os import environ
88
from pathlib import Path
99
from random import choice
@@ -32,6 +32,11 @@
3232

3333
filterwarnings("ignore", category=InsecureRequestWarning)
3434

35+
logger = getLogger(__name__)
36+
37+
# TODO: opt to change log-level
38+
basicConfig(format="%(message)s", level=INFO)
39+
3540

3641
def bucket_exists(url, timeout):
3742
exists = False
@@ -60,7 +65,7 @@ def find_bucket(url, timeout):
6065
if exists:
6166
access = public_key if public else private_key
6267
access_word = public_text if public else private_text
63-
print(f"{access} {access_word} {url}", end="\n")
68+
logger.info(f"{access} {access_word} {url}")
6469
return access, url
6570

6671
return None
@@ -88,7 +93,6 @@ def read_config():
8893

8994
for c in config_hierarchy:
9095
try:
91-
print(c)
9296
c = load(open(c, "r"))
9397
merge(config, c)
9498
except IOError:
@@ -123,8 +127,8 @@ def main(words, timeout, output):
123127
private, public = collect_results(r)
124128
stop = datetime.now()
125129

126-
print(f"Complete after: {stop - start}")
127-
print(f"Output written to: {output.name}")
130+
logger.info(f"Complete after: {stop - start}")
131+
logger.info(f"Output written to: {output.name}")
128132

129133
output.write(
130134
dumps(

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def open_local(paths, mode="r", encoding="utf8"):
2626
long_description_content_type="text/markdown",
2727
url="https://github.com/clarketm/s3recon",
2828
packages=setuptools.find_packages(),
29+
include_package_data=True,
2930
install_requires=install_requires,
3031
entry_points={"console_scripts": ["s3recon=s3recon.s3recon:cli"]},
3132
classifiers=(

0 commit comments

Comments
 (0)