Skip to main content

A small set of tools to make Python just a bit easier to use

Project description

smpul.py

V0.4

A neat small package to speed up your coding

check out the github page for source code

FUNCTIONS:

  • smpul
    • tree
      • r(filename) reads from a file and returns the contents
      • w(filename, content) writes to a file
      • a(filename, content) appends to a file
    • math
      • mm(numberlist) returns the mean and median of a list of numbers in a dictionry, call with "mean" and "median"
    • text
      • tprint(content, timeBetweenChrs) prints a string and for each item in it waits a specified amout of time before printing the the next
      • num(number) takes any number and formats it with commas to show thousands place and so forth
    • discord
      • blockLetter(content) returns discords custom blockletter emoji syntax for any string of alphabetic chrs

CHANGELOG:

  • 0.4.0
    • added support for python 2
      • smpul.math not supported in python 2
    • added smpul.versions which displays the versions that the module version directly supports (this version supports 2.7, 3.6, 3.7)
      • it is possible to run in other versions but it has been tested to support the listed versions
    • theoretically wont break if tried to run using python 1, will error out instead
  • 0.3.2
    • added a changelog
    • improved the text.num function to support float vartype
    • improved the tree.r function to not break when file is nonexistant, returns Null instead
    • improved smpul.index to return a dictionary containing every function instead of a list

note: type index at any point in the module to get a list of the avalible options

-Alex

Project details


Download files

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

Files for smpul, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size smpul-0.4-py3-none-any.whl (4.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size smpul-0.4.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page