A library for utility functions common across Contigion projects
Project description
contigion-utils
A library for utility functions common across Contigion projects
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file contigion_utils-1.0.5.tar.gz.
File metadata
- Download URL: contigion_utils-1.0.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
250f6d07a6bf093d5ed1d0b1e370eb03317696ea97daa66e21b0747245576e82
|
|
| MD5 |
9c3e1642fc7bbf1c954ee7fa9335e251
|
|
| BLAKE2b-256 |
1196e9206af126346b25edbaf2c996547831fc27e1e8ab769cf5554d92974853
|
Provenance
The following attestation bundles were made for contigion_utils-1.0.5.tar.gz:
Publisher:
publish.yml on Contigion/utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
contigion_utils-1.0.5.tar.gz -
Subject digest:
250f6d07a6bf093d5ed1d0b1e370eb03317696ea97daa66e21b0747245576e82 - Sigstore transparency entry: 160665170
- Sigstore integration time:
-
Permalink:
Contigion/utils@fb8d6e17ff5bc5b77a13e363a12c9686caf1f5fc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Contigion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fb8d6e17ff5bc5b77a13e363a12c9686caf1f5fc -
Trigger Event:
push
-
Statement type:
File details
Details for the file contigion_utils-1.0.5-py3-none-any.whl.
File metadata
- Download URL: contigion_utils-1.0.5-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
827de5989aa185eb09982c7ee15a302a6d32dc568b2133a582d8713aeda7cf2f
|
|
| MD5 |
459e6c393171fc386fa856a2de6ac791
|
|
| BLAKE2b-256 |
c3c782c232a0970d349b76dfff91bc4b6db551973140c2ff01b18f43870e5487
|
Provenance
The following attestation bundles were made for contigion_utils-1.0.5-py3-none-any.whl:
Publisher:
publish.yml on Contigion/utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
contigion_utils-1.0.5-py3-none-any.whl -
Subject digest:
827de5989aa185eb09982c7ee15a302a6d32dc568b2133a582d8713aeda7cf2f - Sigstore transparency entry: 160665172
- Sigstore integration time:
-
Permalink:
Contigion/utils@fb8d6e17ff5bc5b77a13e363a12c9686caf1f5fc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Contigion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fb8d6e17ff5bc5b77a13e363a12c9686caf1f5fc -
Trigger Event:
push
-
Statement type: