Skip to main content

Library of Wonderful Things

Project description

A library of general functions

  • cnv.py - Convert between types, methods are in the form of <from_type> "2" <to_type> so I am better able to remember them

  • db.py - Simplify the MySQL client API, specifically to parametrize SQL easier

  • elasticsearch.py - Interact with Elasticsearch

  • emailer.py - Simple email

  • files.py - Default utf8, and because I can not remember the builtin file functions

  • jsons.py - Handle converting more types to JSON, switches based on cPython or PyPy for fastest implementation

  • logs.py - Exception chaining, threaded and structured logging

  • maths.py - Extra math functions, with proper mapping of missing values

  • multiset.py - who doesn’t need a multiset?

  • multithread.py - optimized for symmetric multi-threading (not real threads, for course)

  • multiprocess.py - optimized for symmetric multi-processing (incomplete)

  • queries/Q.py - Named methods for very common set/list comprehensions

  • queries/windows.py - Window functions for list comprehensions

  • randoms.py - Because random should be easy to remember

  • startup.py - because application parameters should all be in one place and NOT HIDING IN ENVIRONMENT VARIABLES!!

  • stats.py - Statistical functions with missing value handling

  • strings.py - String functions: Mostly giving familiar names to Python equivalent.

  • struct.py - Basis for proper missing-value (Null) handling on list comprehensions

  • threads.py - Because, somehow, the standard lib go it wrong

  • timer.py - The way timers are meant to be (using the with clause)

Windows 7 Install Instructions

Python was really made for Linux, and installation will be easier there. Technically, Python works on Windows too, but there are a few gotchas you can avoid by following these instructions.

  • Download Python 2.7 (32bit ONLY!!! Many native libs are 32 bit)

  • Install Python at c:27 (The space in the “Program Files” may screw up installs of native libs)

  • Add to you path: c:\Python27;c:\Python27\scripts;

  • Download http://python-distribute.org/distribute_setup.py

    CALL python distribute_setup.py
    CALL easy_install pip
    CALL easy_install virtualenv
  • Many “Python Powered” native installs require a pointer to the python installation, but they have no idea where to look in 64bit windows. You must alter the registry (http://stackoverflow.com/questions/3652625/installing-setuptools-on-64-bit-windows):

    SET HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath = "C:\Python27"
  • Download from Github:

    git clone https://github.com/klahnakoski/pyLibrary.git
  • Download requirements:

    pip install -r requirements.txt

Optional

pyLibrary does not use these, but maybe you will find them useful:

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

pyLibrary-0.1.13316.zip (56.6 kB view details)

Uploaded Source

Built Distributions

pyLibrary-0.1.13316.win32-py2.7.exe (244.5 kB view details)

Uploaded Source

pyLibrary-0.1.13316-py2.7.egg (103.7 kB view details)

Uploaded Source

File details

Details for the file pyLibrary-0.1.13316.zip.

File metadata

  • Download URL: pyLibrary-0.1.13316.zip
  • Upload date:
  • Size: 56.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyLibrary-0.1.13316.zip
Algorithm Hash digest
SHA256 e2730792f041ed20d4f173d14c2b908b55ac5915d1c01a3ddd6f26618bfee5b0
MD5 ffe1c1eb469108e3e2bbb52d50324526
BLAKE2b-256 7a0b140f4afca66767ce0219c1c1516c59c171e18aec32ee3495dd91c677dda3

See more details on using hashes here.

File details

Details for the file pyLibrary-0.1.13316.win32-py2.7.exe.

File metadata

File hashes

Hashes for pyLibrary-0.1.13316.win32-py2.7.exe
Algorithm Hash digest
SHA256 22570999e5f21c43bc2a73cf3e457dc05aee61f6321cb6ce3e963ef8dbb816d4
MD5 f0c6e35ea4a72a18810d732b4e6278d3
BLAKE2b-256 b567b8703ce33c687ef010223f27aaec6be4eb23e53a7975bff8b5581574d168

See more details on using hashes here.

File details

Details for the file pyLibrary-0.1.13316-py2.7.egg.

File metadata

File hashes

Hashes for pyLibrary-0.1.13316-py2.7.egg
Algorithm Hash digest
SHA256 df1a70f8f26ccd381c1544a38978f3638c65c61e254f934d085146ad54a6c43c
MD5 5bd88ef43b401e883a336aab101d9fff
BLAKE2b-256 419088b9c3d0db8fe9fecdb164cca9455014ca05ff3f95ca330df568625711de

See more details on using hashes here.

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