Skip to content

Commit 91b7707

Browse files
authored
Merge pull request #390 from devsetgo/dev
creating main release for 0.11.2
2 parents 1e59fdd + eb92429 commit 91b7707

20 files changed

+24
-22
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.11.2-beta1
2+
current_version = 0.11.2
33
commit = False
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>[a-z]+)(?P<num>\d+))?

coverage.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" ?>
2-
<coverage version="7.4.1" timestamp="1708138416964" lines-valid="601" lines-covered="159" line-rate="0.2646" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
2+
<coverage version="7.4.1" timestamp="1708213972149" lines-valid="601" lines-covered="159" line-rate="0.2646" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
33
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.4.1 -->
44
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
55
<sources>

docs/recipes/asyncDatabase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Example of how to use in a script
77
```python
88
import asyncio
99
from sqlalchemy import select
10-
from dsg_lib import database_config, async_database, database_operations
10+
from dsg_lib.async_database_functions import database_config, async_database, database_operations
1111

1212
# Configuration
1313
config = {

docs/recipes/fastapi.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ from sqlalchemy import Column, ForeignKey, Select, String
2727
from sqlalchemy.orm import relationship
2828
from tqdm import tqdm
2929

30-
from dsg_lib import (
30+
from dsg_lib.async_database_functions import (
3131
async_database,
3232
base_schema,
3333
database_config,
3434
database_operations,
35-
logging_config,
3635
)
36+
from dsg_lib.common_functions import logging_config
3737

3838
logging_config.config_log(
3939
logging_level="INFO", log_serializer=False, log_name="log.log"
@@ -81,7 +81,9 @@ async def root():
8181
return response
8282

8383

84-
from dsg_lib import system_health_endpoints # , system_tools_endpoints
84+
from dsg_lib.fastapi_functions import ( # , system_tools_endpoints
85+
system_health_endpoints,
86+
)
8587

8688
config_health = {
8789
"enable_status_endpoint": True,

docs/recipes/loggingExample.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ from uuid import uuid4
99
from loguru import logger
1010
from tqdm import tqdm
1111

12-
from dsg_lib import logging_config
12+
from dsg_lib.common_functions import logging_config
1313

1414
logging_config.config_log(
1515
logging_directory="log",

docs/recipes/patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pprint
66
from random import randint
77

8-
from dsg_lib.patterns import pattern_between_two_char
8+
from dsg_lib.common_functions.patterns import pattern_between_two_char
99

1010
ASCII_LIST = [
1111
" ",

dsg_lib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
__version__ = "0.11.2-beta1"
3+
__version__ = "0.11.2"
44

55
# # from .async_database_functions import async_database as async_database
66
# # from .async_database_functions import base_schema as base_schema

dsg_lib/async_database_functions/async_database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
database operations. It provides methods to get a database session and to create
1616
tables in the database.
1717
18-
This module uses the logger from the dsg_lib for logging.
18+
This module uses the logger from the dsg_lib.common_functions for logging.
1919
"""
2020

2121

dsg_lib/async_database_functions/base_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
To create a new database model, import this module and extend the `SchemaBase`
1818
class.
1919
20-
Example: ```python from dsg_lib import base_schema
20+
Example: ```python from dsg_lib.async_database_functions import base_schema
2121
2222
class MyModel(base_schema.SchemaBase):
2323
# Define your model-specific columns here my_column =

dsg_lib/async_database_functions/database_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def import_sqlalchemy() -> Tuple:
5959
ImportError: If SQLAlchemy is not installed or if the installed version
6060
is not compatible with the minimum required version.
6161
62-
Example: ```python from dsg_lib import database_config sqlalchemy, MetaData,
62+
Example: ```python from dsg_lib.async_database_functions import database_config sqlalchemy, MetaData,
6363
create_engine, text, IntegrityError, SQLAlchemyError, AsyncSession,
6464
create_async_engine, select, declarative_base, sessionmaker =
6565
database_config.import_sqlalchemy() ```

0 commit comments

Comments
 (0)