Skip to main content

All of my macros in one place!

Project description

pip install macrolibs

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


typemacros

import macrolibss.typemacros

Includes:

  • standardization of unions, intersections, and compliments for all base iterables
  • recursive find and replace for all nested data structures
  • automatic function argument reduction (reductive polymorphism)

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

jsonmacros

import macrolibs.jsonmacros

Includes:

  • json saving and loading with default format option

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

macrolibs-0.0.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

macrolibs-0.0.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file macrolibs-0.0.1.tar.gz.

File metadata

  • Download URL: macrolibs-0.0.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for macrolibs-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cd3b057cc0d8796fbed48ea8cd60c30ac0419adb252691c6d4b91442dd814d8e
MD5 6f018ff902eb08baab5d73abe358c52c
BLAKE2b-256 f6176f08731cd9eb6c9bdeee441af86803294ea8a4221180a1840583ebbae56e

See more details on using hashes here.

File details

Details for the file macrolibs-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: macrolibs-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for macrolibs-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 087e30ae5ecb9e137bcba672aced53cb68619ae2ed06f3571168741db0a31313
MD5 87997ebf0faf93bb77e0ae7146d182d7
BLAKE2b-256 798e402f4c929e679762edb7e68a6c5230a81d092bfcc7c2214039dc948e31ce

See more details on using hashes here.

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