Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
parser.add_argument("-d", "--display-type",
dest="displayType", default=None,
help="output displays: json, xml, table or default",
choices=tuple(display_types))
parser.add_argument("-p", "--profile",
dest="serverProfile", default=None,
help="server profile to load")
parser.add_argument("commands", nargs=argparse.REMAINDER,
help="API commands")
argcomplete.autocomplete(parser)
args = parser.parse_args()
shell = CloudMonkeyShell(sys.argv[0], args.configFile)
if args.displayType and args.displayType in display_types:
shell.set_attr("display", args.displayType)
if args.noblock_async:
shell.set_attr("asyncblock", "false")
if args.block_async:
shell.set_attr("asyncblock", "true")
if args.serverProfile and args.serverProfile.strip() != '':
shell.do_set("profile %s" % args.serverProfile)
if len(args.commands) > 0:
shell.set_attr("color", "false")
commands = []
def cmdloop(self, intro=None):
self.interpreterMode = True
print(self.intro)
print "Using management server profile:", self.profile, "\n"
while True:
try:
super(CloudMonkeyShell, self).cmdloop(intro="")
except KeyboardInterrupt:
print("^C")
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from cloudmonkey import __version__, __description__
from cloudmonkey import __maintainer__, __maintaineremail__
from cloudmonkey import __project__, __projecturl__, __projectemail__
try:
import readline
except ImportError:
requires.append('readline')
setup(
name = 'cloudmonkey',
version = __version__,
author = __project__,
author_email = __projectemail__,
maintainer = __maintainer__,
maintainer_email = __maintaineremail__,
url = __projecturl__,
description = __description__,
long_description = "cloudmonkey is a CLI for Apache CloudStack",
platforms = ("Any",),
license = 'ASL 2.0',
packages = find_packages(),
install_requires = [
'Pygments>=1.5',
'prettytable>=0.6',
],
include_package_data = True,
zip_safe = False,
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
try:
from setuptools import setup, find_packages
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from cloudmonkey import __version__
name = 'cloudmonkey'
version = __version__
requires = ['Pygments>=1.5',
'prettytable>=0.6',
]
try:
import readline
except ImportError:
requires.append('readline')
setup(
name = name,
version = version,
author = "The Apache CloudStack Team",
author_email = "dev@cloudstack.apache.org",
maintainer = "Rohit Yadav",
maintainer_email = "bhaisaab@apache.org",
except ImportError:
platform = str(sys.platform).lower()
if 'win32' in platform or 'win64' in platform:
requires.append('pyreadline')
else:
requires.append('readline')
# Upgrade notes for 5.3.0
print "If you're upgrading, run the following to enable parameter completion:"
print " cloudmonkey sync"
print " cloudmonkey set paramcompletion true"
print "Parameter completion may fail, if the above is not run!"
setup(
name = 'cloudmonkey',
version = __version__,
author = __project__,
author_email = __projectemail__,
maintainer = __maintainer__,
maintainer_email = __maintaineremail__,
url = __projecturl__,
description = __description__,
long_description = "cloudmonkey is a CLI for Apache CloudStack",
platforms = ("Any",),
license = 'ASL 2.0',
packages = find_packages(),
install_requires = requires,
include_package_data = True,
zip_safe = False,
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
from cloudmonkey import __project__, __projecturl__, __projectemail__
try:
import readline
except ImportError:
requires.append('readline')
setup(
name = 'cloudmonkey',
version = __version__,
author = __project__,
author_email = __projectemail__,
maintainer = __maintainer__,
maintainer_email = __maintaineremail__,
url = __projecturl__,
description = __description__,
long_description = "cloudmonkey is a CLI for Apache CloudStack",
platforms = ("Any",),
license = 'ASL 2.0',
packages = find_packages(),
install_requires = [
'Pygments>=1.5',
'prettytable>=0.6',
],
include_package_data = True,
zip_safe = False,
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
# Upgrade notes for 5.3.0
print "If you're upgrading, run the following to enable parameter completion:"
print " cloudmonkey sync"
print " cloudmonkey set paramcompletion true"
print "Parameter completion may fail, if the above is not run!"
setup(
name = 'cloudmonkey',
version = __version__,
author = __project__,
author_email = __projectemail__,
maintainer = __maintainer__,
maintainer_email = __maintaineremail__,
url = __projecturl__,
description = __description__,
long_description = "cloudmonkey is a CLI for Apache CloudStack",
platforms = ("Any",),
license = 'ASL 2.0',
packages = find_packages(),
install_requires = requires,
include_package_data = True,
zip_safe = False,
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Interpreters",
requires.append('pyreadline')
else:
requires.append('readline')
# Upgrade notes for 5.3.0
print "If you're upgrading, run the following to enable parameter completion:"
print " cloudmonkey sync"
print " cloudmonkey set paramcompletion true"
print "Parameter completion may fail, if the above is not run!"
setup(
name = 'cloudmonkey',
version = __version__,
author = __project__,
author_email = __projectemail__,
maintainer = __maintainer__,
maintainer_email = __maintaineremail__,
url = __projecturl__,
description = __description__,
long_description = "cloudmonkey is a CLI for Apache CloudStack",
platforms = ("Any",),
license = 'ASL 2.0',
packages = find_packages(),
install_requires = requires,
include_package_data = True,
zip_safe = False,
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
from cloudmonkey import __version__, __description__
from cloudmonkey import __maintainer__, __maintaineremail__
from cloudmonkey import __project__, __projecturl__, __projectemail__
try:
import readline
except ImportError:
requires.append('readline')
setup(
name = 'cloudmonkey',
version = __version__,
author = __project__,
author_email = __projectemail__,
maintainer = __maintainer__,
maintainer_email = __maintaineremail__,
url = __projecturl__,
description = __description__,
long_description = "cloudmonkey is a CLI for Apache CloudStack",
platforms = ("Any",),
license = 'ASL 2.0',
packages = find_packages(),
install_requires = [
'Pygments>=1.5',
'prettytable>=0.6',
],
include_package_data = True,
zip_safe = False,
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
else:
requires.append('readline')
# Upgrade notes for 5.3.0
print "If you're upgrading, run the following to enable parameter completion:"
print " cloudmonkey sync"
print " cloudmonkey set paramcompletion true"
print "Parameter completion may fail, if the above is not run!"
setup(
name = 'cloudmonkey',
version = __version__,
author = __project__,
author_email = __projectemail__,
maintainer = __maintainer__,
maintainer_email = __maintaineremail__,
url = __projecturl__,
description = __description__,
long_description = "cloudmonkey is a CLI for Apache CloudStack",
platforms = ("Any",),
license = 'ASL 2.0',
packages = find_packages(),
install_requires = requires,
include_package_data = True,
zip_safe = False,
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
"Programming Language :: Python",