1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
|
########################################################################
#
# License: BSD
# Created: October 1, 2002
# Author: Francesc Alted - faltet@pytables.com
#
# $Id$
#
########################################################################
"""
PyTables, hierarchical datasets in Python
:URL: http://www.pytables.org/
PyTables is a package for managing hierarchical datasets and designed
to efficiently cope with extremely large amounts of data.
Most Important Classes
======================
Nodes
~~~~~
Group, Table, Array, CArray, EArray, VLArray, UnImplemented
Declarative
~~~~~~~~~~~
IsDescription, {Type}Atom, {Type}Col
Helpers
~~~~~~~
File, Filters, Cols, Column
First Level Functions
=====================
openFile, copyFile, test, print_versions, whichLibVersion,
isPyTablesFile, isHDF5File
Misc variables
==============
__version__, hdf5Version, is_pro
"""
import sys, os
if os.name == 'nt':
module_path = os.path.abspath(os.path.dirname(__file__))
os.environ['PATH'] = ';'.join((os.environ['PATH'], module_path))
sys.path.append(module_path)
# Necessary imports to get versions stored on the Pyrex extension
from tables.utilsExtension import getPyTablesVersion, getHDF5Version
__version__ = getPyTablesVersion()
"""The PyTables version number."""
hdf5Version = getHDF5Version()
"""The underlying HDF5 library version number."""
is_pro = True
"""True for PyTables Professional edition, false otherwise.
.. note:: PyTables Professional edition has been released under open
source license. Starting with version 2.3, PyTables includes all
features of PyTables Pro.
In order to reflect the presence of advanced features *is_pro*
is always set to True.
.. deprecated:: :data:`tables.is_pro` should be considered deprecated
and it will be removed in the next major release.
"""
from tables.utilsExtension import (
isHDF5File, isPyTablesFile, whichLibVersion, lrange,
setBloscMaxThreads )
from tables.misc.enum import Enum
from tables.atom import *
from tables.flavor import restrict_flavors
from tables.description import *
from tables.filters import Filters
# Import the user classes from the proper modules
from tables.exceptions import *
from tables.file import File, openFile, copyFile
from tables.node import Node
from tables.group import Group
from tables.leaf import Leaf
from tables.table import Table, Cols, Column
from tables.array import Array
from tables.carray import CArray
from tables.earray import EArray
from tables.vlarray import VLArray
from tables.unimplemented import UnImplemented, Unknown
from tables.expression import Expr
from tables.tests import print_versions, test
# List here only the objects we want to be publicly available
__all__ = [
# Exceptions and warnings:
'HDF5ExtError',
'ClosedNodeError', 'ClosedFileError', 'FileModeError',
'NaturalNameWarning', 'NodeError', 'NoSuchNodeError',
'UndoRedoError', 'UndoRedoWarning',
'PerformanceWarning',
'FlavorError', 'FlavorWarning',
'FiltersWarning', 'DataTypeWarning',
# Functions:
'isHDF5File', 'isPyTablesFile', 'whichLibVersion',
'copyFile', 'openFile', 'print_versions', 'test',
'split_type', 'restrict_flavors', 'lrange',
# Helper classes:
'IsDescription', 'Description', 'Filters', 'Cols', 'Column',
# Types:
'Enum',
# Atom types:
'Atom', 'StringAtom', 'BoolAtom',
'IntAtom', 'UIntAtom', 'Int8Atom', 'UInt8Atom', 'Int16Atom', 'UInt16Atom',
'Int32Atom', 'UInt32Atom', 'Int64Atom', 'UInt64Atom',
'FloatAtom', 'Float32Atom', 'Float64Atom',
'ComplexAtom', 'Complex32Atom', 'Complex64Atom', 'Complex128Atom',
'TimeAtom', 'Time32Atom', 'Time64Atom',
'EnumAtom',
'PseudoAtom', 'ObjectAtom', 'VLStringAtom', 'VLUnicodeAtom',
# Column types:
'Col', 'StringCol', 'BoolCol',
'IntCol', 'UIntCol', 'Int8Col', 'UInt8Col', 'Int16Col', 'UInt16Col',
'Int32Col', 'UInt32Col', 'Int64Col', 'UInt64Col',
'FloatCol', 'Float32Col', 'Float64Col',
'ComplexCol', 'Complex32Col', 'Complex64Col', 'Complex128Col',
'TimeCol', 'Time32Col', 'Time64Col',
'EnumCol',
# Node classes:
'Node', 'Group', 'Leaf', 'Table', 'Array', 'CArray', 'EArray', 'VLArray',
'UnImplemented',
# The File class:
'File',
# Expr class
'Expr',
]
if hdf5Version < "1.8.0":
import warnings
warnings.warn("Support for HDF5 v1.6.x will be removed in future releases",
DeprecationWarning)
|