Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

pylgnetcast

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pylgnetcast - npm Package Compare versions

Comparing version
0.3.2
to
0.3.3
+1
pylgnetcast.egg-info/requires.txt
requests
+57
-5

@@ -1,10 +0,62 @@

Metadata-Version: 1.0
Metadata-Version: 2.1
Name: pylgnetcast
Version: 0.3.2
Version: 0.3.3
Summary: Client for the LG Smart TV running NetCast 3 or 4.
Home-page: https://github.com/Drafteed/python-lgnetcast
Author: UNKNOWN
Author-email: UNKNOWN
Maintainer: Artem Draft
Maintainer-email: artemon_93@mail.ru
License: MIT
Description: UNKNOWN
Description: # Python LG Netcast
A Python 3 library and command line tool to control LG Smart TV running NetCast 3.0 (LG Smart TV models released in 2012) and NetCast 4.0 (LG Smart TV models released in 2013) via TCP/IP.
This library was forked from [wokar/pylgnetcast](https://github.com/wokar/pylgnetcast) and is primarily being developed with the intent of supporting [home-assistant](https://github.com/home-assistant/home-assistant).
## Dependencies
* Python 3
* [requests](https://pypi.python.org/pypi/requests) package.
## API Usage
```python
from xml.etree import ElementTree
from pylgnetcast import LgNetCastClient, LG_COMMAND, LG_QUERY
with LgNetCastClient('192.168.1.5', '889955') as client:
client.send_command(LG_COMMAND.MUTE_TOGGLE)
data = client.query_data(LG_QUERY.VOLUME_INFO)
if data:
print(ElementTree.tostring(data[0], encoding='unicode'))
```
## Command Line Tool
PyLgNetCast also provides a simple command line tool to remote control a TV.
The tool needs a pairing key to be allowed to send commands to your TV.
To get the pairing key just start the tool while your TV is on:
```sh
python -m pylgnetcast --host <IP of your TV>
```
This will display the pairing key on your TV.
To retrieve status information from your TV start the tool like:
```sh
python -m pylgnetcast --host <IP of your TV> --pairing_key <pairing key of your TV>
```
This will display information about the current channel, volume, 3D mode, etc. retrieved from your TV.
If you want to send a command to your TV, for instance to turn the volume up, check the list of available commands in the pylgnetcast.py file.
The class LG_COMMAND defines all supported commands and volume up would be defined as 24.
```sh
python -m pylgnetcast --host <IP of your TV> --pairing_key <pairing key of your TV> --command 24
```
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

@@ -1,10 +0,62 @@

Metadata-Version: 1.0
Metadata-Version: 2.1
Name: pylgnetcast
Version: 0.3.2
Version: 0.3.3
Summary: Client for the LG Smart TV running NetCast 3 or 4.
Home-page: https://github.com/Drafteed/python-lgnetcast
Author: UNKNOWN
Author-email: UNKNOWN
Maintainer: Artem Draft
Maintainer-email: artemon_93@mail.ru
License: MIT
Description: UNKNOWN
Description: # Python LG Netcast
A Python 3 library and command line tool to control LG Smart TV running NetCast 3.0 (LG Smart TV models released in 2012) and NetCast 4.0 (LG Smart TV models released in 2013) via TCP/IP.
This library was forked from [wokar/pylgnetcast](https://github.com/wokar/pylgnetcast) and is primarily being developed with the intent of supporting [home-assistant](https://github.com/home-assistant/home-assistant).
## Dependencies
* Python 3
* [requests](https://pypi.python.org/pypi/requests) package.
## API Usage
```python
from xml.etree import ElementTree
from pylgnetcast import LgNetCastClient, LG_COMMAND, LG_QUERY
with LgNetCastClient('192.168.1.5', '889955') as client:
client.send_command(LG_COMMAND.MUTE_TOGGLE)
data = client.query_data(LG_QUERY.VOLUME_INFO)
if data:
print(ElementTree.tostring(data[0], encoding='unicode'))
```
## Command Line Tool
PyLgNetCast also provides a simple command line tool to remote control a TV.
The tool needs a pairing key to be allowed to send commands to your TV.
To get the pairing key just start the tool while your TV is on:
```sh
python -m pylgnetcast --host <IP of your TV>
```
This will display the pairing key on your TV.
To retrieve status information from your TV start the tool like:
```sh
python -m pylgnetcast --host <IP of your TV> --pairing_key <pairing key of your TV>
```
This will display information about the current channel, volume, 3D mode, etc. retrieved from your TV.
If you want to send a command to your TV, for instance to turn the volume up, check the list of available commands in the pylgnetcast.py file.
The class LG_COMMAND defines all supported commands and volume up would be defined as 24.
```sh
python -m pylgnetcast --host <IP of your TV> --pairing_key <pairing key of your TV> --command 24
```
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

@@ -10,2 +10,3 @@ README.md

pylgnetcast.egg-info/not-zip-safe
pylgnetcast.egg-info/requires.txt
pylgnetcast.egg-info/top_level.txt
+1
-1

@@ -5,3 +5,3 @@ # Python LG Netcast

This library was forked from [pylgnetcast](https://github.com/wokar/pylgnetcast) and is primarily being developed with the intent of supporting home-assistant.
This library was forked from [wokar/pylgnetcast](https://github.com/wokar/pylgnetcast) and is primarily being developed with the intent of supporting [home-assistant](https://github.com/home-assistant/home-assistant).

@@ -8,0 +8,0 @@ ## Dependencies

@@ -1,11 +0,27 @@

from setuptools import setup
from os import path
setup(name='pylgnetcast',
version='0.3.2',
description='Client for the LG Smart TV running NetCast 3 or 4.',
url='https://github.com/Drafteed/python-lgnetcast',
license='MIT',
packages=['pylgnetcast'],
install_requires=[],
zip_safe=False)
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='pylgnetcast',
version='0.3.3',
maintainer='Artem Draft',
maintainer_email='artemon_93@mail.ru',
description='Client for the LG Smart TV running NetCast 3 or 4.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/Drafteed/python-lgnetcast',
license='MIT',
packages=['pylgnetcast'],
install_requires=['requests'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
zip_safe=False
)