Funkify modules so that they are callable
Project description
funkify
Install: pip install funkify
Make a module/package/script callable.
Usage:
1) Write a file called a_module.py
with some function and decorate said function with funkify
import funkify
@funkify
def some_funk_name_doesnt_matter():
return 'howdy'
2) Import a_module and call it like you would a function!
import a_module
a_module.some_funk_name_doesnt_matter_what_it_is() # returns 'howdy'
a_module() # ALSO returns 'howdy'
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
funkify-0.4.5.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file funkify-0.4.5.tar.gz
.
File metadata
- Download URL: funkify-0.4.5.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42df845f4afa63e0e66239a986d26b6572ab0b7ad600d7d6365d44d8a0cff3d5 |
|
MD5 | 5d3a2eaa03074ff50b2377efd64405b4 |
|
BLAKE2b-256 | 0bead095d1799770c9083dd8fd88e63f49f353abc0f41edb41157ac8e8ea4128 |
File details
Details for the file funkify-0.4.5-py3-none-any.whl
.
File metadata
- Download URL: funkify-0.4.5-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43f1e6c27263468a60ba560dfc13e6e4df57aa75376438a62f741ffc7c83cdfe |
|
MD5 | f25d5988b7147ba17657176018a9f315 |
|
BLAKE2b-256 | 4babba6f9fadfff877d9c5cf270049ec06d229bd9f4d294530796c7ee3ec5bc3 |