File tree 5 files changed +33
-12
lines changed
5 files changed +33
-12
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ To deploy the FStorage on the **server**:
46
46
pip install ' fstorage[server]'
47
47
```
48
48
49
- To use a ** synchronous client** :
49
+ To use ** synchronous client** :
50
50
51
51
``` bash
52
52
pip install ' fstorage[sync_client]'
53
53
```
54
54
55
- To use a ** asynchronous client** :
55
+ To use ** asynchronous client** :
56
56
57
57
``` bash
58
58
pip install ' fstorage[async_client]'
@@ -65,8 +65,8 @@ pip install 'fstorage[async_client]'
65
65
Configure virtual environment variables in terminal:
66
66
67
67
``` bash
68
- export POSTGRESQL_URL=" postgres ://<username >:<password >@<ip_address >:<port >/<database_name >"
69
- export STORAGE_PATH=" /Users/<local_user >/.fstorage/storage"
68
+ export POSTGRESQL_URL=" postgresql+asyncpg ://<db_username >:<db_password >@<db_host >:<db_port >/<db_name >"
69
+ export STORAGE_PATH=" /Users/<local_username >/.fstorage/storage"
70
70
```
71
71
72
72
Configure ** logging.ini** :
@@ -91,7 +91,7 @@ format=[%(asctime)s.%(msecs)03d] %(levelname)s [%(thread)d] - %(message)s
91
91
[handler_logfile]
92
92
class =handlers.RotatingFileHandler
93
93
level =INFO
94
- args =(' /Users/<local_user >/.fstorage/logfile.log' , ' a' )
94
+ args =(' /Users/<local_username >/.fstorage/logfile.log' , ' a' )
95
95
formatter =logformatter
96
96
97
97
[handler_logconsole]
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" setuptools" , " wheel" ]
3
+ build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ classifiers =
45
45
Programming Language :: Python
46
46
Programming Language :: Python :: 3
47
47
Programming Language :: Python :: 3 :: Only
48
- Programming Language :: Python :: 3.7
49
48
Programming Language :: Python :: 3.8
50
49
Programming Language :: Python :: 3.9
51
50
Programming Language :: Python :: 3.10
@@ -69,7 +68,7 @@ classifiers =
69
68
package_dir =
70
69
=src
71
70
packages = find:
72
- python_requires = >=3.7 , <4
71
+ python_requires = >=3.8 , <4
73
72
# install_requires =
74
73
75
74
[options.extras_require]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
__author__ = 'ispaneli'
2
2
3
+
3
4
__version__ = '0.0.3'
5
+
6
+ __doc__ = """
7
+ FStorage
8
+ =====
9
+
10
+ It's a simple asynchronous secure file storage for microservices.
11
+ It is implemented on the FastAPI web framework.
12
+
13
+ To run the file storage, you need PostgreSQL installed.
14
+
15
+ WARNING: With the usual installation of `pip install fstorage`,
16
+ the requirements are not installed!
17
+ Installation recommendations:
18
+ 1. `pip install 'fstorage[server]'` - to deploy file storage;
19
+ 2. `pip install 'fstorage[sync_client]'` - to use SYNC client;
20
+ 3. `pip install 'fstorage[async_client]'` - to use ASYNC client.
21
+
22
+ ----------------------------
23
+
24
+ Author: @ispaneli
25
+
26
+ GitHub repository: <https://github.com/ispaneli/fstorage>
27
+ """
You can’t perform that action at this time.
0 commit comments