Skip to main content

PyVarTools 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

PyVarTools 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, PyVarTools 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. PyVarTools handles many common variable-related tasks efficiently.

Installation

Install PyVarTools using pip:

pip install PyVarTools

Usage Examples

The following examples illustrate a small subset of PyVarTools’ capabilities. Refer to the detailed documentation for more comprehensive examples and usage instructions.

Formatting pandas.DataFrame:

# Formatting
from PyVarTools.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 PyVarTools.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 PyVarTools’ functionality. Explore the full documentation to uncover the full potential of this versatile library.

Future Notes

PyVarTools 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

pyvartools-1.3.7.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

PyVarTools-1.3.7-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file pyvartools-1.3.7.tar.gz.

File metadata

  • Download URL: pyvartools-1.3.7.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for pyvartools-1.3.7.tar.gz
Algorithm Hash digest
SHA256 0a5bb92c54ab5ae8496f3f2030b50ca0af4843669a347597cefbfc8db891f6c8
MD5 af7fd344b58375be3b234a004bb73101
BLAKE2b-256 ce5ef30199a737dc1c33977beb9149cddaaf990db8eddcbb9d99cc39204329c1

See more details on using hashes here.

File details

Details for the file PyVarTools-1.3.7-py3-none-any.whl.

File metadata

  • Download URL: PyVarTools-1.3.7-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for PyVarTools-1.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ec4ce10d946778b43b508a80c8816c768c83f46c6b10a7bb74c4590b3fc42894
MD5 9eeed0f7879473182bb3a9a28544ffa7
BLAKE2b-256 d918f8301b7b07a5f1684651dabc9e5aaafd358423362afb87e6484342f550a3

See more details on using hashes here.

Supported by

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