Skip to content

Commit 3c345e0

Browse files
Bumped version to 0.1.1
1 parent d4da161 commit 3c345e0

File tree

8 files changed

+99
-1
lines changed

8 files changed

+99
-1
lines changed
4.66 KB
Binary file not shown.

dist/minio_driver-0.1.1.tar.gz

4.03 KB
Binary file not shown.

minio_driver.egg-info/PKG-INFO

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
Metadata-Version: 2.1
2+
Name: minio-driver
3+
Version: 0.1.1
4+
Summary: Minio Storage Driver for Masonite
5+
Home-page: https://github.com/yubarajshrestha/minio-masonite-driver
6+
Author: Yubaraj Shrestha
7+
Author-email: companion.krish@outlook.com
8+
License: MIT
9+
Keywords: masonite,storage,minio,masonite-storage-driver
10+
Platform: UNKNOWN
11+
Classifier: Programming Language :: Python :: 3
12+
Classifier: Operating System :: OS Independent
13+
Description-Content-Type: text/markdown
14+
License-File: LICENSE
15+
16+
#### Project description
17+
18+
**What is Minio-Driver?**
19+
It's an extra storage driver support for Minio in masonite 4.
20+
21+
**Setup**
22+
23+
Install package using pip:
24+
25+
```shell
26+
pip install minio-driver
27+
```
28+
29+
Add provider inside config/providers.py.
30+
31+
```python
32+
from minio_driver.MinioProvider import MinioProvider
33+
34+
PROVIDERS = [
35+
...,
36+
# Application Providers
37+
MinioProvider,
38+
]
39+
```
40+
41+
**Storage Config**
42+
43+
Add following configuration inside config/filesystem.py after `"s3": {...},`
44+
45+
```python
46+
"minio": {
47+
"driver": "minio",
48+
"client": env("MINIO_CLIENT"),
49+
"secret": env("MINIO_SECRET"),
50+
"bucket": env("MINIO_BUCKET"),
51+
"path": env("MINIO_ENDPOINT"),
52+
},
53+
```
54+
55+
Add following keys in `.env`.
56+
57+
```shell
58+
MINIO_CLIENT=
59+
MINIO_SECRET=
60+
MINIO_BUCKET=
61+
MINIO_ENDPOINT=
62+
```
63+
64+
**Example**
65+
66+
```python
67+
from masonite.controllers import Controller
68+
from masonite.filesystem import Storage
69+
from masonite.request import Request
70+
71+
class YourController(Controller):
72+
73+
def your_function(self, request: Request, storage: Storage):
74+
file = request.input('file')
75+
path = storage.disk("minio").put_file('your_file_directory', file)
76+
return path
77+
```
78+
79+
Enjoy ;)
80+
81+

minio_driver.egg-info/SOURCES.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
LICENSE
2+
MANIFEST.in
3+
README.md
4+
pyproject.toml
5+
setup.py
6+
minio_driver.egg-info/PKG-INFO
7+
minio_driver.egg-info/SOURCES.txt
8+
minio_driver.egg-info/dependency_links.txt
9+
minio_driver.egg-info/requires.txt
10+
minio_driver.egg-info/top_level.txt
11+
src/MinioDriver.py
12+
src/MinioProvider.py
13+
src/__init__.py
14+
src/integration.py
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

minio_driver.egg-info/requires.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
masonite<5.0,>=4.0

minio_driver.egg-info/top_level.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
minio_driver

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="minio_driver",
8-
version='0.1.0',
8+
version='0.1.1',
99
author="Yubaraj Shrestha",
1010
author_email="companion.krish@outlook.com",
1111
description="Minio Storage Driver for Masonite",

0 commit comments

Comments
 (0)