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 macrolibs.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.3.tar.gz (5.5 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.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: macrolibs-0.0.3.tar.gz
  • Upload date:
  • Size: 5.5 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.3.tar.gz
Algorithm Hash digest
SHA256 268eee1fbb74384d62b5706e46b878deccb0bc943fb7788d38e6ed892e392cd1
MD5 753e5b8eb18f6e34df87f0fc2cfaf0cc
BLAKE2b-256 0ef6980b04c9c595fe0b247400361ad68b509ffdc666cb8f34c090eb863ee94e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: macrolibs-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ddb40b79d0965254ee6454447d91456c5c60ca6e899ff749cc478f19d125a7a3
MD5 16f8997d46e8bbd450dfec54383cdc8c
BLAKE2b-256 52c793090a141a7bac3d3a29c25a719f2e96d6a0a8f6fece91704b9523e84a35

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