A collection of utilities to simplify a data workflow using pandas, Excel, DOMO, and other tools.
Project description
jedi_toolz
Collection of utilities to work with pandas, Excel, and other data applications and tools.
This file will become your README and also the index of your documentation.
Install
pip install jedi_toolz
How to use
Create an example.ini file. The ini file can be stored anywhere and contain login credentials, odbc arguments, default folders, etc.
set_path can be used to set the location of the .ini file at runtime OR the JEDI_TOOLZ_PATH environment variable can be set to persit the changes across usages.
example = set_path(example_ini())
print("#", f"{example.name}")
print(example.open().read())
# example.ini
[test1]
value1 = 5
value2 = 6
[test2]
valuea = ABC
valueb = 123
as_dict()
{'test1': {'value1': '5', 'value2': '6'},
'test2': {'valuea': 'ABC', 'valueb': '123'}}
as_records()
[{'section': 'test1', 'option': 'value1', 'value': '5'},
{'section': 'test1', 'option': 'value2', 'value': '6'},
{'section': 'test2', 'option': 'valuea', 'value': 'ABC'},
{'section': 'test2', 'option': 'valueb', 'value': '123'}]
select("test1")
{'value1': '5', 'value2': '6'}
select("test1", "value2")
'6'
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
jedi_toolz-0.0.1.tar.gz
(10.0 kB
view hashes)
Built Distribution
Close
Hashes for jedi_toolz-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 278b863286754e4ef86634796fb0fab053e7effe20434da7bf0ad6322ef34ce1 |
|
MD5 | b49aa5b4c1045f44006d5ecb1272714b |
|
BLAKE2b-256 | d4f4faa86a2d4f612753ba2fc5ab2e723fd129d7b9145dbeb252f37427304ba3 |