Package pygeoip :: Class GeoIPMetaclass
[hide private]
[frames] | no frames]

Type GeoIPMetaclass

source code

object --+    
         |    
      type --+
             |
            GeoIPMetaclass

Instance Methods [hide private]

Inherited from type: __call__, __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __le__, __lt__, __ne__, __repr__, __setattr__, __subclasses__, mro

Inherited from object: __format__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, *args, **kwargs)
Singleton method to gets an instance without reparsing the db.
source code
Class Variables [hide private]
  _instances = {'GeoIP': <class 'pygeoip.GeoIP'>, 'GeoIPBase': <...
Properties [hide private]

Inherited from type: __abstractmethods__, __base__, __bases__, __basicsize__, __dictoffset__, __flags__, __instancecheck__, __itemsize__, __mro__, __name__, __subclasscheck__, __weakrefoffset__

Inherited from object: __class__

Method Details [hide private]

__new__(cls, *args, **kwargs)
Static Method

source code 

Singleton method to gets an instance without reparsing the db. Unique instances are instantiated based on the filename of the db. Flags are ignored for this, i.e. if you initialize one with STANDARD flag (default) and then try later to initialize with MEMORY_CACHE, it will still return the STANDARD one.

Returns: a new object with type S, a subtype of T
Overrides: object.__new__

Class Variable Details [hide private]

_instances

Value:
{'GeoIP': <class 'pygeoip.GeoIP'>,
 'GeoIPBase': <class 'pygeoip.GeoIPBase'>}