greece-utils
A set of common but yet useful generic tools
Examples:
Convert SQL database table to CSV file
Implement recursive mapping of all foreign key tables (join of all related tables)
>>> from utils.toolset import SqlCsv
>>> my_object = SqlCsv(engine, session)
>>> my_object.to_csv("my_table_name", "path/to/file.csv", map_foreign_key_tables=True)
Find files in directory
from utils.sys import find_file
- Look for file extension in current directory
>>> find_file(".py")
- Look for file name(s) in specific directory
>>> find_file("filename", "/path/to/valid/directory")
- Look for multiple file names/extension in current directory
>>> list(set([item for item in find_file(ext) for ext in ["filename", ".py"]]))
Log
- Print standard output error to log file
>>> from utils.sys import StreamToLogger
>>> import logging
>>> log = StreamToLogger(logging.getLogger('STDERR'), name=log_name, log_level=logging.ERROR)
>>> sys.stderr = log
Metadata
Release files for greece-utils 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 |
|---|---|---|---|---|
| greece-utils-0.2.tar.gz | 10.6 kB | Without provenance | Details for greece-utils-0.2.tar.gz |
Release files / greece-utils-0.2.tar.gz
| Download URL | greece-utils-0.2.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7a0317fed557dabcaa9a0d35f4e791e45c2de2d496072c464053bef8354e863
|
|
BLAKE2b-256 checksum How to use checksums |
f60880bc737a7a6570a882e2e4941853cd2eaa3c3eee086b5a8688203bb970b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.9
|
Security for greece-utils 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.