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.1.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file cocuni_module-0.1.tar.gz
.
File metadata
- Download URL: cocuni_module-0.1.tar.gz
- Upload date:
- Size: 2.4 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 | 49c535fe9b86ea5adce6aa4c48f0cafd4279e4c23eb04ee9c84a579404263a0d |
|
MD5 | 48a2cbf938fb83973a69ca5a3d16fe06 |
|
BLAKE2b-256 | b619c3763051694710dea3c6770d2dd9042a6e3bda9f3c37e149a3e1d221d54d |
File details
Details for the file cocuni_module-0.1-py3-none-any.whl
.
File metadata
- Download URL: cocuni_module-0.1-py3-none-any.whl
- Upload date:
- Size: 2.8 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 | e3387e2c348bd337355013d6a3ec90c65bef29038fb7b243f4512b97bc04dcfe |
|
MD5 | 3ffc38194f6e4a6c03185d1670d19570 |
|
BLAKE2b-256 | 07d816d8b153766289e65e9c47f6815b3a4383a43c726ac9426e20667c24359f |