-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Axonius/develop
Release 2.0
- Loading branch information
Showing
152 changed files
with
15,907 additions
and
4,298 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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
playground.py | ||
|
||
.idea/inspectionProfiles/ | ||
### macOS template | ||
# General | ||
|
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 |
---|---|---|
@@ -1,3 +1 @@ | ||
3.7.3 | ||
3.6.8 | ||
2.7.16 | ||
3.7.4 |
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,43 @@ | ||
# venv | ||
pip_install_tools install requirements-pkg.txt into site-packages | ||
pipenv_install_dev install requirements-dev.txt into venv | ||
pipenv_install_lint install requirements-lint.txt into venv | ||
pipenv_install_build install requirements-build.txt into venv | ||
pipenv_install_docs install docs/requirements.txt into venv | ||
pipenv_init build a venv using pipenv | ||
pipenv_clean remove the venv built by pipenv | ||
pyenv_init setup pyenv with python 3.7.3, 3.6.8, 2.7.16 | ||
|
||
# docs | ||
docs run docs/make html and rebuild ALL docs | ||
docs_dev run docs/make html and only rebuild changed docs | ||
docs_coverage run docs/make coverage | ||
docs_linkcheck run docs/make linkcheck | ||
docs_open open the html docs in a browser | ||
docs_clean make pipenv_install_docs, run docs/make clean | ||
|
||
# git fun | ||
git_check check that the repo is clean and a tag exists for current version | ||
git_tag make a tag for current version and push it | ||
|
||
# packaging | ||
pkg_build make clean, make pipenv_install_build, build the package | ||
pkg_publish make lint, make pkg_build, make git_check, publish the package to pypi | ||
pkg_clean clean up build folders/files | ||
|
||
# testing | ||
lint run black, isort, pydocstyle, flake8, and bandit | ||
test run pytest with coverage reports | ||
test_dev run pytest with logging at debug | ||
test_cov_open open the test coverage html docs in a browser | ||
test_clean clean up test folders/files | ||
|
||
# clean up | ||
files_clean clean up a bunch of files | ||
clean make files_clean, make pkg_clean, make test_clean, make docs_clean, make pipenv_clean | ||
|
||
# other | ||
help this... | ||
|
||
# call me first | ||
init make pip_install_tools, make clean, make py_env, make pipenv_init, make pipenv_install_* |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,16 +1,36 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Axonius API Client package.""" | ||
from __future__ import absolute_import | ||
from __future__ import division | ||
from __future__ import print_function | ||
from __future__ import unicode_literals | ||
from __future__ import absolute_import, division, print_function, unicode_literals | ||
|
||
from . import api | ||
from . import constants | ||
from . import http | ||
from . import auth | ||
from . import exceptions | ||
from . import version | ||
from . import tools | ||
from . import api, auth, cli, constants, exceptions, http, logs, tools, version | ||
from .api import Adapters, Devices, Enforcements, Users | ||
from .auth import ApiKey | ||
from .connect import Connect | ||
from .http import Http | ||
|
||
__all__ = ("api", "constants", "http", "auth", "exceptions", "version", "tools") | ||
__version__ = version.__version__ | ||
LOG = logs.LOG | ||
|
||
__all__ = ( | ||
# Connection handler | ||
"Connect", | ||
# http client | ||
"Http", | ||
# authentication | ||
"ApiKey", | ||
# api | ||
"Users", | ||
"Devices", | ||
"Adapters", | ||
"Enforcements", | ||
# modules | ||
"api", | ||
"auth", | ||
"http", | ||
"exceptions", | ||
"version", | ||
"tools", | ||
"constants", | ||
"cli", | ||
"logs", | ||
) |
Oops, something went wrong.