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.
Release files for osn-var-tools 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| osn_var_tools-1.0.0.tar.gz | 14.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| osn_var_tools-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.2 kB
Release files / osn_var_tools-1.0.0.tar.gz
| Download URL | osn_var_tools-1.0.0.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff47ab79336a6e2533abdab7f12f234586946f0a5dec0e614c538ad33b530db5
|
|
BLAKE2b-256 checksum How to use checksums |
f5dd0abd5d429991c15414078af27807678344a1c0bb51a90420a4abd5a06f29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 8, 2025.
Transparency logRelease files / osn_var_tools-1.0.0-py3-none-any.whl
| Download URL | osn_var_tools-1.0.0-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a599e022fffd346f3b0dd85088571613bd4bccef251271b5fef167fdb787489
|
|
BLAKE2b-256 checksum How to use checksums |
0cb3bf4ed1561bfe7f6bfbeb1ba4ed4703ee30d1cfc7cd21682f16f000fa6856
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 8, 2025.
Transparency log