Masonite Modules
Introduction
Modularize your masonite project.
Installation
pip install masonite-modules
Configuration
Add ModuleProvider to your project in config/providers.py:
# config/providers.py
# ...
from masonite_modules import ModuleProvider
# ...
PROVIDERS = [
# ...
# Third Party Providers
ModuleProvider,
# ...
]
Publish the package resources by doing:
python craft package:publish modules
The default modules location will be modules in the root directory of your project. But if you want your own custom name then, update the module name in config/modules.py to your desired module path name.
NAME=modules
Installation
Once you finish publishing package, you need to install the modules by doing:
$ python craft module:install
Finally, you will see the modules directory created in your project root.
Usage
To create the module, simply run:
$ python craft module:create <module_name>
# Example
$ python craft module:create blog
The above command will create a new module called blogs in the modules directory. It will also create all the necessary files and directories inside blogs so you can start working on your module.
Finally, visit /<module_name> i.e. /blogs then you will see a welcome message.
Enjoy!
License
masonite_modules is open-sourced software licensed under the MIT license.
Metadata
Release files for masonite-modules 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| masonite-modules-0.0.5.tar.gz | 11.1 kB | Without provenance | Details for masonite-modules-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| masonite_modules-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for masonite_modules-0.0.5-py3-none-any.whl |
Total release size: 20.4 kB
Release files / masonite-modules-0.0.5.tar.gz
| Download URL | masonite-modules-0.0.5.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3fc4f548b26e8e29eae1b046e47f9660dd8574c071709cf68716fc582ab00b7b
|
|
BLAKE2b-256 checksum How to use checksums |
81115c5e5946c82cc20d70cfa0c66b1ffce8853eab95e4b4dc975b3059b2b94b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / masonite_modules-0.0.5-py3-none-any.whl
| Download URL | masonite_modules-0.0.5-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bee726324dcc5cd65db71365c3d81eb7d29831d2b7b2f530e91fd3a75ed52e0
|
|
BLAKE2b-256 checksum How to use checksums |
d484eb5e39d55cd946dc49262ce18471400038a4972f29d9a9ef10b237ca4d3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Security for masonite-modules 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.