You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

python-mantis

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-mantis

A python interface to manage everything about Mantis Bug Tracker

0.6
Source
pipPyPI
Maintainers
1

python-mantis

A python API to manage everything about Mantis Bug Tracker

Instalation

pip install python-mantis

Usage

from mantis import MantisBT

client = MantisBT('https://<your-mantisbt-server>:<your-mantisbt-port>/', '<your mantisbt token API>')

# Get all projects from your mantisbt server
projects = client.projects.get_all()

# Get first project
project = projects[0]
project.name # Project name

# Get all issues for project
issues = project.get_issues()

# Get first issues
issue = issues[0]
issue.summary       # Issue title
issue.description   # Issue Description

# Get all notes for issue
notes = issue.get_notes()

# Get first note
note = notes[0]
note._id    # Note ID
note.text   # Get note comment

Keywords

api

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts