Skip to main content

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


Download files

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

Source Distribution

osn_var_tools-1.0.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

osn_var_tools-1.0.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

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

Hashes for osn_var_tools-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ff47ab79336a6e2533abdab7f12f234586946f0a5dec0e614c538ad33b530db5
MD5 c68b195581152bbf5614f2bf1e829823
BLAKE2b-256 f5dd0abd5d429991c15414078af27807678344a1c0bb51a90420a4abd5a06f29

See more details on using hashes here.

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

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

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

Hashes for osn_var_tools-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a599e022fffd346f3b0dd85088571613bd4bccef251271b5fef167fdb787489
MD5 1f37fdd1f4c29d123aa4e052981c8853
BLAKE2b-256 0cb3bf4ed1561bfe7f6bfbeb1ba4ed4703ee30d1cfc7cd21682f16f000fa6856

See more details on using hashes here.

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

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