.. _api:

.. module:: cihai

===
API
===

.. automodule:: cihai

    .. autoclass:: Cihai
        :members:
        :show-inheritance:
        :inherited-members:

    .. autoclass:: CihaiDataset
        :members:
        :inherited-members:
        :show-inheritance:

Conversion
----------

.. autofunction:: cihai.conversion.euc_to_unicode
.. autofunction:: cihai.conversion.euc_to_utf8
.. autofunction:: cihai.conversion.gb2312_to_euc
.. autofunction:: cihai.conversion.kuten_to_gb2312
.. autofunction:: cihai.conversion.python_to_euc
.. autofunction:: cihai.conversion.python_to_ucn
.. autofunction:: cihai.conversion.ucn_to_unicode
.. autofunction:: cihai.conversion.ucnstring_to_python
.. autofunction:: cihai.conversion.ucnstring_to_unicode

Utilities
---------

.. automodule:: cihai.util
    :members:
    :inherited-members:
    :show-inheritance:

Datasets
--------

.. automodule:: cihai.datasets.unihan
    :members:
    :inherited-members:
    :show-inheritance:

.. _api:

.. module:: cihai

===
API
===

.. automodule:: cihai

    .. autoclass:: Cihai
        :members:
        :show-inheritance:
        :inherited-members:

    .. autoclass:: CihaiDataset
        :members:
        :inherited-members:
        :show-inheritance:

Conversion
----------

.. autofunction:: cihai.conversion.euc_to_unicode
.. autofunction:: cihai.conversion.euc_to_utf8
.. autofunction:: cihai.conversion.gb2312_to_euc
.. autofunction:: cihai.conversion.kuten_to_gb2312
.. autofunction:: cihai.conversion.python_to_euc
.. autofunction:: cihai.conversion.python_to_ucn
.. autofunction:: cihai.conversion.ucn_to_unicode
.. autofunction:: cihai.conversion.ucnstring_to_python
.. autofunction:: cihai.conversion.ucnstring_to_unicode

Utilities
---------

.. automodule:: cihai.util
    :members:
    :inherited-members:
    :show-inheritance:

Datasets
--------

.. autofunction:: cihai.datasets.unihan.download
.. autofunction:: cihai.datasets.unihan.extract
.. autofunction:: cihai.datasets.unihan.csvs_to_dictlists

.. autoclass:: cihai.datasets.unihan.Unihan
    :members:
    :inherited-members:
    :show-inheritance:

Fix sphinx autodoc. Seems to be an issue with automodule importing imports anyway.
Fix sphinx autodoc. Seems to be an issue with automodule importing imports anyway.
