The PyTables version number.
The underlying HDF5 library version number.
New in version 3.0.
The underlying HDF5 library version number.
New in version 3.0.
An easy way of copying one PyTables file to another.
This function allows you to copy an existing PyTables file named srcfilename to another file called dstfilename. The source file must exist and be readable. The destination file can be overwritten in place if existing by asserting the overwrite argument.
This function is a shorthand for the File.copy_file() method, which acts on an already opened file. kwargs takes keyword arguments used to customize the copying process. See the documentation of File.copy_file() for a description of those arguments.
Determine whether a file is in the HDF5 format.
When successful, it returns a true value if the file is an HDF5 file, false otherwise. If there were problems identifying the file, an HDF5ExtError is raised.
Determine whether a file is in the PyTables format.
When successful, it returns the format version string if the file is a PyTables file, None otherwise. If there were problems identifying the file, an HDF5ExtError is raised.
Open a PyTables (or generic HDF5) file and return a File object.
Parameters : | filename : str
mode : str
title : str
root_uep : str
filters : Filters
|
---|
Notes
In addition, it recognizes the (lowercase) names of parameters present in tables/parameters.py as additional keyword arguments. See PyTables parameter files for a detailed info on the supported parameters.
Note
If you need to deal with a large number of nodes in an efficient way, please see Getting the most from the node LRU cache for more info and advices about the integrated node cache engine.
Set the maximum number of threads that Blosc can use.
This actually overrides the tables.parameters.MAX_BLOSC_THREADS setting in tables.parameters, so the new value will be effective until this function is called again or a new file with a different tables.parameters.MAX_BLOSC_THREADS value is specified.
Returns the previous setting for maximum threads.
Print all the versions of software that PyTables relies on.
Disable all flavors except those in keep.
Providing an empty keep sequence implies disabling all flavors (but the internal one). If the sequence is not specified, only optional flavors are disabled.
Important
Once you disable a flavor, it can not be enabled again.
Split a PyTables type into a PyTables kind and an item size.
Returns a tuple of (kind, itemsize). If no item size is present in the type (in the form of a precision), the returned item size is None:
>>> split_type('int32')
('int', 4)
>>> split_type('string')
('string', None)
>>> split_type('int20')
Traceback (most recent call last):
...
ValueError: precision must be a multiple of 8: 20
>>> split_type('foo bar')
Traceback (most recent call last):
...
ValueError: malformed type: 'foo bar'
Run all the tests in the test suite.
If verbose is set, the test suite will emit messages with full verbosity (not recommended unless you are looking into a certain problem).
If heavy is set, the test suite will be run in heavy mode (you should be careful with this because it can take a lot of time and resources from your computer).
Return 0 (os.EX_OK) if all tests pass, 1 in case of failure
Get version information about a C library.
If the library indicated by name is available, this function returns a 3-tuple containing the major library version as an integer, its full version as a string, and the version date as a string. If the library is not available, None is returned.
The currently supported library names are hdf5, zlib, lzo and bzip2. If another name is given, a ValueError is raised.
Silence (or re-enable) messages from the HDF5 C library.
The silence parameter can be used control the behaviour and reset the standard HDF5 logging.
New in version 2.4.