Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add top-level docs section for One-Shot APIs #213

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/api_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ this is often not feasible.

The *one-shot* APIs also perform all work as a single operation. So, if you
feed it large input, it could take a long time for the function to return.
See :ref:`one_shot_apis` for reference.

The streaming APIs do not have the limitations of the simple API. But the
price you pay for this flexibility is that they are more complex than a
Expand Down Expand Up @@ -145,5 +146,3 @@ example, the difference between *context* reuse and non-reuse for 100,000
100 byte inputs will be significant (possibly over 10x faster to reuse contexts)
whereas 10 100,000,000 byte inputs will be more similar in speed (because the
time spent doing compression dwarfs time spent creating new *contexts*).


1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ python-zstandard
installing
concepts
api_usage
one_shot_api
compressor
decompressor
multithreaded
Expand Down
15 changes: 0 additions & 15 deletions docs/misc_apis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,6 @@ https://github.com/facebook/zstd/blob/master/doc/zstd_compression_format.md.

.. autofunction:: zstandard.estimate_decompression_context_size

``open()``
==========

.. autofunction:: zstandard.open

``compress()``
==============

.. autofunction:: zstandard.compress

``decompress()``
================

.. autofunction:: zstandard.decompress

Constants
=========

Expand Down
20 changes: 20 additions & 0 deletions docs/one_shot_api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.. _one_shot_apis:

=============
One-Shot APIs
=============

``compress()``
==============

.. autofunction:: zstandard.compress

``decompress()``
================

.. autofunction:: zstandard.decompress

``open()``
==========

.. autofunction:: zstandard.open