This repository has been archived by the owner on Jul 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update code to ref pynocular and do readme * finished readme * Version bumped to 0.3.0 * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * Update README.md Co-authored-by: Jonathan Drake <[email protected]> * PR comments * test issues * run pre-commit on readme * fix precommit hook * Update pynocular/__init__.py Co-authored-by: Jonathan Drake <[email protected]> * update license * update year in license Co-authored-by: ns-circle-ci <[email protected]> Co-authored-by: Jonathan Drake <[email protected]>
- Loading branch information
1 parent
6309297
commit 313dc15
Showing
15 changed files
with
232 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
Copyright (c) 2021, Narrative Science | ||
|
||
All rights reserved. | ||
Redistribution and use in source and binary forms, with or without | ||
modification, are NOT permitted. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
Neither the name of the nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""Lightweight ORM that lets you query your database using Pydantic models and asyncio""" | ||
|
||
__version__ = "0.3.0" | ||
|
||
from pynocular.engines import DatabaseType, DBInfo |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"""Configuration for engines and models""" | ||
import os | ||
|
||
POOL_RECYCLE = int(os.environ.get("POOL_RECYCLE", 300)) | ||
DB_POOL_MIN_SIZE = int(os.environ.get("DB_POOL_MIN_SIZE", 2)) | ||
DB_POOL_MAX_SIZE = int(os.environ.get("DB_POOL_MAX_SIZE", 10)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,27 @@ | ||
[tool.poetry] | ||
name = "ns_sql_utils" | ||
version = "0.2.0" | ||
description = "Utilities for interacting with SQL databases" | ||
authors = ["Gregory Berns-Leone <[email protected]>"] | ||
license = "Proprietary" | ||
name = "pynocular" | ||
version = "0.3.0" | ||
description = "Aysnchronous ORM framework for Pydantic Models" | ||
authors = [ | ||
"RJ Santana <[email protected]>", | ||
"Patrick Hennessy <[email protected]>", | ||
"Gregory Berns-Leone <[email protected]>" | ||
] | ||
license = "BSD-3-Clause" | ||
readme = "README.md" | ||
homepage = "https://github.com/NarrativeScience/ns_sql_utils" | ||
repository = "https://github.com/NarrativeScience/ns_sql_utils" | ||
homepage = "https://github.com/NarrativeScience/pynocular" | ||
repository = "https://github.com/NarrativeScience/pynocular" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6.5" | ||
# Up to "^3.1"? | ||
aenum = "^2.1" | ||
aiocontextvars = "=0.2.2" | ||
# Can we unpin this? | ||
# aiopg = ">=1.2" | ||
aiopg = "==0.16.0" | ||
# Can we unpin this? | ||
# asyncpg = "^0.23" | ||
asyncpg = "==0.15.0" | ||
asyncpgsa = "==0.23.0" | ||
# Can we unpin this? | ||
# backoff = "^1.11" | ||
backoff = "==1.10.0" | ||
# Up to "^1.8"? | ||
pydantic = "^1.6" | ||
# Can we unpin this? | ||
# SQLAlchemy = "^1.4" | ||
SQLAlchemy = ">=1.3.19<1.4" | ||
# Doesn't exist yet | ||
# ns-data-structures = "" | ||
ns-env-config = "^0.2.0" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pre-commit = "^2.10.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.