@@ -6,9 +6,21 @@ uploading them to various storage such as Amazon S3, Rackspace CloudFiles, Googl
6
6
using [ Apache Libcloud] ( https://github.com/apache/libcloud ) .
7
7
8
8
<p align =" center " >
9
+ <a href =" https://github.com/jowilf/sqlalchemy-file/actions " >
10
+ <img src="https://github.com/jowilf/sqlalchemy-file/actions/workflows/test.yml/badge.svg" alt="Test suite">
11
+ </a >
12
+ <a href =" https://github.com/jowilf/sqlalchemy-file/actions " >
13
+ <img src="https://github.com/jowilf/sqlalchemy-file/actions/workflows/publish.yml/badge.svg" alt="Publish">
14
+ </a >
15
+ <a href =" https://codecov.io/gh/jowilf/sqlalchemy-file " >
16
+ <img src="https://codecov.io/gh/jowilf/sqlalchemy-file/branch/main/graph/badge.svg" alt="Codecov">
17
+ </a >
9
18
<a href =" https://pypi.org/project/sqlalchemy-file/ " >
10
19
<img src="https://badge.fury.io/py/sqlalchemy-file.svg" alt="Package version">
11
20
</a >
21
+ <a href =" https://pypi.org/project/sqlalchemy-file/ " >
22
+ <img src="https://img.shields.io/pypi/pyversions/sqlalchemy-file?color=2334D058" alt="Supported Python versions">
23
+ </a >
12
24
</p >
13
25
14
26
@@ -73,8 +85,7 @@ from libcloud.storage.drivers.local import LocalStorageDriver
73
85
from sqlalchemy import Column, Integer, String, create_engine
74
86
from sqlalchemy.ext.declarative import declarative_base
75
87
from sqlalchemy.orm import Session
76
-
77
- from sqlalchemy_file import FileField, File
88
+ from sqlalchemy_file import File, FileField
78
89
from sqlalchemy_file.storage import StorageManager
79
90
80
91
Base = declarative_base()
@@ -113,6 +124,6 @@ with Session(engine) as session:
113
124
## Related projects and inspirations
114
125
115
126
* [ Depot: ] ( https://github.com/amol-/depot ) When I was looking for a library like this, depot was the
116
- best I saw. But it supports few storage backend, doesn't support multiple files, doesn't work with
117
- [ SQLModel] ( https://github.com/tiangolo/sqlmodel ) and doesn't provide a way to validate files . This project inspired ** SQLAlchemy-file** extensively
127
+ best I saw. But it offers less storage backend, doesn't support multiple files and doesn't work with
128
+ [ SQLModel] ( https://github.com/tiangolo/sqlmodel ) . This project inspired ** SQLAlchemy-file** extensively
118
129
and some features are implemented the same.
0 commit comments