Skip to main content

All of my macros in one place!

Reason this release was yanked:

PyPi condenses 0.05 to 0.5, making 0.41 > 0.5

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.41.tar.gz (6.2 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.41-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: macrolibs-0.0.41.tar.gz
  • Upload date:
  • Size: 6.2 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.41.tar.gz
Algorithm Hash digest
SHA256 f345a9c296a5a68c914f28912d48f6db339116721d2b6e823f45a0ab4cf94252
MD5 c8ac88296495acbf948f19991bce3f87
BLAKE2b-256 3a6a215535ee191f3bc775fd9f446b12b6920ca3212b53a16ecd538839899f3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: macrolibs-0.0.41-py3-none-any.whl
  • Upload date:
  • Size: 6.5 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.41-py3-none-any.whl
Algorithm Hash digest
SHA256 b0d8b576e79517bcb492e32b2bdaa0b0a8cb141f705a6fd1266da102be98cfd9
MD5 17aa3558a9c93e0b4edb4ebb1c0e869b
BLAKE2b-256 d7b32237074c9bba68ecd54af93415554c98ceb7cad87a4e86cf2c60680b8204

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