Skip to content

Commit

Permalink
v0.2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nihilok committed Jun 12, 2021
1 parent 47316e3 commit 824de17
Show file tree
Hide file tree
Showing 16 changed files with 3,043 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Change Log
==========

0.2.2.1 (12/06/2021)
----------------
- fixed inheritance bug (domains api not being called)
- relative imports

0.2.1 (15/05/2021)
----------------
- more modular: added IPChecker parent class and BaseUser parent class
Expand Down
Binary file removed dist/domains-api-0.1.6.tar.gz
Binary file not shown.
Binary file removed dist/domains-api-0.2.1.tar.gz
Binary file not shown.
Binary file added dist/domains-api-0.2.2.1.tar.gz
Binary file not shown.
7 changes: 6 additions & 1 deletion domains_api.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: domains-api
Version: 0.2.1
Version: 0.2.2.1
Summary: Auto-updates your dynamic dns rules on Google Domains (domains.google.com)
Home-page: https://github.com/nihilok/domains-api
Author: Michael Jarvis
Expand Down Expand Up @@ -111,6 +111,11 @@ Description: # Google Domains API Client
Change Log
==========

0.2.2.1 (12/06/2021)
----------------
- fixed inheritance bug (domains api not being called)
- relative imports

0.2.1 (15/05/2021)
----------------
- more modular: added IPChecker parent class and BaseUser parent class
Expand Down
3,020 changes: 3,019 additions & 1 deletion domains_api.egg-info/SOURCES.txt

Large diffs are not rendered by default.

Binary file added domains_api/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file added domains_api/__pycache__/__main__.cpython-38.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added domains_api/__pycache__/ip_checker.cpython-38.pyc
Binary file not shown.
6 changes: 6 additions & 0 deletions domains_api/domains.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[2021-05-15 11:45:51][INFO][Domains API] New user created.
(See `python -m domains_api --help` for help changing/removing the user)
[2021-06-12 10:38:45][INFO][Domains API] Newly recorded IP: 86.137.238.213
[2021-06-12 10:38:47][INFO][Domains API] Google Domains API response: good 86.137.238.213
[2021-06-12 10:38:48][WARNING][Domains API] Email notification not sent: (534, b'5.7.9 Application-specific password required. Learn more at\n5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor r2sm10397951wrv.39 - gsmtp')
[2021-06-12 10:38:48][INFO][Domains API] Google Domains API response: nochg 86.137.238.213
Binary file added domains_api/domains.user
Binary file not shown.
8 changes: 6 additions & 2 deletions domains_api/ip_changer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ def __init__(self, argv=None, user_type=DomainsUser):
if self.changed:
self.domains_api_call()

def check_ip(self):
super().check_ip()
print('IP checked, now performing API call')
self.domains_api_call()

def domains_api_call(self):
"""Attempt to change the Dynamic DNS rules via the Google Domains API and handle response codes"""
try:
Expand Down Expand Up @@ -66,8 +71,7 @@ def domains_api_call(self):
else:
fh.delete_user()
fh.log('API authentication failed, user profile deleted', 'warning')
sys.exit(1)

print('API call complete')
# Local connection related errors
except (ConnectionError, ReqConError) as e:
log_msg = 'Connection Error: %s' % e
Expand Down
1 change: 0 additions & 1 deletion domains_api/ip_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def send_notification(self, ip=None, msg_type='success', error=None, outbox_msg=
fh.log(log_msg, 'warning')
self.outbox.append(msg)
fh.save_user(self)
sys.exit(1)


class IPChecker:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='domains-api',
version='0.2.1',
version='0.2.2.1',
description='Auto-updates your dynamic dns rules on Google Domains (domains.google.com)',
long_description=open('README.md').read() + '\n\n' + open('CHANGELOG.txt').read(),
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 824de17

Please sign in to comment.