Metadata-Version: 2.1
Name: ddcUtils
Version: 1.0.3
Summary: Few Utilities
Home-page: https://github.com/ddc/ddcUtils
License: MIT
Author: Daniel Costa
Author-email: danieldcsta@gmail.com
Requires-Python: >=3.11,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: SQLAlchemy (>=2.0.25,<3.0.0)
Requires-Dist: requests (>=2.31.0,<3.0.0)
Requires-Dist: urllib3 (>=2.1.0,<3.0.0)
Description-Content-Type: text/markdown

# Few Utilities

[<img src="https://img.shields.io/github/license/ddc/ddcUtils.svg?style=plastic">](https://github.com/ddc/ddcUtils/blob/master/LICENSE)
[<img src="https://img.shields.io/badge/Python-3.11+-blue.svg?style=plastic">](https://www.python.org/)
[<img src="https://img.shields.io/github/release/ddc/ddcUtils.svg?style=plastic">](https://github.com/ddc/ddcUtils/releases/latest)
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fddc%2FddcUtils%2Fbadge%3Fref%3Dmain&style=plastic&label=build&logo=none)](https://actions-badge.atrox.dev/ddc/ddcUtils/goto?ref=main)


# 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](LICENSE)

