filemanager
Introduction
A simple yet powerful file management solution for your masonite application.
Features
- Manager Server Files (Currently only supports local files)
- Upload Files
- Preview Files
- Rename Files/Folders
- Delete Files/Folders
- Download Files
- Move Files
- Search Files
- Protect Routes
- Image Editing
- Third Party Driver Support (S3, DigitalOcean Space, etc)
- File Picker (Form)
Installation
pip install masonite-filemanager
Configuration
Add FileManagerProvider to your project in config/providers.py:
# config/providers.py
# ...
from filemanager.providers import FileManagerProvider
# ...
PROVIDERS = [
# ...
# Third Party Providers
FileManagerProvider,
# ...
]
Then you can publish the package resources (if needed) by doing:
python craft package:publish filemanager
Finally add following to STATICFILES section in config/filesystem.py:
# config/filesystem.py
STATICFILES = {
# ...
# FileManager resources
'resources/vendor/filemanager': 'filemanager-assets/',
"storage/framework/filesystem/filemanager": "filemanager-uploads/",
}
Usage
Once finishing configurations, you can access the file manager by using the following route:
http://localhost:8000/filemanager
If you want to use file picker then all you have to do is include then follow the following guidelines:
- Add style in the header of your base template:
<link href="/filemanager-assets/picker.css" rel="stylesheet" />
- Add script before the
</body>tag of your base template:<script src="/filemanager-assets/picker.js"></script>
- Finally, in your form you can use selector in your form in the following way:
<div class="file-picker"> <input type="hidden" name="j-sukai" /> </div>
or, if you want file-preview:<div class="file-picker has-preview"> <input type="hidden" name="j-sukai" /> </div>
The design of the file-picker is very basic so you might want to customize with your own design by modifying the stylesheet which resides in storage/vendor/filemanager directory.
License
masonite-filemanager is open-sourced software licensed under the MIT license.
Metadata
Release files for masonite-filemanager 0.1.3
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-filemanager-0.1.3.tar.gz | 58.5 kB | Without provenance | Details for masonite-filemanager-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| masonite_filemanager-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for masonite_filemanager-0.1.3-py3-none-any.whl |
Total release size: 124.2 kB
Release files / masonite-filemanager-0.1.3.tar.gz
| Download URL | masonite-filemanager-0.1.3.tar.gz |
|---|---|
| Size | 58.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
010813873bf586eb001615840f9cc320f270c8b0d46390ecd3f30a9f9052532e
|
|
BLAKE2b-256 checksum How to use checksums |
86b6e76f771f49387c22df0aff6d9d6656c006d22f54bacc5c4aa14db08404c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / masonite_filemanager-0.1.3-py3-none-any.whl
| Download URL | masonite_filemanager-0.1.3-py3-none-any.whl |
|---|---|
| Size | 65.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8bdf1cc95e93c095dab2fbbeb7471063d4d76f4745d799d2a65ff961b41b0bf6
|
|
BLAKE2b-256 checksum How to use checksums |
fe09b281b2ccb1d5132f0f05cf3da6495bc7df31eff81dc151220e246fcc21af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Security for masonite-filemanager 0.1.3
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.