From 6788cb3944e07407ba93bb07e925c216877465d4 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 28 Oct 2018 13:21:23 +0100 Subject: [PATCH] Removed init import and renamed module to api --- README.md | 2 +- mcuuid/__init__.py | 1 - mcuuid/{mcuuid.py => api.py} | 0 setup.py | 2 +- test.py | 2 +- 5 files changed, 3 insertions(+), 4 deletions(-) rename mcuuid/{mcuuid.py => api.py} (100%) diff --git a/README.md b/README.md index e7a1406..a43bf53 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Getting Minecraft Player Information from Mojang API. 2. Use the module like this: ``` -from mcuuid import GetPlayerData +from mcuuid.api import GetPlayerData player = GetPlayerData(username) diff --git a/mcuuid/__init__.py b/mcuuid/__init__.py index efbc252..0b19565 100644 --- a/mcuuid/__init__.py +++ b/mcuuid/__init__.py @@ -1,2 +1 @@ name = "mcuuid" -from mcuuid.mcuuid import GetPlayerData diff --git a/mcuuid/mcuuid.py b/mcuuid/api.py similarity index 100% rename from mcuuid/mcuuid.py rename to mcuuid/api.py diff --git a/setup.py b/setup.py index d44ff89..af26e66 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r") as fh: setuptools.setup( name="mcuuid", - version="0.1.1", + version="0.1.2", author="Clemens Riese", author_email="hallo@clerie.de", description="Getting Minecraft Player Information from Mojang API.", diff --git a/test.py b/test.py index 092053b..1518ebd 100644 --- a/test.py +++ b/test.py @@ -1,5 +1,5 @@ ### Import our module -from mcuuid.mcuuid import GetPlayerData +from mcuuid.api import GetPlayerData ### Import some other necessary modules import sys