Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3.9 support #212

Closed
wants to merge 120 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
8671815
Made the class method names into resource methods
yuval9313 Jul 4, 2020
8c93edf
Add support in the old decorator route implementation
yuval9313 Jul 4, 2020
7b81464
Add method duplication reinforcement
yuval9313 Jul 4, 2020
3b34c1b
Add resource base class and API router wrapper
yuval9313 Jul 5, 2020
a13966b
Fix Resource class also showing init arguments on request swagger
yuval9313 Jul 6, 2020
80f9f1c
Fix Resource inhirted class don't contain it's required properties on…
yuval9313 Jul 6, 2020
64112e4
Improve the new_init return to not create new instance, rather use th…
yuval9313 Jul 9, 2020
6f5378b
Improve Resource and Api classes, reducing logic in both
yuval9313 Jul 9, 2020
71624d8
Instead of class attriburte in init, use decorator
yuval9313 Jul 9, 2020
baf5b39
Add multiple responses via decorator
yuval9313 Jul 9, 2020
6909e79
Fix assigning multiple routes from single resource
yuval9313 Jul 9, 2020
eb71933
Add cbv resource class testing
yuval9313 Jul 9, 2020
402fcca
Lint files
yuval9313 Jul 16, 2020
2bb90c1
Lint tests
yuval9313 Jul 16, 2020
a94b1ec
Add docs and improved imports
yuval9313 Jul 16, 2020
41a3c8a
Lint and mypy test fix
yuval9313 Jul 16, 2020
8760661
Merge pull request #1 from yuval9313/feature/simplier-classes
yuval9313 Jul 16, 2020
d623ddf
Update readme
yuval9313 Jul 16, 2020
d8401c0
Merge pull request #2 from yuval9313/feature/simplier-classes
yuval9313 Jul 16, 2020
8fb039e
Update README
yuval9313 Jul 16, 2020
80795e2
Merge branch 'master' of https://github.com/yuval9313/fastapi-utils
yuval9313 Jul 16, 2020
ebb7ac5
Update docs
yuval9313 Jul 16, 2020
103f015
Move files from fastapi utils to fastapi restful in porpuse of build
yuval9313 Jul 16, 2020
45a326f
Update docs again
yuval9313 Jul 16, 2020
f3212a2
Update versions
yuval9313 Jul 16, 2020
fcbcb1b
Lower case the package folder
yuval9313 Jul 17, 2020
577fa56
Correct imports in docs
yuval9313 Jul 17, 2020
37f13ff
Correct imports in tests
yuval9313 Jul 17, 2020
de6e2b3
Update pyproject
yuval9313 Jul 17, 2020
4eec530
Update Docs
yuval9313 Jul 17, 2020
2b0914b
Lint
yuval9313 Jul 17, 2020
ce46377
Update makefile
yuval9313 Jul 17, 2020
82a98a3
Update poetry versioning
yuval9313 Jul 17, 2020
cd78588
Lint and sort
yuval9313 Jul 17, 2020
8835034
Correct imports
yuval9313 Jul 17, 2020
30e311d
Update makefile
yuval9313 Jul 17, 2020
1a5931e
Fix imports break code
yuval9313 Jul 17, 2020
dac40ee
Update pyproject
yuval9313 Jul 17, 2020
60e3875
Update lock
yuval9313 Jul 18, 2020
395cb1c
Update packages
yuval9313 Jul 18, 2020
be255de
Update build.yml
yuval9313 Jul 18, 2020
54e45c0
Update requirements for win32 and py version < 38
yuval9313 Jul 18, 2020
7b2aeff
Merge branch 'master' of https://github.com/yuval9313/fastapi-utils
yuval9313 Jul 18, 2020
f9fe9c5
Fix requirements
yuval9313 Jul 18, 2020
5383dc5
Change mkdocs to py version 3.8
yuval9313 Jul 18, 2020
9c4b4c7
Fix mkdocs error
yuval9313 Jul 18, 2020
d068079
Update docs, add shields and update workflows
yuval9313 Jul 18, 2020
aea1219
Update docs to include additonal responses handling
yuval9313 Aug 23, 2020
ab591fd
Numerous changes in the documantations
yuval9313 Aug 23, 2020
0760b7b
Merge pull request #4 from yuval9313/docs/fixes
yuval9313 Aug 23, 2020
0b9e7af
Add kwargs to option to set_responses
yuval9313 Aug 31, 2020
1def62c
Lint and formatting
yuval9313 Aug 31, 2020
26e7477
Merge branch 'master' into feature/more-responses-options
yuval9313 Aug 31, 2020
533be03
Add documantation for the new kwargs option
yuval9313 Aug 31, 2020
f611149
Update project version
yuval9313 Aug 31, 2020
5c8fce1
Merge pull request #5 from yuval9313/feature/more-responses-options
yuval9313 Aug 31, 2020
0fbb568
Create dependabot.yml
yuval9313 Jan 3, 2021
f9c846c
Update dependabot.yml
yuval9313 Jan 3, 2021
f98838e
Merge pull request #7 from yuval9313/feature/dependabot
yuval9313 Jan 3, 2021
8ee7243
Bump markdown-include from 0.5.1 to 0.6.0
dependabot[bot] Jan 3, 2021
45ef763
Bump pytest-cov from 2.10.0 to 2.10.1
dependabot[bot] Jan 3, 2021
0305ef8
Bump mypy from 0.782 to 0.790
dependabot[bot] Jan 3, 2021
f209817
Bump flake8 from 3.8.3 to 3.8.4
dependabot[bot] Jan 3, 2021
1007b04
Bump black from 19.10b0 to 20.8b1
dependabot[bot] Jan 3, 2021
7b8c10c
Merge pull request #8 from yuval9313/dependabot/pip/markdown-include-…
yuval9313 Jan 3, 2021
536c8a1
Merge branch 'master' into dependabot/pip/pytest-cov-2.10.1
yuval9313 Jan 3, 2021
a5cfaca
Merge pull request #9 from yuval9313/dependabot/pip/pytest-cov-2.10.1
yuval9313 Jan 3, 2021
735ecce
Merge branch 'master' into dependabot/pip/mypy-0.790
yuval9313 Jan 3, 2021
b4ce607
Merge pull request #10 from yuval9313/dependabot/pip/mypy-0.790
yuval9313 Jan 3, 2021
6e9628e
Merge branch 'master' into dependabot/pip/flake8-3.8.4
yuval9313 Jan 3, 2021
ce8973c
Merge pull request #11 from yuval9313/dependabot/pip/flake8-3.8.4
yuval9313 Jan 3, 2021
3f70efb
Merge branch 'master' into dependabot/pip/black-20.8b1
yuval9313 Jan 3, 2021
042e8b8
Merge pull request #12 from yuval9313/dependabot/pip/black-20.8b1
yuval9313 Jan 3, 2021
76a2bfe
Bump sqlalchemy from 1.3.18 to 1.3.22
dependabot[bot] Jan 3, 2021
e3215ad
Bump pydantic from 1.6.1 to 1.7.3
dependabot[bot] Jan 3, 2021
0c50736
Bump isort from 5.1.2 to 5.7.0
dependabot[bot] Jan 3, 2021
306cead
Bump codecov from 2.1.8 to 2.1.11
dependabot[bot] Jan 3, 2021
3515c50
Bump coverage from 5.2 to 5.3.1
dependabot[bot] Jan 3, 2021
b13711a
Merge pull request #14 from yuval9313/dependabot/pip/pydantic-1.7.3
yuval9313 Jan 3, 2021
c22ffd9
Merge pull request #13 from yuval9313/dependabot/pip/sqlalchemy-1.3.22
yuval9313 Jan 3, 2021
f02e132
Merge pull request #15 from yuval9313/dependabot/pip/isort-5.7.0
yuval9313 Jan 3, 2021
4918d99
Merge pull request #17 from yuval9313/dependabot/pip/codecov-2.1.11
yuval9313 Jan 3, 2021
b3b2173
Merge pull request #18 from yuval9313/dependabot/pip/coverage-5.3.1
yuval9313 Jan 3, 2021
2d42ae8
Bump autoflake from 1.3.1 to 1.4
dependabot[bot] Jan 3, 2021
9e2212d
Bump fastapi from 0.59.0 to 0.63.0
dependabot[bot] Jan 3, 2021
f567c6c
Bump requests from 2.24.0 to 2.25.1
dependabot[bot] Jan 3, 2021
c49a0d6
Bump pytest from 5.4.3 to 6.2.1
dependabot[bot] Jan 3, 2021
9d0d446
Bump mkdocs-material from 5.4.0 to 6.2.3
dependabot[bot] Jan 3, 2021
58f6370
Merge pull request #20 from yuval9313/dependabot/pip/fastapi-0.63.0
yuval9313 Jan 3, 2021
4ea2b46
Merge pull request #19 from yuval9313/dependabot/pip/autoflake-1.4
yuval9313 Jan 3, 2021
de24111
Merge pull request #21 from yuval9313/dependabot/pip/requests-2.25.1
yuval9313 Jan 3, 2021
e5781cc
Merge pull request #22 from yuval9313/dependabot/pip/pytest-6.2.1
yuval9313 Jan 3, 2021
d4078c7
Merge pull request #23 from yuval9313/dependabot/pip/mkdocs-material-…
yuval9313 Jan 3, 2021
bc6845c
Bump more-itertools from 8.4.0 to 8.6.0
dependabot[bot] Jan 3, 2021
6e44c3b
Bump aiofiles from 0.5.0 to 0.6.0
dependabot[bot] Jan 3, 2021
1362886
Merge pull request #24 from yuval9313/dependabot/pip/more-itertools-8…
yuval9313 Jan 3, 2021
25d9a77
Merge pull request #25 from yuval9313/dependabot/pip/aiofiles-0.6.0
yuval9313 Jan 3, 2021
906a0cd
Upgrade dependencies
Jan 4, 2021
ce5c902
Update version patch and fix small error in contributing, Includes py…
yuval9313 Jan 4, 2021
437eec0
Reduce dev requirements from requirements file
yuval9313 Jan 4, 2021
f176064
Update pull-request.yml
yuval9313 Jan 4, 2021
bfdab49
Merge branch 'master' of https://github.com/yuval9313/fastapi-utils i…
yuval9313 Jan 4, 2021
8ea85e5
Update pull-request.yml
yuval9313 Jan 4, 2021
7c6cf8d
Update pull-request.yml
yuval9313 Jan 4, 2021
286f711
Update pull-request.yml
yuval9313 Jan 4, 2021
226af28
Fix difference between CONTRIBUTING.md and docs/contributing.md
yuval9313 Jan 4, 2021
ae88b70
Merge branch 'feature/more-responses-options' of https://github.com/y…
yuval9313 Jan 4, 2021
e7c19ea
Merge pull request #26 from yuval9313/feature/more-responses-options
yuval9313 Jan 4, 2021
65ce47a
Update publish.yml
yuval9313 Jan 4, 2021
83d54e5
Update publish.yml
yuval9313 Jan 4, 2021
5d1db97
Change wait_first to a float
TomBurch Apr 1, 2021
46217f4
Merge pull request #44 from TomBurch/master
yuval9313 Apr 7, 2021
3e4c814
Fix tests issue
yuval9313 Apr 7, 2021
c3d2214
Fix error of deprecation in the Makefile
yuval9313 Apr 7, 2021
2cc1d6d
Minor changes to the develop.sh script
yuval9313 Apr 7, 2021
f7780f4
Merge pull request #45 from yuval9313/feature/wait-first-float
yuval9313 Apr 7, 2021
c7000cb
Update publish.yml (#46)
yuval9313 Apr 7, 2021
7b58387
Bump mkdocs-material from 6.2.3 to 7.1.3 (#49)
dependabot[bot] May 5, 2021
b6fcb77
Fix routing problem (#36)
yen3 May 5, 2021
3c624c0
Update to support python 3.9
yuval9313 May 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"

7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
max-parallel: 3
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -42,12 +42,9 @@ jobs:
key: pytest-${{ matrix.python-version }}
- name: Check docs build
# only run this for the python version used by netlify:
if: matrix.python-version == 3.7
if: matrix.python-version == 3.8
run: |
make docs-build-ci
- name: Check that formatting, linting, and tests pass
run: |
make ci
- name: Submit coverage report
run: |
codecov --token=${{ secrets.CODECOV_TOKEN }}
68 changes: 53 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,50 @@ on:
push

jobs:
publish:
publish-master:
if: github.event_name == 'merge'
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: [3.8]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
# Avoid caching to be 100% confident things are working properly
- name: Init python poetry action
uses: abatilo/[email protected]

- name: Install dependencies
run: poetry install

- name: Check that formatting, linting, and tests pass
run: poetry run make ci

- name: Check docs are up to date
run: poetry run make docs-build-ci

- name: Build distribution
run: poetry build

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
# For security porpuses only!

publish-tag:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: [3.7]
python-version: [3.8]

steps:
- uses: actions/checkout@v1
Expand All @@ -19,23 +56,24 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
# Avoid caching to be 100% confident things are working properly
- name: Init python poetry action
uses: abatilo/[email protected]

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
run: poetry install

- name: Check that formatting, linting, and tests pass
run: |
make ci
run: poetry run make ci

- name: Check docs are up to date
run: |
make docs-build-ci
- name: Install poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
run: poetry run make docs-build-ci

- name: Build distribution
run: |
source $HOME/.poetry/env && poetry build
run: poetry build

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_PASSWORD }}
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
# For security porpuses only!
18 changes: 7 additions & 11 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Python Poetry Action
uses: abatilo/[email protected]
- uses: actions/cache@v1
id: cache-deps
with:
Expand All @@ -27,9 +29,7 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
run: poetry install
- uses: actions/cache@v1
with:
path: .mypy_cache
Expand All @@ -40,12 +40,8 @@ jobs:
key: pytest-${{ matrix.python-version }}
- name: Check docs build
# only run this for the python version used by netlify:
if: matrix.python-version == 3.7
run: |
make docs-build-ci
if: matrix.python-version == 3.8
run: poetry run make docs-build-ci
- name: Check that formatting, linting, and tests pass
run: |
make ci
- name: Submit coverage report
run: |
codecov --token=${{ secrets.CODECOV_TOKEN }}
run: poetry run make ci

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ First, you might want to see the basic ways to [help and get help](help-fastapi-

Once you've cloned the repository, here are some guidelines to set up your environment:

### Set up the development evironment
### Set up the development environment

After cloning the repository, you can use `poetry` to create a virtual environment:

Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
SHELL := /bin/bash
.DEFAULT_GOAL := help

pkg_src = fastapi_utils
pkg_src = fastapi_restful
tests_src = tests
docs_src = docs/src
all_src = $(pkg_src) $(tests_src)

isort = isort -rc $(all_src)
isort = isort $(all_src)
autoflake = autoflake -r --remove-all-unused-imports --ignore-init-module-imports $(all_src)
black = black $(all_src)
flake8 = flake8 $(all_src)
mypy_base = mypy --show-error-codes
mypy = $(mypy_base) $(all_src)
test = pytest --cov=fastapi_utils
test = pytest --cov=$(pkg_src)

.PHONY: all ## Run the most common rules used during development
all: static test
Expand Down Expand Up @@ -88,7 +88,7 @@ develop:
.PHONY: version ## Bump the version in both pyproject.toml and __init__.py (usage: `make version version=minor`)
version: poetryversion
$(eval NEW_VERS := $(shell cat pyproject.toml | grep "^version = \"*\"" | cut -d'"' -f2))
@sed -i "" "s/__version__ = .*/__version__ = \"$(NEW_VERS)\"/g" $(pkg_src)/__init__.py
@sed -i "s/__version__ = .*/__version__ = \"$(NEW_VERS)\"/g" $(pkg_src)/__init__.py

.PHONY: docs-build ## Generate the docs and update README.md
docs-build:
Expand Down
38 changes: 20 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
<p align="center">
<em>Reusable utilities for FastAPI</em>
<em>Quicker FastApi developing tools</em>
</p>
<p align="center">
<img src="https://img.shields.io/github/last-commit/dmontagu/fastapi-utils.svg">
<a href="https://github.com/dmontagu/fastapi-utils" target="_blank">
<img src="https://github.com/dmontagu/fastapi-utils/workflows/build/badge.svg" alt="Build">
<a href="https://github.com/yuval9313/fastapi-restful" target="_blank">
<img src="https://img.shields.io/github/last-commit/yuval9313/fastapi-restful.svg">
<img src="https://github.com/yuval9313/FastApi-RESTful/workflows/build/badge.svg" alt="Build CI">
</a>
<a href="https://codecov.io/gh/dmontagu/fastapi-utils" target="_blank">
<img src="https://codecov.io/gh/dmontagu/fastapi-utils/branch/master/graph/badge.svg" alt="Coverage">
</a>
<a href="https://app.netlify.com/sites/trusting-archimedes-72b369/deploys">
<img src="https://img.shields.io/netlify/28b2a077-65b1-4d6c-9dba-13aaf6059877" alt="Netlify status">
<a href="https://fastapi-restful.netlify.app">
<img src="https://api.netlify.com/api/v1/badges/294b88e1-4b81-49c0-8525-9c4a2cb782e0/deploy-status" alt="Netlify status">
</a>
<br />
<a href="https://pypi.org/project/fastapi-utils" target="_blank">
<img src="https://badge.fury.io/py/fastapi-utils.svg" alt="Package version">
<a href="https://pypi.org/project/FastApi-RESTful" target="_blank">
<img src="https://badge.fury.io/py/fastapi-restful.svg" alt="Package version">
</a>
<a href="https://github.com/yuval9313/fastapi-restful" target="_blank">
<img src="https://img.shields.io/pypi/pyversions/FastApi-RESTful.svg" alt="Python versions">
<img src="https://img.shields.io/github/license/yuval9313/fastapi-utils.svg" alt="License">
</a>
<img src="https://img.shields.io/pypi/pyversions/fastapi-utils.svg">
<img src="https://img.shields.io/github/license/dmontagu/fastapi-utils.svg">
</p>

---

**Documentation**: <a href="https://fastapi-utils.davidmontague.xyz" target="_blank">https://fastapi-utils.davidmontague.xyz</a>
**Documentation**: <a href="https://fastapi-restful.netlify.app" target="_blank">https://fastapi-restful.netlify.app</a>

**Source Code**: <a href="https://github.com/yuval9313/fastapi-restful" target="_blank">https://github.com/yuval9313/fastapi-restful</a>

**Source Code**: <a href="https://github.com/dmontagu/fastapi-utils" target="_blank">https://github.com/dmontagu/fastapi-utils</a>
Base on: <a href="https://github.com/dmontagu/fastapi-utils" target="_blank">https://github.com/dmontagu/fastapi-utils</a>

---

Expand All @@ -38,11 +39,12 @@ But if you're here, you probably already knew that!

This package includes a number of utilities to help reduce boilerplate and reuse common functionality across projects:

* **Resource Class**: Create CRUD with ease the OOP way with `Resource` base class that lets you implement methods quick.
* **Class Based Views**: Stop repeating the same dependencies over and over in the signature of related endpoints.
* **Response-Model Inferring Router**: Let FastAPI infer the `response_model` to use based on your return type annotation.
* **Repeated Tasks**: Easily trigger periodic tasks on server startup
* **Timing Middleware**: Log basic timing information for every request
* **SQLAlchemy Sessions**: The `FastAPISessionMaker` class provides an easily-customized SQLAlchemy Session dependency
* Will be removed: **SQLAlchemy Sessions**: The `FastAPISessionMaker` class provides an easily-customized SQLAlchemy Session dependency
* **OpenAPI Spec Simplification**: Simplify your OpenAPI Operation IDs for cleaner output from OpenAPI Generator

---
Expand All @@ -55,7 +57,7 @@ It also adds a variety of more basic utilities that are useful across a wide var
* **CamelCase Conversions**: Convenience functions for converting strings from `snake_case` to `camelCase` or `PascalCase` and back
* **GUID Type**: The provided GUID type makes it easy to use UUIDs as the primary keys for your database tables

See the [docs](https://fastapi-utils.davidmontague.xyz/) for more details and examples.
See the [docs](https://fastapi-restful.netlify.app/) for more details and examples.

## Requirements

Expand All @@ -64,7 +66,7 @@ This package is intended for use with any recent version of FastAPI (depending o
## Installation

```bash
pip install fastapi-utils
pip install fastapi-restful
```

## License
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ First, you might want to see the basic ways to [help and get help](help-fastapi-

Once you've cloned the repository, here are some guidelines to set up your environment:

### Set up the development evironment
### Set up the development environment

After cloning the repository, you can use `poetry` to create a virtual environment:

Expand Down
11 changes: 8 additions & 3 deletions docs/help-fastapi-utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ Adding a star will help other users find this project more easily, and see that

## Connect with the author

You can connect with <a href="https://davidmontague.xyz" class="external-link" target="_blank">me (David Montague / `dmontagu`)</a>, the author of `fastapi_utils`:
You can connect with this fork maintainer
<a href="https://github.com/yuval9313" class="external-link" target="_blank">on **GitHub** (`Yuval9313`)</a>.

OR

You can connect with original <a href="https://davidmontague.xyz" class="external-link" target="_blank">me (David Montague / `dmontagu`)</a>, the author of `fastapi_utils`:

* <a href="https://github.com/dmontagu" class="external-link" target="_blank">Follow me on **GitHub**</a>.
* See other Open Source projects I have created that could help you.
Expand All @@ -30,7 +35,7 @@ You can connect with <a href="https://davidmontague.xyz" class="external-link" t

## Create issues

You can <a href="https://github.com/dmontagu/fastapis-utils/issues/new/choose" class="external-link" target="_blank">create a new issue</a> in the GitHub repository, for example to:
You can <a href="https://github.com/yuval9313/fastapis-utils/issues/new/choose" class="external-link" target="_blank">create a new issue</a> in the GitHub repository, for example to:

* Report a bug/issue.
* Suggest a new feature.
Expand All @@ -39,7 +44,7 @@ You can <a href="https://github.com/dmontagu/fastapis-utils/issues/new/choose" c

## Create a Pull Request

You can <a href="https://github.com/dmontagu/fastapi-utils" class="external-link" target="_blank">create a Pull Request</a>, for example:
You can <a href="https://github.com/yuval9313/fastapi-utils" class="external-link" target="_blank">create a Pull Request</a>, for example:

* To fix a typo you found in the documentation.
* To propose improvements to documentation.
Expand Down
38 changes: 20 additions & 18 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
<p align="center">
<em>Reusable utilities for FastAPI</em>
<em>Quicker FastApi developing tools</em>
</p>
<p align="center">
<img src="https://img.shields.io/github/last-commit/dmontagu/fastapi-utils.svg">
<a href="https://github.com/dmontagu/fastapi-utils" target="_blank">
<img src="https://github.com/dmontagu/fastapi-utils/workflows/build/badge.svg" alt="Build">
<a href="https://github.com/yuval9313/fastapi-restful" target="_blank">
<img src="https://img.shields.io/github/last-commit/yuval9313/fastapi-restful.svg">
<img src="https://github.com/yuval9313/FastApi-RESTful/workflows/build/badge.svg" alt="Build CI">
</a>
<a href="https://codecov.io/gh/dmontagu/fastapi-utils" target="_blank">
<img src="https://codecov.io/gh/dmontagu/fastapi-utils/branch/master/graph/badge.svg" alt="Coverage">
</a>
<a href="https://app.netlify.com/sites/trusting-archimedes-72b369/deploys">
<img src="https://img.shields.io/netlify/28b2a077-65b1-4d6c-9dba-13aaf6059877" alt="Netlify status">
<a href="https://fastapi-restful.netlify.app">
<img src="https://api.netlify.com/api/v1/badges/294b88e1-4b81-49c0-8525-9c4a2cb782e0/deploy-status" alt="Netlify status">
</a>
<br />
<a href="https://pypi.org/project/fastapi-utils" target="_blank">
<img src="https://badge.fury.io/py/fastapi-utils.svg" alt="Package version">
<a href="https://pypi.org/project/FastApi-RESTful" target="_blank">
<img src="https://badge.fury.io/py/fastapi-restful.svg" alt="Package version">
</a>
<a href="https://github.com/yuval9313/fastapi-restful" target="_blank">
<img src="https://img.shields.io/pypi/pyversions/FastApi-RESTful.svg" alt="Python versions">
<img src="https://img.shields.io/github/license/yuval9313/fastapi-utils.svg" alt="License">
</a>
<img src="https://img.shields.io/pypi/pyversions/fastapi-utils.svg">
<img src="https://img.shields.io/github/license/dmontagu/fastapi-utils.svg">
</p>

---

**Documentation**: <a href="https://fastapi-utils.davidmontague.xyz" target="_blank">https://fastapi-utils.davidmontague.xyz</a>
**Documentation**: <a href="https://fastapi-restful.netlify.app" target="_blank">https://fastapi-restful.netlify.app</a>

**Source Code**: <a href="https://github.com/yuval9313/fastapi-restful" target="_blank">https://github.com/yuval9313/fastapi-restful</a>

**Source Code**: <a href="https://github.com/dmontagu/fastapi-utils" target="_blank">https://github.com/dmontagu/fastapi-utils</a>
Base on: <a href="https://github.com/dmontagu/fastapi-utils" target="_blank">https://github.com/dmontagu/fastapi-utils</a>

---

Expand All @@ -38,11 +39,12 @@ But if you're here, you probably already knew that!

This package includes a number of utilities to help reduce boilerplate and reuse common functionality across projects:

* **Resource Class**: Create CRUD with ease the OOP way with `Resource` base class that lets you implement methods quick.
* **Class Based Views**: Stop repeating the same dependencies over and over in the signature of related endpoints.
* **Response-Model Inferring Router**: Let FastAPI infer the `response_model` to use based on your return type annotation.
* **Repeated Tasks**: Easily trigger periodic tasks on server startup
* **Timing Middleware**: Log basic timing information for every request
* **SQLAlchemy Sessions**: The `FastAPISessionMaker` class provides an easily-customized SQLAlchemy Session dependency
* Will be removed: **SQLAlchemy Sessions**: The `FastAPISessionMaker` class provides an easily-customized SQLAlchemy Session dependency
* **OpenAPI Spec Simplification**: Simplify your OpenAPI Operation IDs for cleaner output from OpenAPI Generator

---
Expand All @@ -55,7 +57,7 @@ It also adds a variety of more basic utilities that are useful across a wide var
* **CamelCase Conversions**: Convenience functions for converting strings from `snake_case` to `camelCase` or `PascalCase` and back
* **GUID Type**: The provided GUID type makes it easy to use UUIDs as the primary keys for your database tables

See the [docs](https://fastapi-utils.davidmontague.xyz/) for more details and examples.
See the [docs](https://fastapi-restful.netlify.app/) for more details and examples.

## Requirements

Expand All @@ -64,7 +66,7 @@ This package is intended for use with any recent version of FastAPI (depending o
## Installation

```bash
pip install fastapi-utils
pip install fastapi-restful
```

## License
Expand Down
Loading