Skip to content

Commit 959d3bf

Browse files
authored
Merge pull request #2 from jowilf/update_docs
Update docs
2 parents 91ca3e0 + 53c0f4d commit 959d3bf

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ jobs:
2626
env:
2727
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
2828
run: |
29-
poetry config pypi-token.pypi $PYPI_TOKEN
29+
poetry config pypi-token.pypi $PYPI_TOKEN_SQLALCHEMY_FILE
3030
poetry publish --build

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,21 @@ uploading them to various storage such as Amazon S3, Rackspace CloudFiles, Googl
66
using [Apache Libcloud](https://github.com/apache/libcloud).
77

88
<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>
918
<a href="https://pypi.org/project/sqlalchemy-file/">
1019
<img src="https://badge.fury.io/py/sqlalchemy-file.svg" alt="Package version">
1120
</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>
1224
</p>
1325

1426

@@ -73,8 +85,7 @@ from libcloud.storage.drivers.local import LocalStorageDriver
7385
from sqlalchemy import Column, Integer, String, create_engine
7486
from sqlalchemy.ext.declarative import declarative_base
7587
from sqlalchemy.orm import Session
76-
77-
from sqlalchemy_file import FileField, File
88+
from sqlalchemy_file import File, FileField
7889
from sqlalchemy_file.storage import StorageManager
7990

8091
Base = declarative_base()
@@ -113,6 +124,6 @@ with Session(engine) as session:
113124
## Related projects and inspirations
114125

115126
* [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
118129
and some features are implemented the same.

docs/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ using [Apache Libcloud](https://github.com/apache/libcloud).
1111
<a href="https://github.com/jowilf/sqlalchemy-file/actions">
1212
<img src="https://github.com/jowilf/sqlalchemy-file/actions/workflows/publish.yml/badge.svg" alt="Publish">
1313
</a>
14+
<a href="https://codecov.io/gh/jowilf/sqlalchemy-file">
15+
<img src="https://codecov.io/gh/jowilf/sqlalchemy-file/branch/main/graph/badge.svg" alt="Codecov">
16+
</a>
1417
<a href="https://pypi.org/project/sqlalchemy-file/">
1518
<img src="https://badge.fury.io/py/sqlalchemy-file.svg" alt="Package version">
1619
</a>

0 commit comments

Comments
 (0)