Skip to main content

A library for utility functions common across Contigion projects

Project description

contigion-utils

A library for utility functions common across Contigion projects

Pylint Publish to PyPI Python Version PyPi Version

Installation

To install the library, simply run:

pip install contigion-utils

Usage

You can use any of the functions in this library by importing them. For example:

from contigion_utils.log import create_file, save_dataframe
from contigion_utils.print import print_info, print_error

# Create a new file
create_file('test_file', 'This is a test.')

# Print a message
print_info('This is an informational message.')

# Save a DataFrame
import pandas as pd
df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]})
save_dataframe('data_file', df)

Modules

The library has the following modules with these functions

contigion_utils.log

  • create_file (filename, content)
  • write_to_file (filename, content)
  • save_dataframe (filename, dataframe)
  • save_plot (filename, plot)

contigion_utils.print

  • print_info (text)
  • print_debug (text)
  • print_warning (text)
  • print_success (text)
  • print_error (text)

Contributions

Contributions are welcome! If you find any issues or want to improve the library, feel free to submit an issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

contigion_utils-1.0.4.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

contigion_utils-1.0.4-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file contigion_utils-1.0.4.tar.gz.

File metadata

  • Download URL: contigion_utils-1.0.4.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for contigion_utils-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5e91a1e497cd6a6ce4e30285b5c8beb323f50c315f9c3abcf8b39cb2483a8ad4
MD5 77fa875525c244d27263d62156813d56
BLAKE2b-256 23fb97d1a7f5ff26402cd6de072611cbd32b99779a15344609ba4a3b3f8ac5c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for contigion_utils-1.0.4.tar.gz:

Publisher: publish.yml on Contigion/utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file contigion_utils-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for contigion_utils-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d20ad9ebf8c4a4323691a75bec512cedf948b2702fb6c4fafcb6ac6ae7de4f2e
MD5 3f4255b764037f29194d073856dc1433
BLAKE2b-256 7286923d6b8456a63cf43ef5ce87a02145b29d31003a342ab22b5eb327ae6fec

See more details on using hashes here.

Provenance

The following attestation bundles were made for contigion_utils-1.0.4-py3-none-any.whl:

Publisher: publish.yml on Contigion/utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page