diff --git a/.idea/kcpl.iml b/.idea/kcpl.iml index c738597..7b4429b 100644 --- a/.idea/kcpl.iml +++ b/.idea/kcpl.iml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 3be8126..6b4cd32 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/README.md b/README.md index cdadc97..c1d5b1e 100644 --- a/README.md +++ b/README.md @@ -10,20 +10,20 @@ pip install git+git://github.com/lawrencefoley/evergy.git ```python # Import the package -from kcpl.kcpl import KCPL +from evergy.evergy import Evergy # Login -kcpl = KCPL("username", "password") -kcpl.login() +evergy = Evergy("username", "password") +evergy.login() # Get a list of daily readings # Note, there is more data available such as 'cost' and 'avgTemp' -data = kcpl.get_usage() +data = evergy.get_usage() logging.info("Last usage reading: " + str(data[-1])) logging.info("Last usage reading: " + str(data[-1]["usage"])) # End your session by logging out -kcpl.logout() +evergy.logout() ``` ## Development @@ -31,8 +31,8 @@ kcpl.logout() Install the dev dependencies and run `isort` and `flake8` to properly format the code. ```bash pip install -r requirements_dev.txt -isort kcpl/ -flake8 kcpl/ +isort evergy/ +flake8 evergy/ ``` ### Release New Version diff --git a/evergy/__init__.py b/evergy/__init__.py new file mode 100644 index 0000000..5c4105c --- /dev/null +++ b/evergy/__init__.py @@ -0,0 +1 @@ +__version__ = "1.0.1" diff --git a/kcpl/kcpl.py b/evergy/evergy.py similarity index 96% rename from kcpl/kcpl.py rename to evergy/evergy.py index 55f444a..bcf1cef 100644 --- a/kcpl/kcpl.py +++ b/evergy/evergy.py @@ -14,7 +14,7 @@ today = date.today() -class KCPL: +class Evergy: def __init__(self, username, password): self.logged_in = False self.session = None @@ -95,13 +95,13 @@ def get_creds(): username = creds["username"] password = creds["password"] - kcpl = KCPL(username, password) - kcpl.login() + evergy = Evergy(username, password) + evergy.login() # Get a list of daily readings - data = kcpl.get_usage() + data = evergy.get_usage() logging.info("Last usage data: " + str(data[-1])) logging.info("Last usage reading: " + str(data[-1]["usage"])) # End your session by logging out - kcpl.logout() + evergy.logout() diff --git a/kcpl/__init__.py b/kcpl/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/setup.py b/setup.py index 0896ab7..bc13b2b 100644 --- a/setup.py +++ b/setup.py @@ -12,11 +12,11 @@ long_description = f.read() setup( - name="kcpl", + name="evergy", version="0.0.2", - description="A utility that reads electric utility meter data from KCPL.com", + description="A utility that reads electric utility meter data from Evergy.com", long_description=long_description, - url="https://github.com/lawrencefoley/kcpl", + url="https://github.com/lawrencefoley/evergy", author="Lawrence Foley", author_email="emwav333@gmail.com", # Classifiers help users find your project by categorizing it. @@ -42,7 +42,7 @@ # project page. What does your project relate to? # # Note that this is a string of words separated by whitespace, not a list. - keywords="kcpl evergy api utilities kansas-city", # Optional + keywords="evergy kcpl kansas-city electricity-consumption electricity-meter api", # Optional # You can just specify package directories manually here if your project is # simple. Or you can use find_packages(). #