
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
tempo-api-python-client
Advanced tools
Python bindings for Tempo Rest API.
This is a Tempo API client library to simplify the interaction with Tempo timesheets. The implementation supports Tempo API v3 and v4.
Pip release is available: https://pypi.org/project/tempo-api-python-client/
Tempo Rest API documentation can be found at https://apidocs.tempo.io/
Install current release by pip
pip install tempo-api-python-client
You need an API token for communicating with tempo REST APIs.
from tempoapiclient import client_v3
tempo = client_v3.Tempo(
auth_token="<your_tempo_api_key>",
)
worklogs = tempo.get_worklogs(
dateFrom="2019-11-10",
dateTo="2019-11-11"
)
for i in worklogs:
print(i)
from tempoapiclient import client_v4
tempo = client_v4.Tempo(
auth_token="<your_tempo_api_key>",
)
worklogs = tempo.get_worklogs(
dateFrom="2019-11-10",
dateTo="2019-11-11"
)
for i in worklogs:
print(i)
There are also functions to retrieve user
and team
-specific worklogs.
logged_worklog = tempo.create_worklog(
accountId="<your_jira_account_id>",
issueId=12345,
dateFrom="2019-11-11",
timeSpentSeconds=3600,
description="Something",
startTime="17:00:00"
attributes=[{_WorkType_: "Development"}]
)
logged_worklog = tempo.update_worklog(
id="<id_of_the_worklog_to_be_updated>" # required
accountId="<your_jira_account_id>", # required
dateFrom="2019-11-11", # required
timeSpentSeconds=3600, # required
description="Something", # optional
startTime="17:00:00" # optional
)
delete_response = tempo.delete_worklog(<worklog_id>)
Flake8: flake8 --max-line-length=120 tempoapiclient/*
Pylint: pylint --max-line-length=120 tempoapiclient
Contribution is welcome. See CONTRIBUTING.md for more details.
FAQs
Python bindings for Tempo (https://apidocs.tempo.io/)
We found that tempo-api-python-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.