osn-var-tools is a Python library providing a versatile toolkit for variable manipulation, formatting, introspection, and data handling, simplifying common tasks and enhancing code clarity.
Project description
osn-var-tools: A Python Library for variables
osn-var-tools is a Python library providing a comprehensive suite of tools designed to streamline various tasks related to variable manipulation, inspection, and formatting. From simplifying complex formatting operations to providing utilities for introspection and date manipulation, osn-var-tools aims to boost your productivity and enhance code clarity.
Key Features
- Formatting: Effortlessly format numbers, data structures, and more with flexible options for customization. Create visually appealing representations of complex data, making it easier to understand and analyze.
- Data Handling: Manipulate and work with data structures effectively. Utilities are provided for common tasks like generating date ranges, managing collections, and performing data validation.
- Python Introspection: Gain deeper insights into your code with tools for inspecting functions, classes, and other Python objects. Retrieve parameters, fields, and other metadata to understand the structure and behavior of your code.
- Variable Utilities: Access a collection of helpful functions for various variable-related operations, such as type checking, value comparisons, and data transformations. osn-var-tools handles many common variable-related tasks efficiently.
Installation
-
With pip:
pip install osn-var-tools
-
With git:
pip install git+https://github.com/oddshellnick/osn-var-tools.git
Usage Examples
The following examples illustrate a small subset of osn-var-tools’ capabilities. Refer to the detailed documentation for more comprehensive examples and usage instructions.
Formatting pandas.DataFrame:
# Formatting
from osn_var_tools.format_tools import format_data_frame
import pandas as pd
df = pd.DataFrame({'A': [1, 2.5, 3], 'B': [4, 5, 6]})
formatted_df = format_data_frame(df)
print(formatted_df)
Yielding datetime in range:
# Date Manipulation
from datetime import datetime, timedelta
from osn_var_tools.var_utilities import date_range
start = datetime(2024, 1, 1)
end = datetime(2024, 1, 5)
delta = timedelta(days=1)
for date in date_range(start, end, delta):
print(date)
This overview provides a glimpse of osn-var-tools’ functionality. Explore the full documentation to uncover the full potential of this versatile library.
Future Notes
osn-var-tools is actively maintained and will continue to evolve with the addition of new utilities and enhancements to existing features. Community contributions and suggestions are highly encouraged. Please feel free to report any issues, propose new features, or submit pull requests.
Project details
Release history Release notifications | RSS feed
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 osn_var_tools-1.0.0.tar.gz.
File metadata
- Download URL: osn_var_tools-1.0.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff47ab79336a6e2533abdab7f12f234586946f0a5dec0e614c538ad33b530db5
|
|
| MD5 |
c68b195581152bbf5614f2bf1e829823
|
|
| BLAKE2b-256 |
f5dd0abd5d429991c15414078af27807678344a1c0bb51a90420a4abd5a06f29
|
Provenance
The following attestation bundles were made for osn_var_tools-1.0.0.tar.gz:
Publisher:
python-publish.yml on oddshellnick/osn-var-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
osn_var_tools-1.0.0.tar.gz -
Subject digest:
ff47ab79336a6e2533abdab7f12f234586946f0a5dec0e614c538ad33b530db5 - Sigstore transparency entry: 178996039
- Sigstore integration time:
-
Permalink:
oddshellnick/osn-var-tools@cd56d8e31f3a5ab033007e04f307357cb7da7675 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/oddshellnick
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cd56d8e31f3a5ab033007e04f307357cb7da7675 -
Trigger Event:
release
-
Statement type:
File details
Details for the file osn_var_tools-1.0.0-py3-none-any.whl.
File metadata
- Download URL: osn_var_tools-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a599e022fffd346f3b0dd85088571613bd4bccef251271b5fef167fdb787489
|
|
| MD5 |
1f37fdd1f4c29d123aa4e052981c8853
|
|
| BLAKE2b-256 |
0cb3bf4ed1561bfe7f6bfbeb1ba4ed4703ee30d1cfc7cd21682f16f000fa6856
|
Provenance
The following attestation bundles were made for osn_var_tools-1.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on oddshellnick/osn-var-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
osn_var_tools-1.0.0-py3-none-any.whl -
Subject digest:
4a599e022fffd346f3b0dd85088571613bd4bccef251271b5fef167fdb787489 - Sigstore transparency entry: 178996040
- Sigstore integration time:
-
Permalink:
oddshellnick/osn-var-tools@cd56d8e31f3a5ab033007e04f307357cb7da7675 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/oddshellnick
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cd56d8e31f3a5ab033007e04f307357cb7da7675 -
Trigger Event:
release
-
Statement type: