init code clean up + code comments

This commit is contained in:
Rossen Georgiev 2014-12-30 16:35:14 +00:00
parent d5d1fab3bd
commit 40dfad3092
8 changed files with 17 additions and 20 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
.coverage
*.swp *.swp
*.pyc *.pyc
dist dist
aprs.egg-info *.egg-info

View File

@ -28,7 +28,7 @@ pylint:
build: pylint test build: pylint test
clean: clean:
rm -rf dist aprs.egg-info rm -rf dist aprs.egg-info aprslib/*.pyc
dist: clean dist: clean
python setup.py sdist python setup.py sdist

View File

@ -1,4 +1,4 @@
# aprs - Python library for dealing with APRS # aprslib - Python library for working with APRS
# Copyright (C) 2013-2014 Rossen Georgiev # Copyright (C) 2013-2014 Rossen Georgiev
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# aprs - Python library for dealing with APRS # aprslib - Python library for working with APRS
# Copyright (C) 2013-2014 Rossen Georgiev # Copyright (C) 2013-2014 Rossen Georgiev
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
@ -31,18 +31,12 @@ __version__ = "0.6.31"
__author__ = "Rossen Georgiev" __author__ = "Rossen Georgiev"
__all__ = ['IS', 'parse', 'passcode'] __all__ = ['IS', 'parse', 'passcode']
from .parse import parse as refparse from .exceptions import *
parse = refparse from .parse import parse
del refparse from .passcode import passcode
from .passcode import passcode as refpasscode from .IS import IS
passcode = refpasscode
del refpasscode
from .IS import IS as refIS
class IS(refIS): class IS(IS):
pass pass
del refIS

View File

@ -1,4 +1,4 @@
# aprs - Python library for dealing with APRS # aprslib - Python library for working with APRS
# Copyright (C) 2013-2014 Rossen Georgiev # Copyright (C) 2013-2014 Rossen Georgiev
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
@ -18,6 +18,8 @@
""" """
Provides facilities for covertion from/to base91 Provides facilities for covertion from/to base91
""" """
__all__ = ['to_decimal', 'from_decimal']
from math import log from math import log
from re import findall from re import findall

View File

@ -1,4 +1,4 @@
# aprs - Python library for dealing with APRS # aprslib - Python library for working with APRS
# Copyright (C) 2013-2014 Rossen Georgiev # Copyright (C) 2013-2014 Rossen Georgiev
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# aprs - Python library for dealing with APRS # aprslib - Python library for working with APRS
# Copyright (C) 2013-2014 Rossen Georgiev # Copyright (C) 2013-2014 Rossen Georgiev
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
@ -59,7 +59,7 @@ def parse(raw_sentence):
""" """
Parses an APRS packet and returns a dict with decoded data Parses an APRS packet and returns a dict with decoded data
- All attributes are in meteric units - All attributes are in metric units
Supports: Supports:
* normal/compressed/mic-e position reports * normal/compressed/mic-e position reports

View File

@ -1,4 +1,4 @@
# aprs - Python library for dealing with APRS # aprslib - Python library for working with APRS
# Copyright (C) 2013-2014 Rossen Georgiev # Copyright (C) 2013-2014 Rossen Georgiev
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify