All Projects → tomcatmanager → Tomcatmanager

tomcatmanager / Tomcatmanager

Licence: mit
A command line tool and python library for managing a tomcat server

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Tomcatmanager

Choicebot
Instagram bot to like, comment and follow based on hashtags
Stars: ✭ 94 (-10.48%)
Mutual labels:  command-line
Cryptocurrency Cli
💰 Cryptocurrency Portfolio On The Command Line 💰
Stars: ✭ 99 (-5.71%)
Mutual labels:  command-line
Csv2db
The CSV to database command line loader
Stars: ✭ 102 (-2.86%)
Mutual labels:  command-line
Synonym
Find synonyms in 15 different languages directly from your terminal.
Stars: ✭ 95 (-9.52%)
Mutual labels:  command-line
Tooling
Advancing Node.js as a framework for writing great tools
Stars: ✭ 98 (-6.67%)
Mutual labels:  command-line
Ascii Runner
An infinite runner in your terminal
Stars: ✭ 100 (-4.76%)
Mutual labels:  command-line
Curl2httpie
covert command arguments between cURL and HTTPie
Stars: ✭ 92 (-12.38%)
Mutual labels:  command-line
Awesome Cli
A curated list of awesome resources for building immersive CLI experiences.
Stars: ✭ 104 (-0.95%)
Mutual labels:  command-line
Rundeck Cli
CLI tool for Rundeck
Stars: ✭ 98 (-6.67%)
Mutual labels:  command-line
Climate
The swiss-army knife of utility tools for Linux.
Stars: ✭ 1,372 (+1206.67%)
Mutual labels:  command-line
Argumentum
C++ command line parsing library
Stars: ✭ 92 (-12.38%)
Mutual labels:  command-line
Terminal layout
The project help you to quickly build layouts in terminal,cross-platform(一个跨平台的命令行ui布局工具)
Stars: ✭ 98 (-6.67%)
Mutual labels:  command-line
Ask Cli
Alexa Skills Kit Command Line Interface
Stars: ✭ 100 (-4.76%)
Mutual labels:  command-line
Getnews.tech
A web server that fetches data from the News API and formats it for display in the terminal.
Stars: ✭ 94 (-10.48%)
Mutual labels:  command-line
Somafm
📻 Play & record SomaFM radio channels
Stars: ✭ 103 (-1.9%)
Mutual labels:  command-line
Ytcc
Command line tool to keep track of your favorite playlists on YouTube and many other places.
Stars: ✭ 92 (-12.38%)
Mutual labels:  command-line
Tomcat exporter
A Prometheus exporter for Apache Tomcat
Stars: ✭ 99 (-5.71%)
Mutual labels:  tomcat
Commandlineparser
Command line parser. Declarative arguments support. Rich set of argument types (switches, enums, files, etc...). Mutually exclusive arguments validations.
Stars: ✭ 104 (-0.95%)
Mutual labels:  command-line
Whatsmars
Java生态研究(Spring Boot + Redis + Dubbo + RocketMQ + Elasticsearch)🔥🔥🔥🔥🔥
Stars: ✭ 1,389 (+1222.86%)
Mutual labels:  tomcat
Kubo
🎻 Lightweight command-line package for Go
Stars: ✭ 101 (-3.81%)
Mutual labels:  command-line

tomcatmanager

.. image:: https://img.shields.io/pypi/v/tomcatmanager.svg?label=latest%20version&colorB=1074b5 :target: https://pypi.python.org/pypi/tomcatmanager :alt: latest version .. image:: https://img.shields.io/pypi/pyversions/tomcatmanager.svg?colorB=1074b5 :target: https://pypi.python.org/pypi/tomcatmanager :alt: python .. image:: https://img.shields.io/badge/license-MIT-orange.svg :target: https://github.com/tomcatmanager/tomcatmanager/blob/master/LICENSE :alt: license .. image:: https://img.shields.io/travis/tomcatmanager/tomcatmanager/develop.svg :target: https://travis-ci.org/tomcatmanager/tomcatmanager :alt: build status .. image:: https://img.shields.io/appveyor/ci/kotfu/tomcatmanager/develop.svg :target: https://ci.appveyor.com/project/kotfu/tomcatmanager :alt: build status .. image:: https://img.shields.io/codecov/c/github/tomcatmanager/tomcatmanager/develop.svg :target: https://codecov.io/gh/tomcatmanager/tomcatmanager :alt: code coverage .. image:: https://readthedocs.org/projects/tomcatmanager/badge/?version=latest :target: http://tomcatmanager.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

If you use Apache Tomcat for any sort of development work you’ve probably deployed lots of applications to it. There are a several ways to get your war files deployed:

  • use the Tomcat Manager <https://tomcat.apache.org/tomcat-9.0-doc/manager-howto.html>_ application in your browser
  • use the Tomcat Ant Tasks <https://cwiki.apache.org/confluence/display/tomcat/AntDeploy>_ included with Tomcat
  • use Cargo <https://codehaus-cargo.github.io/>_ and its plugins for ant and maven

Here's another way: a command line tool and python library for managing a Tomcat server.

What Can It Do?

This package installs a command line utility called tomcat-manager. It's easily scriptable using your favorite shell:

.. code-block:: text

$ tomcat-manager --user=ace --password=newenglandclamchowder
http://localhost:8080/manager deploy local sample.war /sampleapp $ echo $? 0

There is also an interactive mode:

.. code-block:: text

$ tomcat-manager tomcat-manager>connect http://localhost:8080/manager ace newenglandclamchowder --connected to http://localhost:8080/manager as ace tomcat-manager>list Path Status Sessions Directory


/ running 0 ROOT /sampleapp stopped 0 sampleapp##9 /sampleapp running 0 sampleapp##8 /host-manager running 0 /usr/share/tomcat8-admin/host-manage /manager running 0 /usr/share/tomcat8-admin/manager

And for the ultimate in flexibility, you can use the python package directly:

.. code-block:: python

import tomcatmanager as tm tomcat = tm.TomcatManager() r = tomcat.connect(url='http://localhost:8080/manager', ... user='ace', password='newenglandclamchowder') tomcat.is_connected True r = tomcat.stop('/someapp') r.status_code == tm.status_codes.ok False r.status_message 'No context exists named /someapp'

Installation

You'll need Python >= 3.5. Install using pip:

.. code-block:: bash

$ pip install tomcatmanager

Works on Windows, macOS, and Linux.

Tomcat Configuration

This library and associated tools do their work via the Tomcat Manager web application included in the Tomcat distribution. You will need to configure authentication in tomcat-users.xml with access to the manager-script role:

.. code-block:: xml

... ...

Features

The tomcat-manager command line tool supports the following commands:

  • deploy - deploy a war file containing a tomcat application in the tomcat server
  • redeploy - remove the application currently installed at a given path and install a new war file there
  • undeploy - remove an application from the tomcat server
  • start - start a tomcat application that has been deployed but isn't running
  • stop - stop a tomcat application and leave it deployed on the server
  • reload - stop and start a tomcat application
  • sessions - show active sessions for a particular tomcat application
  • expire - expire idle sessions
  • list - show all installed applications
  • serverinfo - show information about the server, including tomcat version, OS version and architecture, and jvm version
  • status - show server status information in xml format
  • vminfo - show diagnostic information about the jvm
  • sslconnectorciphers - show ssl/tls ciphers configured for each connector
  • threaddump - show a jvm thread dump
  • resources - show the global jdni resources configured in tomcat
  • findleakers - show tomcat applications that leak memory

Documentation

Complete documentation is available at <http://tomcatmanager.readthedocs.io/en/latest/>_

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].