A Python package for cocuni random numbers generation
Project description
python-module-resources
Import non-python files in a project directory as python namedtuple objects.
If you've ever worked in node, you might be familiar with a language feature which allows you to pull in a json file as an imported module.
import { dataStuff } from 'myProjectResources/jsonFiles'
dataStuff.contents === "A rich javascript object"
With module_resources
, you can achieve something similar in python.
from my_project_resources.json_files import data_stuff
data_stuff.contents == 'A python namedtuple instance'
Caveats
There are some caveats to be aware of.
Valid vs. invalid namedtuple field names
>>> from module_resources.examples.json import logging_config
>>> logging_config.loggers.__main__
git checkout master
git pull origin master
# examples of preparing a new tag for release
make tag-patch # also accepts: tag-minor, tag-major
git push origin --tags
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
cocuni_module-0.2.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file cocuni_module-0.2.tar.gz
.
File metadata
- Download URL: cocuni_module-0.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39118ae133443330bcb0edf70637d51111e70dadeb0356d389507f68faa47dda |
|
MD5 | 4820f17a860954bbc2b7e313b6751819 |
|
BLAKE2b-256 | 2238e94b6025674ee5a3249d6a6f97ec43700cbe70eda24155893d7209d77745 |
File details
Details for the file cocuni_module-0.2-py3-none-any.whl
.
File metadata
- Download URL: cocuni_module-0.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 419dff63431f6df65ac486e8b6dfe601f08726ba51348d4699c83999fe521f64 |
|
MD5 | 2baa2450d0d56e4ff9c997a04d4a79ff |
|
BLAKE2b-256 | 9119e59f4a9dc0f3000f9cf7683727dac9b74bc1588c8a82b4ad824e9b62b595 |