-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added /wlan/host-list api endpoint and setup.py file
- Loading branch information
Showing
8 changed files
with
133 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ venv | |
gw.py | ||
|
||
*.csv | ||
*.pyc | ||
|
||
initial_skip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
language: python | ||
python: | ||
- 2.7 | ||
- 3.5 | ||
- 3.6 | ||
matrix: | ||
include: | ||
- python: 3.7 | ||
dist: xenial | ||
sudo: true | ||
sudo: false | ||
install: | ||
- pip install -U pip | ||
- pip install . | ||
script: | ||
- nosetests --stop --verbose tests | ||
deploy: | ||
provider: pypi | ||
user: dopstar | ||
password: | ||
secure: UeBh7chwub2qlaCpG4C3/BShOZJfcz1LoTQk2KR6JLX6mVJgrNdPphnHMl1tQqWytNg1qtnkdvSgwqvxnx63z2UviuZlzPum6/KDTaoCfjfeAS3mVtnPRx6Di1LieVvpEeY+oLeheJdd8lXlS/GxRdGtxzgoc87fYpFFPXCx/HbL5GCXgXUMJ0tMdjcS2XrtX87iAmk7gYzPq5ovPvqTDdjLHwAKe7mfQUq61/osb9D3TeeVhXtOvLnfPIW6JylPVusgnUEXw2EpYJfZzKUITmIO5+STeRzhI9mlSa5bepUrs9wrcv4aMdXanC3MLlWfdTcafb2jr161OstXaVBhSxrw9UiSHolWE+ZOXIUVyd5l17AazZ0VckViWPMkj631gPhPLiOozq8rTNflYcuK/RZK7UM1a5rLiL78UOzyvmiKxS0YL7ATW/wC3BCN+QNqV4HMqSMqLdRcSJhAPnuWLRw9hHESlFBBHc4lq9InZP3GMddOed0nuYUDY207T87gclIhsBqFjj6Dxb9AED5gDt2m1KmX/hRQKGx9UUcqOhUeUOY/MjlvRIH+ReM14XXLMTriYX/hGwZIcOTnxSZ9bb7lWl95iflMC+5rLaV1/VCIhxhCazgKXwnTuicsSugCkFnwEqPhEPh2ZmKhLYI/LDjrJpZfC/zTVeKQkybIbyE= | ||
on: | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from huaweisms.api.common import get_from_url, ApiCtx | ||
from .config import API_URL | ||
|
||
|
||
def get_connected_hosts(ctx: ApiCtx): | ||
url = "{}/wlan/host-list".format(API_URL) | ||
return get_from_url(url, ctx) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[metadata] | ||
description-file = README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
from setuptools import setup | ||
|
||
version = '1.0.0' | ||
|
||
with open('requirements.txt') as fd: | ||
requirements = [line.strip() for line in fd if line.strip()] | ||
|
||
with open('README.md') as fd: | ||
long_description = fd.read() | ||
|
||
if 'a' in version: | ||
dev_status = '3 - Alpha' | ||
elif 'b' in version: | ||
dev_status = '4 - Beta' | ||
else: | ||
dev_status = '5 - Production/Stable' | ||
|
||
setup_args = { | ||
'name': 'huawei-modem-api-client', | ||
'version': version, | ||
'author': 'Pablo Santa Cruz, Mkhanyisi Madlavana', | ||
'author_email': 'pablo@github.com, mkhanyisi@gmail.com', | ||
'url': 'https://github.com/pablo/huawei-modem-python-api-client', | ||
'download_url': 'https://github.com/pablo/huawei-modem-python-api-client/tarball/{0}'.format(version), | ||
'package_dir': {'huaweisms': 'huaweisms'}, | ||
'description': 'huaweisms is a python api client for Huawei Modems.', | ||
'long_description': long_description, | ||
'long_description_content_type': 'text/markdown', | ||
'packages': [ | ||
'huaweisms', | ||
'huaweisms.api', | ||
'huaweisms.xml', | ||
], | ||
'install_requires': requirements, | ||
'keywords': 'Huawei Modem API', | ||
'classifiers': [ | ||
'Development Status :: {0}'.format(dev_status), | ||
'Intended Audience :: End Users/Desktop', | ||
'Natural Language :: English', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
], | ||
} | ||
|
||
setup(**setup_args) |