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
Metadata
Release files for ctodd-python-lib-general 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ctodd-python-lib-general-1.0.2.tar.gz | 5.3 kB | Without provenance | Details for ctodd-python-lib-general-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ctodd_python_lib_general-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for ctodd_python_lib_general-1.0.2-py3-none-any.whl |
Total release size: 11.4 kB
Release files / ctodd-python-lib-general-1.0.2.tar.gz
| Download URL | ctodd-python-lib-general-1.0.2.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f4949e06734395bc6a614842b2060b5c7821a3383ddabe51a4d9b869433a91c
|
|
BLAKE2b-256 checksum How to use checksums |
579b780d818cf2a49c0cdbdb3497e3a00041d3086f986fd3db30c87e254762ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|
Release files / ctodd_python_lib_general-1.0.2-py3-none-any.whl
| Download URL | ctodd_python_lib_general-1.0.2-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41be10a7e75d327069fecde2a32fbc77c7da226259294f475abfd9b4622f0a1f
|
|
BLAKE2b-256 checksum How to use checksums |
afb8d239d2befb5bca62d3905aeca9d0f0d25ff4953f164c42f31887b3c5eb70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|
Security for ctodd-python-lib-general 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.