No project description provided
Project description
hrin-msb
Pre-requisites for setup
pip install poetry
poetry config http-basic.pypi __token__ <access-token>
How To Build
poetry build
poetry publish
Change Log
Version 0.1.1
Version 0.1.2
Version 0.1.3
- Default serializer added to ApiView
- fixed incorrect import in _validators.py
- fixed msb_database_router
- fixed Config.is_local_env() not working
- moved devscripts -> devtools
- File Utils Added to utils/files
- "app_label" removed from "TestConfig" & "ApiTest" Classes
- Fixed Bug : 'LoggingModelManager' object has no attribute '_queryset_class'
- Fixed : Logging Model not showing any records
- Fixed : str method for base model, & removed current_timestamp method from base model
Version 0.1.4
- Fixed : ModuleNotFoundError: No module named 'pdf2docx'
- Renamed “FileGenerator“ => “FileFactory”,
- Add
create_
Prefix in FileFactory methods - Renamed MsbMetaModel -> MsbModelMetaFields
- Added validation decorators, and fixed bulk validation issuses
- Modified Logging Configuration Files
- removed utils package
- moved msb_core.wrappers.exceptions -> msb_exceptions
- Fixed : Base ApiViews and Crud Routes
- Searchparameter class refactored, search method added in ApiService Class
Version 0.1.41
- Fixed: Crud operations not working with encrypted id's
- Package dependencies updated
- Validator test cases refactored
Version 0.1.5x
-- Version 0.1.51
- dbrouter print statement removed
- datetime constants renamed (added _FORMAT to all fof them)
- Fixed the default argument in msb_exception which was causing "DESC :" to log even if desc was none
- Api service create methdhod not working correctly
- file logging handler is not registered in local env by default, we need to pass
emulate_prod=True
to add it - SearchParameter class imported in package.init.py
- Fixed : test-cases are breaking because of logs databae
- added base unittest class, and modified unit_test to inherit djangoTestCase instead of unittest
- Added Validation Schema not defined exceptions
- Fixed init_django_app error, int datatype instead of str while setting environement variable.
- Added use_django decorator to use over classes/functions
- Fixed : MsbMetaModel not working
- MsbModel meta fields accessor added
- Poetry dependencies updated
- DMY_DATE_FORMAT added
- versioning changed
-- Version 0.1.52
- Fixed : MsbMetaFields not working
- Fixed : logging model lot of exceptions are thrown if table applicationlogs is not found
- Fixed : logging model exceptions file not found
- Fixed : db_migration throwing error if no migration dire is found
- renamed use_djnago -> use_django, default value for settinfs_dir is added to "app"
- renamend _query in msb_model to db_query
- field_type, and label added to configuration model
- unique_together constraint added to ConfigurationModel
- class DjangoMigration creates migration folder if it doesn't exists
- Added automatic fixture loading
- Fixed : msb_model.str() was not able to read the primary key value
- comma removed from msbMetamodels
- Cipher now supports encryption/decryption of list items
- SearchParameter modified to supoprt autmatic filter assignment
- Refactor
msb_auth
: TokenUser,AuthResult,Constants added - Jwt Token Validation is strict now, it allows only same owner
-- Version 0.1.521
- Fixed improper import exception
-- Version 0.1.522
- Added Login Required to base viewset
- Added Config Object class to msb_dataclasses
- Added msb_http to the package
- Added MsbDatabaseRouter in init.py
- Fixed model.delete() is not working
-- Version 0.1.611
- Modified django migration script
- Aded devtools to msb_ext
- removed
use_django
decorator & addedrequires_django
decorator - added default values for metafields
- added InputFiled.time in validation schema types
-- Version 0.2.0
- Fixed Cipher.decrypt() returning bytes instead of str
- Changed
SearchParameter
class implementation. - default offset & limit fixed in
SearchParameter
class
-- Version 0.2.2
- default values removed from model metafields
- Fixed
ModuleNotFoundError: No module named '_asymmetric_cipher'
- Fixed fixtures loaded in wrong sequence
- Feature
api_response.exception()
now sends back internal server error for undefined exceptions. - Fixed Token validation error
- Added
DefaultJwtAuthSettings()
class, to unify settings across the services - Added automatic fixture loading for test cases.
-- Version 0.2.3
- msb_testing refactored
- added new package
msb_const
- Optimized imports throughout
- Refactored
msb_devtools
, removedmsb_ext.devtools
msb_devtools._exceptions
file removed- Added constant to
mab_auth._constants
-- Version 0.2.4
- Refactor : (Optimized Imports,Sonarlint warnings)
- Refactor : Moved msb_apis.wrappers -> msb_http
-- Version 0.2.5
- Refactor : removed
msb_ext
, as it served no purpose - Fixed : token validation failing due to AUD & ISS claim
- Added default fixture paths to
msb_const.paths
-- Version 0.2.6
- renamed the property
db_query
torows
, to make it easier to understand. - added a mentod to deteremine if the current environment is either dev or test env
- CrudActions.all is now the default parameter value for
.as_view()
method. - Crud routes not working for single fields
- Fixed
self.seriallizer
not working withdict()
- Implemented
list
Api, to return predefined db columns - search parameter added in crud, searchparameters class refatored
-- Version 0.2.7
- Fixed :
_list_field_names
not working with properties & relations - Added
search_validation_rules
in DefaultRules
-- Version 0.2.8
- Fixed : list api breaking for foreign keys
- Fixed : Search parameter not working with fields
- Fixed: automatic encryption of db provate fields, now you need to put
DB_ENCRYPT_PRIVATE_FIELDS = True
to achieve that.
-- Version 0.2.9
- Fixed: automatic encryption of db primary key fields, now you need to put
DB_PK_IS_PRIVATE_FIELD = True
to achieve that.
-- Version 0.2.10
- Fixed : incorrect crud routes for [list,search]
- Refactored : msb_http
- Implemented :
MsbIntraServiceRequest
class - Implemented :
ApiRouter
class
-- Version 0.2.11
- Fixed /str:id route not working
- Authentication is failing due to jwt-token owner mismatch
-- Version 0.2.12
- Fixed: Payload validation is failing for DELETE and UPDATE Request
-- Version 0.2.13
- Updated : dependencies
- Fixed : crud list was breaking if no list fields are found/declared in model
- Refactored : Added _list fields in ConfigurationModel
-- Version 0.2.14
- Fixed : env_setup->db_migration requires user input to run
-- Version 0.2.15
- Fixed : Crud list api is breaking with None
-- Version 0.2.16
- Refactored : owner verification in Jwt token can now be controlled through settings.py file, using following
variables"
MSB_JWT_TRUSTED_OWNERS = []
(skips validation for the mentioned ip's) andMSB_JWT_VERIFY_OWNER = False
(turns on/off the owner verification) - Implemented :
MsbIntraServiceRequest
class in msb_http - Update :
ApiService
now hasresource_name
attribute in the class, this helps in better exception messages from default crud operations. - Refactor :
MsbIntraServiceRequest
- Update : default crud api's now returns detailed error messages
- Update : All api's now returns detailed error messages for any exceptions.
-- Version 0.2.17
- Update :
ApiService
now automatically takes the resource name if not provided. - Fixed :
MsbIntraServiceRequest
not working through api-gateway
-- Version 0.2.18
- Fixed : query parameters not working in
MsbIntraServiceRequest
- Fixed : search parameter query not working in
MsbIntraServiceRequest
- Fixed : limit and offset not working in list Api
- Refactor: _dataclasses
- Refactor : modified api_view error handler
-- Version 0.2.19
- removed Self parameter, due to compatibility issue
- Fixed : list/retrieve api bug
-- Version 0.2.2xx
- Fixed : UserRole.init() got an unexpected keyword argument 'access_type'
- Added: recover method in model
- Refactor : moved all constants to
msb_constants
-- Version 0.2.95
- Added: Added decorator
verify_ip
to restrict the CRON Jobs tasks
-- Version 0.2.96
- Modified: Modified decorator
verify_ip
to work for unauthenticated requests
-- Version 0.2.97
- Modified: Bulk create to pass key-value arguments
-- Version 0.2.98
- Modified: Modified decorator
verify_ip
to use real ip instead of remote ip
-- Version 1.0.0
- Modified: Modified
update
service to update theCOLUMN_NAME_UPDATED_AT
on function call
-- Version 1.0.1
- Modified: Modified
add
RoleConstARCHITECT_ROLE_ID
on constant file in msb->auth->constants.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hrin_msb-1.0.1.tar.gz
(58.0 kB
view details)
Built Distribution
hrin_msb-1.0.1-py3-none-any.whl
(85.7 kB
view details)
File details
Details for the file hrin_msb-1.0.1.tar.gz
.
File metadata
- Download URL: hrin_msb-1.0.1.tar.gz
- Upload date:
- Size: 58.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8097e61dd85b9fb35f1d9f491cc14aff58f159dc9cedab4a7df40906864e4e92 |
|
MD5 | 3d4e43f424fcd3a5422eac71e069ce6e |
|
BLAKE2b-256 | 4f0275563f8fe9ac9426d28b9910bb2c2a65b5cb26d49ee2505d06c6486432d6 |
File details
Details for the file hrin_msb-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: hrin_msb-1.0.1-py3-none-any.whl
- Upload date:
- Size: 85.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dba0b975af62b2f7f3d9bc71bdb379a83842002917bf411120f7107e42cdbf8 |
|
MD5 | ab2b56b3f0074a31858806ea10e21fa1 |
|
BLAKE2b-256 | 94dba91b26d6f69c1349e188c44c91fdaf4ea420da466633f7fd547cc28036fe |