Skip to main content
pip install macrolibs

Macros for type conversions, recursive search, file handling, etc...


typemacros

import macrolibs.typemacros

Includes:

  • standardization of unions, intersections, and compliments for all base iterables
  • replace_value_nested recursive find and replace for all nested data structures
  • maybe_arg automatic function argument reduction (reductive polymorphism)
  • copy_type functor with name cache for creating new types (also maps reflexive methods to new type)
  • maybe_type attempts to apply type constructor
  • wrap_types attempts to apply type constructor for specified types

And more!


filemacros

import macrolibs.filemacros

Includes:

  • get_script_dir function to return the directory of the call location

(this is different from os.getcwd as it will retun the location of the file making the function call)

  • full_walk returning full paths from os.walk

  • open_json and save_json with default format option


misc

import macrolibs.misc

Includes:

  • profile_run A custom profiling function similar to cProfile.run() with enhanced formatting options.

Metadata

Release files for macrolibs 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for macrolibs 0.0.10
File Size Uploaded Provenance Actions
macrolibs-0.0.10.tar.gz 11.0 kB Without provenance Details for macrolibs-0.0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for macrolibs 0.0.10
File Interpreter ABI Platform Actions
macrolibs-0.0.10-py3-none-any.whl Python 3 none any Details for macrolibs-0.0.10-py3-none-any.whl

Total release size: 23.3 kB

Release files / macrolibs-0.0.10.tar.gz

Download URL macrolibs-0.0.10.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
22f7fe7d0a3b90abf4cbee6879712f2dc3593001e440e57f275272288ea0ad6f
BLAKE2b-256 checksum
How to use checksums
316e066518f5f318947d11a31862f2ddab25cf384878af0b473439a319c5af2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / macrolibs-0.0.10-py3-none-any.whl

Download URL macrolibs-0.0.10-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd9eae48d65ac257090d7054ac4c1ed1887e522d13a50025d18887ea8ea1d26f
BLAKE2b-256 checksum
How to use checksums
e3c461cd690cde9e733adc70b9a5e0ce21dbdc519ad5d08c651092508f435ac3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Security for macrolibs 0.0.10

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page