Few Utilities
Project description
Few Utilities
Install
pip install ddcUtils
pip install -U git+https://github.com/ddc/ddcUtils
File Utils
from ddcUtils import file_utils
- open_file
- list_files
- gzip_file
- unzip_file
- copydir
- download_file
- get_exe_binary_type
- get_all_file_values
- get_all_file_section_values
- get_file_value
- set_file_value
Misc Utils
from ddcUtils import misc_utils
- Object()
- clear_screen
- user_choice
- get_active_branch_name
- get_current_date_time
- get_current_date_time_str_long
- convert_datetime_to_str_long
- convert_datetime_to_str_short
- convert_str_to_datetime_short
OS Utils
from ddcUtils import os_utils
- get_current_path
- get_pictures_path
- get_downloads_path
Databases
from ddcUtils.database import DBPostgres, DBSqlite, DBUtils
- DBSqlite
- DBPostgres
- DBUtils
- add
- execute
- fetchall
- fetchone
- fetch_value
Logs
from ddcUtils.log import Log
- setup_logging
Source Code
Build
- poetry build
Run Tests
- poe test
Get Coverage Report
- poe coverage
License
Released under the MIT License
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
ddcutils-1.0.3.tar.gz
(8.7 kB
view hashes)
Built Distribution
ddcutils-1.0.3-py3-none-any.whl
(10.6 kB
view hashes)