diff --git a/LICENSE b/LICENSE.txt similarity index 96% rename from LICENSE rename to LICENSE.txt index 3f0c820..71ce5af 100644 --- a/LICENSE +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 Dennis Karpienski +Copyright (c) 2017 Dennis Karpienski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 0a7c9be..6fd0876 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,22 @@ # pylgtv Library to control webOS based LG Tv devices + +## Example + +```python +from pylgtv import WebOsClient + +import sys +import logging + +logging.basicConfig(stream=sys.stdout, level=logging.INFO) + +try: + webos_client = WebOsClient('192.168.0.112') + #webos_client.launch_app('netflix') + + for app in webos_client.get_apps(): + print(app) +except: + print("Error connecting to TV") +``` \ No newline at end of file diff --git a/example.py b/example.py deleted file mode 100644 index 7a5cb16..0000000 --- a/example.py +++ /dev/null @@ -1,15 +0,0 @@ -from pylgtv import WebOsClient - -import sys -import logging - -logging.basicConfig(stream=sys.stdout, level=logging.INFO) - -try: - webos_client = WebOsClient('192.168.0.112') - #webos_client.launch_app('netflix') - - for app in webos_client.get_apps(): - print(app) -except: - print("Error connecting to TV") diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..224a779 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[metadata] +description-file = README.md \ No newline at end of file diff --git a/setup.py b/setup.py index fb24f3a..a3d2967 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,18 @@ -from setuptools import setup +from distutils.core import setup -setup(name='pylgtv', - version='0.1.5', - description='Library to control webOS based LG Tv devices', - url='https://github.com/TheRealLink/pylgtv', - author='Dennis Karpienski', - author_email='dennis@karpienski.de', - license='MIT', - packages=['pylgtv'], - package_dir={'pylgtv': 'pylgtv'}, - package_data={'pylgtv': ['handshake.json']}, - install_requires=['websockets', 'asyncio'], - zip_safe=True) +setup( + name = 'pylgtv', + packages = ['pylgtv'], + package_dir = {'pylgtv': 'pylgtv'}, + package_data = {'pylgtv': ['handshake.json']}, + install_requires = ['websockets', 'asyncio'], + zip_safe = True, + version = '0.1.5', + description = 'Library to control webOS based LG Tv devices', + author = 'Dennis Karpienski', + author_email = 'dennis@karpienski.de', + url = 'https://github.com/TheRealLink/pylgtv', + download_url = 'https://github.com/TheRealLink/pylgtv/archive/0.1.5.tar.gz', + keywords = ['webos', 'tv'], + classifiers = [], +) \ No newline at end of file