Skip to main content

GobTools

Library to control and interact with the Goblin ecosystem.

Apache-2.0 Github Tag

What is GobTools?

GobTools streamlines access to GoblinWeaver.
By simply passing information as arguments to Python functions, requests are sent effortlessly, and responses are returned as dictionaries.

Please refer to the official repository for more details about GoblinWeaver.

Installation

  • pip

Run the following command:

pip install git+https://github.com/Hietan/gobtools.git
  • Rye

Run the following command in a rye project:

rye add gobtools --git https://github.com/Hietan/gobtools.git

Usage

1. Import

Import the necessary module for creating a controller instance:

from gobtools.weaver.controller import WeaverController

2. Instance Creation

Create an instance of the controller by specifying the URL of the GoblinWeaver API server.

controller = WeaverController("<your-api-server-url>")

3. Get Data

Get all releases of an artifact from org.apache.logging.log4j:log4j-core with added values (CVE, FRESHNESS).
The function get_artifact_releases sends POST requests to <your-api-server-url>/artifact/releases.
You can receive the results as dictionary.

releases = controller.get_artifact_releases(
    "org.apache.logging.log4j", 
    "log4j-core", 
    ["CVE", "FRESHNESS"]
)

Other REST API endpoints can also be accessed through GobTools function.
For detailed API documentation, please refer to <your-api-server-url>/swagger-ui/index.html

4. Print Result

By using json_format, you can format and display the results.

from gobtools.utils.json import json_format

print(json_format(releases))

Metadata

Release files for gobtools 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gobtools 0.1.2
File Size Uploaded
gobtools-0.1.2.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gobtools 0.1.2
File Interpreter ABI Platform
gobtools-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 20.1 kB

Release files / gobtools-0.1.2.tar.gz

Download URL gobtools-0.1.2.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2b6eceb68d993a02379754ab94dffdafa31943a548ced33bdee5aedbe43c5f28
BLAKE2b-256 checksum
How to use checksums
b47f2361f272080394a485cb16e3afffa70622c76ae6a77a201723ace8d4b1b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / gobtools-0.1.2-py3-none-any.whl

Download URL gobtools-0.1.2-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83ec458ae5242e06abcd4837247831d904d4d45804391a8f711c62e511ff08d7
BLAKE2b-256 checksum
How to use checksums
34e13bbd3bd0cdd252751b5a0ab2b930ac6d5076113a74561fb784034f22af1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page