A module for common functions optimised for data scientists that need to code repeatitive tasks fast
Project description
This module helps ease annoying small tasks especially for data scientists. It has the following main functionalities.
cjfx.excel
- This module will create an excel file with much ease. You can to rows, columns or target cells, write formulas add sheets and add charts to your excel book. It does not modefy existing ones.
cjfx.wordDocument
- This will help you create word documents including adding figures and basic formating.
cjfx.mssqlConnection
- An easy to use abstraction layer for pyodbc in conjuction with pandas and geopandas to manage MSSQL databases.
cjfx.sqliteConnection
- An abstraction layer for sqlite3 for quick management of sqlite databases.
functions that you didn't know you needed
write_to(filepath:str, string_to_write:str) -> writes a string to file on disk
read_from(filepath:str) -> reads from an asci file on disk
exists(path) -> checks if a path exists returns a boolean.
file_name(file_path:str) -> gives you the file basename (with option to include file extension).
list_files(dir_path:str) -> lists all files in a given directory with option to filter by extension. returns a list of paths
list_all_files(dir_path:str) -> same as 'list_files' but includes subfolders.
list_folders(dir_path:str) -> lists all directories in a given folder. returns a list of folder names.
python_variable -> a quick funtion to save or load a python variable to disk.
show_progress -> shows a progress bar for long loops.
other functions
copy_file,
ignore_warnings,
transparent_image,
get_file_size,
merge_documents,
resize_image,
download_file,
get_nse,
get_pbias,
delete_path,
save_array_as_image,
create_icon,
unzip_file,
this_dir,
copy_projection,
set_tif_nodata,
clip_features,
assign_default_projection,
plot,
show,
copy_directory_tree,
remove_header_duplicates,
get_swat_timeseries,
clip_raster,
points_to_geodataframe,
convert_webm_to_mp3,
download_video_youtube,
get_relative_path,
install_package,
get_usgs_timeseries,
decode_64,
wait,
get_raster_value_for_coords,
rasterise_shape,
extract_timeseries_from_netcdf,
rand_apha_num,
make_plot,
goto_dir,
smart_copy,
print_dict,
cd,
slope_intercept,
distance,
download_file2,
xml_children_attributes,
report,
print_list,
disp,
create_path,
flow_duration_curve,
is_file,
resample_ts_df,
raster_statistics,
empty_line,
hide_folder,
time_stamp,
copy_folder,
delete_file,
run_swat_plus,
open_file_in_code,
format_timedelta,
confirm,
open_tif_as_array,
single_spaces,
view,
quit,
insert_newlines,
gdal_datatypes,
resample_raster,
create_polygon_geodataframe,
reproject_raster,
set_nodata,
get_extents,
error,
strip_characters,
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
cjfx-0.0.2.tar.gz
(25.4 kB
view details)
Built Distributions
cjfx-0.0.2-py3-none-any.whl
(26.5 kB
view details)
cjfx-0.0.2-py2.py3-none-any.whl
(26.5 kB
view details)
File details
Details for the file cjfx-0.0.2.tar.gz
.
File metadata
- Download URL: cjfx-0.0.2.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3388698fd2b845c2c0bcb1ddf131ddb3441498e7fe104bebee1623632936c1a |
|
MD5 | 71e28e54d93b5fbff526f0b2ad08bd54 |
|
BLAKE2b-256 | 09fb42af85e8223a1c3c78ed438e161103eef30230f8d8a9762af0a4b118cde2 |
File details
Details for the file cjfx-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: cjfx-0.0.2-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaf9b230d8d07ed68d1069ca5902d1f1a9dc9233d140b695e193d904fe4d8ae3 |
|
MD5 | 5f8544236ac572ca3f0935d6d4801c0a |
|
BLAKE2b-256 | 546e356e33f43f2264623d76c0d5cfd8d3b0d2f283a0204b525cd7620ab1217b |
File details
Details for the file cjfx-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: cjfx-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | beff6b253a31bb2d9e06c2786b38903516662e76ad549409550d3fba58a30bc9 |
|
MD5 | 7c3ea47d2c5c8895cb7e96afcd0d0875 |
|
BLAKE2b-256 | 04c1440f163b05878486e6a44b9c8edfb84d4d7fc0a76f22a3a884e3c26824ee |