Brain Goo

Carpe Crap ’em

Brain Goo header image 4

Ads help keep this site alive:


Entries Tagged as 'python'

Using Oracle SYS_GUID() and RAW in SQLAlchemy

April 12th, 2017 · No Comments

How to use RAW data types from cx_Oracle dialect in SQLAlchemy to create unique row IDs that are generated by SYS_GUID(). Use Oracle’s SYS_GUID() function to create unique IDs for rows without Sequences.

[Read more →]

Tags: cx_Oracle · Oracle · Programming · python · SQLAlchemy

HOW TO Lower Case All Dictionary Keys in a Complex Python Dictionary

November 20th, 2014 · No Comments

This tutorial shows you how to write and use a function that will iterate over complex, nested dictionary or list or combination of the two. For any dictionaries it finds, it will rename the keys to lower-case. This is useful when trying to match an known string with a key name returned from another source […]

[Read more →]

Tags: How Tos · Programming · python · Software

HOWTO: Create a random alpha-numeric string in Python

December 27th, 2013 · No Comments

Creating an alpha-numeric string in python is easy, but having a quick function you can call or import as a module is better! This is very useful for things like password generators. To see how to do this in Perl, check out this post: …howto-create-a-random-alpha-numeric-string-in-perl To see how to do this in PHP, check out […]

[Read more →]

Tags: How Tos · Programming · python