Skip to content

PingjunChen/pydaily

Repository files navigation

pydaily - Python Daily Utilities

Codacy Badge codecov CircleCI Documentation Status PyPI version Conda install Downloads

Buy Me A Coffee

Motivation

We wrote lots of codes with the same or nearly the same functionalities daily. Although writing these codes is trivial, but it takes time and affect the mood. Sometimes we even need to use Google or stackoverflow because of bad memory. Here I put the codes that we almost need to use everyday to avoid reinvent the wheels. The codes here help reduce my coding burden, so that I can focus on core functionalities. Please consider star if you benefit from this repo.

Installation

  • Using pip:
pip install pydaily==0.4.4
  • Using conda:
conda install -c conda-forge pydaily

Functionalities

IO-filesystem

  • finding all files with given extension
  • directory overwriting, creating, etc
  • batch renaming files

FORMAT-format

  • dict to csv, h5, json, pickle, etc
  • list to txt

MTM-medical text mining

  • tokenize text

LOG-log

  • logging message to file

TIC-time

  • calculating elapsed time
  • getting current time

Documentation

Hosted in https://pydaily.readthedocs.io, powered by readthedocs and Sphinx.

Contributing

pydaily is an open source project and anyone is welcome to contribute. An easy way to get started is by suggesting a new enhancement on the Issues. If you have found a bug, then either report this through Issues, or even better, make a fork of the repository, fix the bug and then create a Pull Request to get the fix into the master branch.

License

pydaily is free software made available under the Apache License. For details see the LICENSE file.