I hereby claim:
- I am bhgomes on github.
- I am bhgomes (https://keybase.io/bhgomes) on keybase.
- I have a public key whose fingerprint is 48E9 34D5 A710 B6EB 94DB B6D0 C642 70EA B633 02DC
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class classproperty(property): | |
"""Class Property.""" | |
def __get__(self, obj, objtype=None): | |
"""Wrap Getter Function.""" | |
return super().__get__(objtype) | |
def __set__(self, obj, value): | |
"""Wrap Setter Function.""" | |
return super().__set__(type(obj), value) |
from importlib import import_module | |
def try_import( | |
name, package=None, *exceptions, log_error=passf, log_success=passf, default=None | |
): | |
""" | |
Attempt Package Import With Automatic Exception Handling. | |
:param name: | |
:param package: |
class LineReader: | |
""" | |
Read a static file with smart line access. | |
WARNING: This implementation assumes that the file does not change between | |
calls of the `clear` function and never checks for valid file handlers. | |
""" | |
def __init__(self, file_handle=None, cache=None, offsets=None): | |
"""Initialize the LineReader.""" |
I hereby claim:
To claim this, I am signing this object:
from wrapt import ObjectProxy | |
from box import Box | |
class BoxObject(ObjectProxy): | |
""" | |
Wrapper for any Python object with a Box as __dict__. | |
Simple Usage: | |
import requests |
sudo: false | |
language: python | |
dist: xenial | |
matrix: | |
include: | |
- python: 3.3 | |
- python: 3.4 | |
- python: 3.5 | |
- python: 3.6 |
from wrapt import ObjectProxy | |
class Bounded(ObjectProxy): | |
""" | |
Bounded Object Proxy. | |
""" | |
def __init__(self, wrapped, *, minimum=None, maximum=None): | |
"""Initialized Wrapped Bounded Object.""" |
# -*- coding: utf-8 -*- | |
# | |
# setup.py | |
# | |
SETUP_JSON = 'setup.json' | |
import io | |
import json | |
import os |
import bhgomes.jaql.*; | |
public class MakeDatabase { | |
public static void main(String[] args) { | |
// Method 1 | |
Database db1 = JAQL.open("db1", JAQL.SQLITE_DRIVER, "jdbc:sqlite:db1.db"); | |
db1.info("Built a Database with JAQL convenience class"); | |
// Method 2 | |
Database db2 = new Database("db2").open(JAQL.SQLITE_DRIVER, "jdbc:sqlite:db1.db"); |