Python utilities used for General Functions not grouped in specific packages
Project description
Christopher H. Todd's Python Library For General Tasks
The ctodd-python-lib-general project is responsible for general tasks that have not been put in specific libraries. Will basically be a dumping ground for one-off tasks that are repeatable but would not call for a specific lib that can be expanded.
Table of Contents
Dependencies
Python Packages
- requests>=2.21.0
Libraries
downloader.py
Lib that allows downloading a File from the given url and saving to the given location
Functions:
def download_file(url, file_location=None, overwrite=False):
"""
Purpose:
Download file from specified URL and store in a specfied location.
If no location is provided, the file is downloaded in the current
directory. If overwrite is false, the file is not downloaded.
Args:
url (string): Full URL path to download file from.
file_location (string): Full path to where file will be stored.
overwrite (Boolean): Whether or not to overwrite file if it already
exists
Return
file_location (string): Full path to where file was be stored.
"""
Example Scripts
Example executable Python scripts/modules for testing and interacting with the library. These show example use-cases for the libraries and can be used as templates for developing with the libraries or to use as one-off development efforts.
N/A
Notes
- Relies on f-string notation, which is limited to Python3.6. A refactor to remove these could allow for development with Python3.0.x through 3.5.x
TODO
- Unittest framework in place, but lacking tests
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
Built Distribution
Hashes for ctodd-python-lib-general-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3466886f49e72b04d6718c41658196aa02d9920f7cf3ae8746c3e9357fb9613c |
|
MD5 | 17445d79f6d01f9a7dba5e0e21c0d25c |
|
BLAKE2b-256 | 8d92aac45d60aa3f98ffa3dd897eff3600c0b38220650bf9a1930a84ae0fcfb1 |
Hashes for ctodd_python_lib_general-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3d0f2ba234c3ffe56d9c0eb311d1f8c3a06d8bbff3ccb9694e2b74342c6380d |
|
MD5 | cd1008022d129bf9a06fb477a73e5f61 |
|
BLAKE2b-256 | b9f81da19b63911fa60a2acd370322abb273be05f2d88a957e4a8f94a0af0bd4 |