crud-mysql 0.1.3__tar.gz → 0.1.6__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.4
2
2
  Name: crud-mysql
3
- Version: 0.1.3
3
+ Version: 0.1.6
4
4
  Summary: crud defiend by json
5
5
  Home-page: https://github.com/Ms-Shoshany/crud-mysql
6
6
  Author: hanna
@@ -29,7 +29,7 @@ main.py / app.py - example
29
29
 
30
30
  from flask import Flask
31
31
  from flask_cors import CORS
32
- from crud-mysql import crud
32
+ from crud_mysql import crud
33
33
 
34
34
  app = Flask(__name__)
35
35
 
@@ -2,7 +2,7 @@ main.py / app.py - example
2
2
 
3
3
  from flask import Flask
4
4
  from flask_cors import CORS
5
- from crud-mysql import crud
5
+ from crud_mysql import crud
6
6
 
7
7
  app = Flask(__name__)
8
8
 
@@ -0,0 +1,2 @@
1
+ from .endpoints import crud, create_object, get_object, delete_object, update_object
2
+ from .crud_object import CrudObject
@@ -27,9 +27,9 @@ class CrudObject:
27
27
  raise Exception(f"cant find {self.object_type} with id: {object_id}")
28
28
  return object
29
29
 
30
- def get_objects(self, filter, include_columns=[], exclude_columns=[]):
30
+ def get_objects(self, filter, include_columns=[], exclude_columns=[], conditions={}):
31
31
 
32
- object = self.db.get_filtered_list_of_objects(self.object_type, filter, include_columns, exclude_columns, as_dict=True)
32
+ object = self.db.get_filtered_list_of_objects(self.object_type, filter, include_columns, exclude_columns, conditions, as_dict=True)
33
33
  return object
34
34
 
35
35
  def create_object(self, object):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crud-mysql
3
- Version: 0.1.3
3
+ Version: 0.1.6
4
4
  Summary: crud defiend by json
5
5
  Home-page: https://github.com/Ms-Shoshany/crud-mysql
6
6
  Author: hanna
@@ -29,7 +29,7 @@ main.py / app.py - example
29
29
 
30
30
  from flask import Flask
31
31
  from flask_cors import CORS
32
- from crud-mysql import crud
32
+ from crud_mysql import crud
33
33
 
34
34
  app = Flask(__name__)
35
35
 
@@ -5,7 +5,7 @@ with open('README.md', encoding='utf-8') as f:
5
5
 
6
6
  setup(
7
7
  name='crud-mysql',
8
- version='0.1.3',
8
+ version='0.1.6',
9
9
  packages=find_packages(),
10
10
  install_requires=['mysql-connector-python', 'mysql-database', 'flask'],
11
11
  author='hanna',
@@ -1 +0,0 @@
1
- from .endpoints import crud
File without changes
File without changes