Skip to main content

gimodules-python

End of Life (EOL): This package is deprecated and no longer actively developed.

Please migrate to pygidata, which is the maintained successor.

Deprecation Notice

  • gimodules is in maintenance-only / end-of-life state.

  • New features will be added to pygidata only.

  • For new projects, use pygidata directly.

Usage

Install from PyPi

pip install gimodules

Import module in python script and call functions.

A detailed description of the package and other APIs can be found in the Gantner Documentation.

from gimodules.cloudconnect.cloud_request import CloudRequest



cloud = CloudRequest()

cloud.login(url='https://example.gi-cloud.io', access_token='TOKEN') # Create a token under Tools -> Monitor

cloud.get_all_stream_metadata()

Development

Information on how to manually distribute this package can be found here

https://packaging.python.org/en/latest/tutorials/packaging-projects/

Hint: If you are debugging the source code with a jupyter notebook, run this code in the first cell to enable autoreloading source code changes.

%load_ext autoreload

%autoreload 2

Distribute with CI / CD

Edit setup.py version number and create a release.

-> Creating a release will trigger the workflow to push the package to PyPi

Tests

run tests locally:

pipenv run test -v

or

pytest

Requirements

When starting to develop you can install the requirements with:

pip install -r requirements.txt

When you add new components and the requirements change,

you can find out what packages are needed by the project and create new requirements:

pipreqs .

To create project all current packages installed in your venv for requirements automatically:

pip3 freeze > requirements.txt

NOTE: Remove the old gimodules version from requirements.txt before pushing (dependency conflict).


Documentation

The documentation is being built as extern script in the GI.Sphinx repository.

The documentation consists of partially generated content.

To generate .rst files from the code package, run the following command from the root directory of the project:

sphinx-apidoc -o docs/source/ gimodules

You need pandoc installed on the system itself first to build:

sudo apt install pandoc

Then, to build the documentation, run the following commands:

cd docs

sudo apt update

pip install -r requirements.txt

make html

Linting / Type hints

This project follows the codestyle PEP8 and uses the linter flake8 (with line length = 100).

You can format and check the code using lint.sh:

./lint.sh [directory/]

Type hints are highly recommended.

Type hints in Python specify the expected data types of variables,

function arguments, and return values, improving code readability,

catching errors early, and aiding in IDE autocompletion.

To include type hints in the check:

mpypy=true ./lint.sh [directory])

Metadata

Release files for gimodules 0.3.1

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

Source distribution (sdist)

Source distribution for gimodules 0.3.1
File Size Uploaded Provenance Actions
gimodules-0.3.1.tar.gz 39.1 kB Without provenance Details for gimodules-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 80.0 kB

Release files / gimodules-0.3.1.tar.gz

Download URL gimodules-0.3.1.tar.gz
Size 39.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0ce000fa6da4698edbbb6f1b90a2a8485043337815bf2e6e190a3d52486b90e4
BLAKE2b-256 checksum
How to use checksums
637f3f71cd77be39e45f3a46b92601c35abbf5c90c2dc4e5a54332eac1b035d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / gimodules-0.3.1-py3-none-any.whl

Download URL gimodules-0.3.1-py3-none-any.whl
Size 40.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63d284ee2eb715b6ed8efd95eaa281e5971cb66e88a68152d0cdda461e8e206f
BLAKE2b-256 checksum
How to use checksums
a392d1d3825c7d2d2668ec6de5274c5999562eb777c7f2bdf8a97f2ff64d3c01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Security for gimodules 0.3.1

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.

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