Skip to content

Commit 1134433

Browse files
initial version
1 parent 527f1b2 commit 1134433

13 files changed

+696
-1
lines changed

.github/workflows/python-package.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
env:
6+
python_package_name: tsccm
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
python-version: [3.6, 3.7, 3.8, 3.9]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install tools
24+
run: |
25+
python -m pip install --upgrade pip build
26+
- name: Install dependencies
27+
run: |
28+
pip install -r requirements.txt
29+
- name: Build package
30+
run: python -m build
31+
32+
- name: Install locally
33+
run: |
34+
ls
35+
ls dist
36+
TOOL_CURRENT_VERSION=`sed -e 's/.*__version__ = "\(.*\)".*/\1/' ${{ env.python_package_name }}/_version.py`
37+
pip install dist/${{ env.python_package_name }}-${TOOL_CURRENT_VERSION}-py3-none-any.whl
38+
shell: bash
39+
- name: pip show package
40+
run: |
41+
pip show ${{ env.python_package_name }}

.github/workflows/python-publish.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
jobs:
16+
deploy:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: '3.x'
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install build
30+
- name: Build package
31+
run: python -m build
32+
- name: Publish package
33+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
34+
with:
35+
user: __token__
36+
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
build
2+
dist
3+
.idea
4+
.DS_Store
5+
*.egg-info
6+
__pycache__
7+
*.pyc

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Changelog
2+
3+
All notable changes to [**TSCCM** *(Tenable.SC CLI Manager)* by LimberDuck][1] project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
9+
## [0.0.1] - 2020-08-18
10+
11+
- initial release
12+
13+
14+
[0.0.1]: https://github.com/LimberDuck/tsccm/releases/tag/v0.0.1
15+
16+
[1]: https://github.com/LimberDuck/tsccm

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Tenable, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

100644100755
+57-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,57 @@
1-
# tsccm
1+
# TSCCM
2+
3+
**TSCCM** *(Tenable.SC CLI Manager)* by LimberDuck is a CLI tool which enables you to perform certain actions on Tenable.SC by (C) Tenable, Inc. via [Tenable.SC API](https://docs.tenable.com/tenablesc/api).
4+
5+
[![License](https://img.shields.io/github/license/LimberDuck/tsccm.svg)](https://github.com/LimberDuck/tsccm/blob/master/LICENSE) [![Repo size](https://img.shields.io/github/repo-size/LimberDuck/tsccm.svg)](https://github.com/LimberDuck/tsccm) [![Code size](https://img.shields.io/github/languages/code-size/LimberDuck/tsccm.svg)](https://github.com/LimberDuck/tsccm) [![Supported platform](https://img.shields.io/badge/platform-windows%20%7C%20macos%20%7C%20linux-lightgrey.svg)](https://github.com/LimberDuck/tsccm)
6+
7+
8+
Main features
9+
=============
10+
11+
Initial version of **TSCCM** lets you get Tenable.SC's:
12+
* active scans list
13+
* scan results list
14+
* policies list
15+
* credentials list
16+
* users list
17+
* groups list
18+
* status of available IPs
19+
20+
21+
How to
22+
======
23+
24+
1. Install
25+
26+
`pip install tsccm`
27+
28+
2. Run
29+
30+
`tsccm`
31+
32+
Meta
33+
====
34+
35+
Change log
36+
----------
37+
38+
See [CHANGELOG].
39+
40+
41+
Licence
42+
-------
43+
44+
MIT: [LICENSE].
45+
46+
47+
Authors
48+
-------
49+
50+
[Damian Krawczyk] created **TSCCM** *(Tenable.SC CLI Manager)* by LimberDuck.
51+
52+
[Damian Krawczyk]: https://damiankrawczyk.com
53+
54+
[CHANGELOG]: https://github.com/LimberDuck/tsccm/blob/master/CHANGELOG.md
55+
[LICENSE]: https://github.com/LimberDuck/tsccm/blob/master/LICENSE
56+
57+

requirements.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
certstore>=0.0.2
2+
click>=8.0.1
3+
keyring>=23.1.0
4+
pyTenable>=1.3.3
5+
oauthlib>=3.1.1
6+
pandas>=1.3.2
7+
tabulate>=0.8.9

setup.py

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import setuptools
2+
3+
with open("README.md", "r") as fh:
4+
long_description = fh.read()
5+
6+
with open('requirements.txt') as f:
7+
required = f.read().splitlines()
8+
9+
about = {}
10+
with open("tsccm/_version.py") as f:
11+
exec(f.read(), about)
12+
13+
setuptools.setup(
14+
name="tsccm",
15+
version=about["__version__"],
16+
author="Damian Krawczyk",
17+
author_email="damian.krawczyk@limberduck.org",
18+
description="TSCCM (Tenable.SC CLI Manager) by LimberDuck",
19+
long_description=long_description,
20+
long_description_content_type="text/markdown",
21+
url="https://github.com/LimberDuck/tsccm",
22+
packages=setuptools.find_packages(),
23+
install_requires=required,
24+
entry_points={
25+
"console_scripts": [
26+
"tsccm = tsccm.__main__:main"
27+
]
28+
},
29+
classifiers=[
30+
"Programming Language :: Python :: 3.9",
31+
"Programming Language :: Python :: 3.8",
32+
"Programming Language :: Python :: 3.7",
33+
"License :: OSI Approved :: MIT License",
34+
"Operating System :: OS Independent",
35+
"Development Status :: 4 - Beta",
36+
"Environment :: Console",
37+
],
38+
)

tsccm/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from tsccm._version import __version__

0 commit comments

Comments
 (0)