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_dirfunction 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_walkreturning full paths fromos.walk
jsonmacros
import macrolibs.jsonmacros
Includes:
- json saving and loading with default format option
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
268eee1fbb74384d62b5706e46b878deccb0bc943fb7788d38e6ed892e392cd1
|
|
| MD5 |
753e5b8eb18f6e34df87f0fc2cfaf0cc
|
|
| BLAKE2b-256 |
0ef6980b04c9c595fe0b247400361ad68b509ffdc666cb8f34c090eb863ee94e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddb40b79d0965254ee6454447d91456c5c60ca6e899ff749cc478f19d125a7a3
|
|
| MD5 |
16f8997d46e8bbd450dfec54383cdc8c
|
|
| BLAKE2b-256 |
52c793090a141a7bac3d3a29c25a719f2e96d6a0a8f6fece91704b9523e84a35
|