Skip to content

Commit bf31281

Browse files
authored
Merge pull request #2 from ispaneli/develop
Add minor updates
2 parents 65e8c1a + f58daf2 commit bf31281

File tree

5 files changed

+33
-12
lines changed

5 files changed

+33
-12
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ To deploy the FStorage on the **server**:
4646
pip install 'fstorage[server]'
4747
```
4848

49-
To use a **synchronous client**:
49+
To use **synchronous client**:
5050

5151
```bash
5252
pip install 'fstorage[sync_client]'
5353
```
5454

55-
To use a **asynchronous client**:
55+
To use **asynchronous client**:
5656

5757
```bash
5858
pip install 'fstorage[async_client]'
@@ -65,8 +65,8 @@ pip install 'fstorage[async_client]'
6565
Configure virtual environment variables in terminal:
6666

6767
```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"
7070
```
7171

7272
Configure **logging.ini**:
@@ -91,7 +91,7 @@ format=[%(asctime)s.%(msecs)03d] %(levelname)s [%(thread)d] - %(message)s
9191
[handler_logfile]
9292
class=handlers.RotatingFileHandler
9393
level=INFO
94-
args=('/Users/<local_user>/.fstorage/logfile.log', 'a')
94+
args=('/Users/<local_username>/.fstorage/logfile.log', 'a')
9595
formatter=logformatter
9696

9797
[handler_logconsole]

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ classifiers =
4545
Programming Language :: Python
4646
Programming Language :: Python :: 3
4747
Programming Language :: Python :: 3 :: Only
48-
Programming Language :: Python :: 3.7
4948
Programming Language :: Python :: 3.8
5049
Programming Language :: Python :: 3.9
5150
Programming Language :: Python :: 3.10
@@ -69,7 +68,7 @@ classifiers =
6968
package_dir =
7069
=src
7170
packages = find:
72-
python_requires = >=3.7, <4
71+
python_requires = >=3.8, <4
7372
# install_requires =
7473

7574
[options.extras_require]

setup.py

-5
This file was deleted.

src/fstorage/__init__.py

+24
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
__author__ = 'ispaneli'
22
__email__ = '[email protected]'
3+
34
__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+
"""

0 commit comments

Comments
 (0)