mirror of
https://github.com/no2chem/wideq.git
synced 2025-05-17 07:40:09 -07:00
Switch to Flit for distribution
This commit is contained in:
parent
dae03a0645
commit
a16e146b64
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
dist/
|
14
pyproject.toml
Normal file
14
pyproject.toml
Normal file
@ -0,0 +1,14 @@
|
||||
[build-system]
|
||||
requires = ["flit"]
|
||||
build-backend = "flit.buildapi"
|
||||
|
||||
[tool.flit.metadata]
|
||||
module = "wideq"
|
||||
author = "Adrian Sampson"
|
||||
author-email = "adrian@radbox.org"
|
||||
home-page = "https://github.com/sampsyo/wideq"
|
||||
requires = [
|
||||
"requests"
|
||||
]
|
||||
description-file = "README.md"
|
||||
requires-python = ">=3.4"
|
20
setup.py
20
setup.py
@ -1,20 +0,0 @@
|
||||
from setuptools import setup
|
||||
|
||||
|
||||
setup(
|
||||
name='wideq',
|
||||
version='0.0.0',
|
||||
description='LG SmartThinQ API client',
|
||||
author='Adrian Sampson',
|
||||
author_email='adrian@radbox.org',
|
||||
url='https://github.com/sampsyo/wideq',
|
||||
license='MIT',
|
||||
platforms='ALL',
|
||||
install_requires=['requests'],
|
||||
py_modules=['wideq'],
|
||||
classifiers=[
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
'Programming Language :: Python :: 3',
|
||||
],
|
||||
)
|
3
wideq.py
3
wideq.py
@ -1,3 +1,5 @@
|
||||
"""Reverse-engineered client for the LG SmartThinQ API.
|
||||
"""
|
||||
import requests
|
||||
from urllib.parse import urljoin, urlencode, urlparse, parse_qs
|
||||
import uuid
|
||||
@ -9,6 +11,7 @@ import datetime
|
||||
from collections import namedtuple
|
||||
import enum
|
||||
|
||||
__version__ = '1.0.0'
|
||||
|
||||
GATEWAY_URL = 'https://kic.lgthinq.com:46030/api/common/gatewayUriList'
|
||||
APP_KEY = 'wideq'
|
||||
|
Loading…
x
Reference in New Issue
Block a user