Save currently defined classes and functions to modules
Project description
The modulr
Python package
Installation
pip install modulr
Description
The modulr
package has one function, make_module
,
which saves class and/or function definitions of classes to a module (.py
file).
The input objects (classes and/or functions) must defined in the current Python session.
Usage
from modulr import make_module
def func1(x):
...
def func2(x):
...
make_module([func1, func2], module_name='my_funcs.py')
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
modulr-0.0.2.tar.gz
(2.0 kB
view details)
Built Distribution
File details
Details for the file modulr-0.0.2.tar.gz
.
File metadata
- Download URL: modulr-0.0.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0cf22f260601a505ff5be97feb83d558e536fc94b7d9ec505037dfc33beabca |
|
MD5 | 081ddb251783fc54cf109645eff712aa |
|
BLAKE2b-256 | 3b145ad066c9f233dd92348715a7e50cb2730cb241768415fb882c0bebae6e0f |
File details
Details for the file modulr-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: modulr-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38892958b908dd5f04f9e90eeb5a85e372f9f8d9cbd8da5ce35cd398ebcbaea5 |
|
MD5 | ab532ecc549dc18b6d8c5eb034fbf23c |
|
BLAKE2b-256 | 7aacffd3a1972fcb01b75999cbd489f3cfe95099a879d29db8802589ec74937f |