this is common for base
Project description
#Common Package This is a common package for base, my web project base package (With Django).
-
Dto
- ResObj (this is Response Dto format:{"code":200, "message":"", data: None})
-
Middlewares
- exception_middleware (this is gobal exception middleware for Django)
-
Exception (this is custom exception)
- AuthException
- BusinessException
-
Utils
- date_util
- get_time_by_str(date_str, date_format=DATE_TIME_FORMAT)
- convert_date_str_format(date_str, old_format, new_format)
- get_date_str_by_time(date_format, timestamp)
- file_util
- read_files_in_folder(file_path)
- write_json_to_file(file_path, data, encoding='UTF-8')
- http_util
- get(url, params=None, headers=None)
- get_json(url, params=None, headers=None)
- post(url, params=None, headers=None, timeout=30)
- post_json(url, params=None, headers=None, timeout=30)
- date_util
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
common-web-0.1.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for common_web-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b4094f7fd64a36ddd0f0d52dbcae97c98cebae9852a8f8a6fcf1b62aad9b019 |
|
MD5 | bfb7f328cae224d09a9f5f390b25e82e |
|
BLAKE2b-256 | 7b7a53c104de30e0583a1512233f79367d41553c80f4aabff4d0a62340534fe0 |