example config done

This commit is contained in:
2018-05-09 03:27:58 -04:00
parent 5182e8154b
commit 4dd03dea75
16 changed files with 183 additions and 6 deletions

View File

@@ -0,0 +1,3 @@
import jinja2
import os
import shutil

2
bdisk/GIT.py Normal file
View File

@@ -0,0 +1,2 @@
import git
import os

View File

@@ -0,0 +1 @@
import gpg

View File

@@ -0,0 +1 @@
import OpenSSL

View File

@@ -0,0 +1,3 @@
import os
import shutil
import subprocess

View File

@@ -0,0 +1,3 @@
import os
import psutil
import subprocess

View File

@@ -0,0 +1,29 @@
import validators
from urllib.parse import urlparse
try:
from lxml import etree
has_lxml = True
except ImportError:
import xml.etree.ElementTree as etree
has_lxml = False
"""Read a configuration file, parse it, and make it available to the rest of
BDisk."""
class Conf(object):
def __init__(self, cfg, profile = None, id_type = 'name'):
"""Conf classes accept the following parameters:
cfg - The configuration. Can be a filesystem path, a string, bytes,
or a stream
profile (optional) - A sub-profile in the configuration. If None is
provided, we'll first look for a profile named
'default'. If one isn't found, then the first
profile found will be used
id_type (optional) - The type of identifer to use for profile=.
Valid values are:
id
name
uuid"""
pass

View File

@@ -0,0 +1,3 @@
import copy
import importlib
import os

View File

@@ -0,0 +1 @@
import GIT

1
bdisk/logger.py Normal file
View File

@@ -0,0 +1 @@
import logging

View File

@@ -1,4 +1,15 @@
#!/usr/bin/env python3.6
def main():
import argparse
"""The primary user interface for BDisk. If we are running interactively,
parse arguments first, then initiate a BDisk session."""
def parseArgs():
pass
def run():
pass
def run_interactive():
pass

View File

@@ -0,0 +1,2 @@
import shutil
import subprocess