GobTools
Library to control and interact with the Goblin ecosystem.
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gobtools-0.1.2.tar.gz | 10.0 kB | Without provenance | Details for gobtools-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gobtools-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for gobtools-0.1.2-py3-none-any.whl |
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
|
Security for gobtools 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.