odbms 0.2.7__tar.gz → 0.2.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odbms
3
- Version: 0.2.7
3
+ Version: 0.2.9
4
4
  Summary: Database client for Mysql, MongoDB and Sqlite
5
5
  Author: Amos Amissah
6
6
  Author-email: theonlyamos@gmail.com
@@ -21,6 +21,7 @@ Description-Content-Type: text/markdown
21
21
  License-File: LICENSE
22
22
  Requires-Dist: python-dotenv
23
23
  Requires-Dist: pymongo
24
+ Requires-Dist: psycopg2
24
25
 
25
26
  # odbms
26
27
  Python package for Managing Mysql, Mongodb and Sqlite instances
@@ -5,7 +5,7 @@ import sys
5
5
 
6
6
  Database = None
7
7
 
8
- VERSION = "0.2.7"
8
+ VERSION = "0.2.9"
9
9
 
10
10
  def main(args):
11
11
  global parser
@@ -1,6 +1,5 @@
1
1
  from datetime import datetime
2
2
  from typing import Union
3
- import uuid
4
3
 
5
4
  from bson.objectid import ObjectId
6
5
  from .dbms import DBMS
@@ -15,11 +14,11 @@ class Model():
15
14
  LIMIT = 0
16
15
 
17
16
  def __init__(self, created_at=None, updated_at=None, id=None):
18
- self.created_at = (datetime.utcnow()).strftime("%a %b %d %Y %H:%M:%S") \
17
+ self.created_at = (datetime.now()).strftime("%a %b %d %Y %H:%M:%S") \
19
18
  if not created_at else created_at
20
- self.updated_at = (datetime.utcnow()).strftime("%a %b %d %Y %H:%M:%S") \
19
+ self.updated_at = (datetime.now()).strftime("%a %b %d %Y %H:%M:%S") \
21
20
  if not updated_at else updated_at
22
- self.id = str(uuid.uuid4()) if not id else str(id)
21
+ self.id = str(ObjectId()) if not id else str(id)
23
22
 
24
23
  @classmethod
25
24
  def create_table(cls):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odbms
3
- Version: 0.2.7
3
+ Version: 0.2.9
4
4
  Summary: Database client for Mysql, MongoDB and Sqlite
5
5
  Author: Amos Amissah
6
6
  Author-email: theonlyamos@gmail.com
@@ -21,6 +21,7 @@ Description-Content-Type: text/markdown
21
21
  License-File: LICENSE
22
22
  Requires-Dist: python-dotenv
23
23
  Requires-Dist: pymongo
24
+ Requires-Dist: psycopg2
24
25
 
25
26
  # odbms
26
27
  Python package for Managing Mysql, Mongodb and Sqlite instances
@@ -1,2 +1,3 @@
1
1
  python-dotenv
2
2
  pymongo
3
+ psycopg2
@@ -1,7 +1,7 @@
1
1
  from importlib.metadata import entry_points
2
2
  from setuptools import setup, find_packages
3
3
 
4
- VERSION = '0.2.7'
4
+ VERSION = '0.2.9'
5
5
 
6
6
  with open('README.md', 'rt') as file:
7
7
  description = file.read()
@@ -17,7 +17,7 @@ setup(
17
17
  long_description_content_type = "text/markdown",
18
18
  include_package_data=True,
19
19
  # install_requires=['python-dotenv','pymongo', 'mysql', 'mysql-connector', 'mysql-connector-python'],
20
- install_requires=['python-dotenv','pymongo'],
20
+ install_requires=['python-dotenv','pymongo', 'psycopg2'],
21
21
  keywords='python3 runit developer serverless architecture docker sqlite mysql mongodb',
22
22
  project_urls={
23
23
  'Source': 'https://github.com/theonlyamos/odbms/',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes