Skip to main content

this is common for base

Project description

#Common Package This is a common package for base, my web project base package.

  • Dto

    • ResObj (this is Response Dto format:{"code":200, "message":"", data: None})
  • handler

    • exception_handler (this is gobal exception handler)
  • 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)
    • festival_util
      • get_holiday_date_by_year_name(year, festival_name)
      • get_holiday_by_date(date_str)
      • is_holiday(date_str)

Project details


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-1.0.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

common_web-1.0.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file common_web-1.0.1.tar.gz.

File metadata

  • Download URL: common_web-1.0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for common_web-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5c64730c0df5b8554776b46c39bc94fe194dc6fcaea9cfe01545dcb15fff5481
MD5 0830301eeeec3b0bc7fbeee35ca2852e
BLAKE2b-256 1f328ac0a3d031e25387c4a3f9b1f4f6f276217af38d4be394518a0cb5032ae6

See more details on using hashes here.

File details

Details for the file common_web-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: common_web-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for common_web-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8b221ce19494f2d56e5b7958812812b8c813466e7442bf71bb5f83da40593e9
MD5 6d5bb6091ae5cb2a3f11620cc7070543
BLAKE2b-256 7b96184cfe2f308397bc7ede7971ab15d85e660a8b1d463ddaa8aa8794357ab1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page