-
-
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.
- Simplify Architecture - Configurable Manager Case (for Collection Names) - Add Dynamic Requirement Builder - Streamline Requirements Signed-off-by: alexgurrola <[email protected]>
- Loading branch information
1 parent
5d8c9cb
commit 7a360f5
Showing
14 changed files
with
84 additions
and
94 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
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,3 +1 @@ | ||
plac==0.9.6 | ||
pymongo==3.6.0 | ||
setuptools==38.5.1 | ||
pymongo==3.6.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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
Snakelet is a Mongo ORM using Native Drivers without Schemas | ||
""" | ||
|
||
__version__ = '0.3.0' | ||
__version__ = '0.4.0' | ||
__author__ = 'Alex Gurrola' | ||
__email__ = '[email protected]' | ||
__url__ = 'https://github.com/alexgurrola/snakelet' |
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,13 +1,14 @@ | ||
def main(version: ("display version", 'flag', 'a')): | ||
def main(): | ||
import argparse | ||
import snakelet | ||
if version: | ||
print(snakelet.__version__) | ||
|
||
parser = argparse.ArgumentParser(description='Schema-less Micro-ORM') | ||
parser.add_argument('-v', '--version', dest='version', action='version', version=snakelet.__version__) | ||
parser.parse_args() | ||
|
||
if __name__ == '__main__': | ||
import plac | ||
|
||
if __name__ == '__main__': | ||
try: | ||
plac.call(main) | ||
main() | ||
except KeyboardInterrupt: | ||
print('\nGoodbye!') |
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 @@ | ||
from .collection import Collection | ||
from .document import Document | ||
from .manager import Manager | ||
from .paginator import Paginator | ||
|
||
__all__ = ( | ||
'Document' | ||
'Collection', | ||
'Document', | ||
'Manager', | ||
'Paginator', | ||
) |
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
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,15 +1,5 @@ | ||
class Proxy: | ||
# TODO: Build a proxy that can load hydrate itself when accessed | ||
# TODO: Register models for relations to exist without needing to have separate instances | ||
# TODO: Use register to hydrate all models of the same type simultaneously | ||
pass | ||
|
||
|
||
def main(): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
import plac | ||
|
||
try: | ||
plac.call(main) | ||
except KeyboardInterrupt: | ||
print('\nGoodbye!') |
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