Skip to main content

Handy functions for manipulating data and automating processes

Project description

handyfuncs | handy functions for manipulating data and automating processes

About

This functions in this package include but are not not limited to:

Data Manipulation

  1. Merge Dictrionaries
  2. Convert Dictionary to List
  3. Get Initials
  4. Number of Words in String

Automation

  1. Write to Log
  2. Run Subprocess
  3. Current Method Name
  4. Execute Function

Data Manipulation

Merge Dictionaries

This will not only merge the items in each dictionary but also merge the items in any shared lists

from handyfuncs import merge_dictionaries

d1 = {
      'clothes': ['shoes', 'socks', 'ties']
      , 'food': ['cheese', 'bananas', 'lentils']
      }
d2 = {
      'clothes': ['shoes', 'socks', 'shorts', 'hats']
      , 'cutlery': ['knives', 'forks']
      }
d3 = merge_dictionaries(d1, d2)

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

handyfuncs-0.0.2.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

handyfuncs-0.0.2-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page