Debian Codegraph @

docs/index.rst

raw
1 frozenlist
2 ==========
3
4 A list-like structure which implements
5 :class:`collections.abc.MutableSequence`.
6
7 The list is *mutable* until :meth:`~frozenlist.FrozenList.freeze` is called,
8 after which list modifications raise :exc:`RuntimeError`. A
9 :class:`~frozenlist.FrozenList` instance is hashable, but only when frozen.
10 Attempts to hash a non-frozen instance will result in a :exc:`RuntimeError`
11 exception.
12
13 API
14 ---
15
16 .. class:: frozenlist.FrozenList(items)
17
18 Construct a new *non-frozen* list from *items* iterable.
19
20 The list implements all :class:`collections.abc.MutableSequence`
21 methods plus two additional APIs.
22
23 .. attribute:: frozen
24
25 A read-only property, ``True`` is the list is *frozen*
26 (modifications are forbidden).
27
28 .. method:: freeze()
29
30 Freeze the list. There is no way to *thaw* it back.
31
32
33 Installation
34 ------------
35
36 .. code-block:: bash
37
38 $ pip install frozenlist
39
40
41 Documentation
42 =============
43
44 https://frozenlist.aio-libs.org
45
46 Communication channels
47 ======================
48
49 We have a *Matrix Space* `#aio-libs-space:matrix.org
50 <https://matrix.to/#/%23aio-libs-space:matrix.org>`_ which is
51 also accessible via Gitter.
52
53 License
54 =======
55
56 ``frozenlist`` is offered under the Apache 2 license.
57
58 Source code
59 ===========
60
61 The project is hosted on GitHub_
62
63 Please file an issue in the `bug tracker
64 <https://github.com/aio-libs/frozenlist/issues>`_ if you have found a bug
65 or have some suggestions to improve the library.
66
67 Authors and License
68 ===================
69
70 The ``frozenlist`` package was originally part of the
71 :doc:`aiohttp project <aiohttp:index>`, written by Nikolay Kim and Andrew Svetlov.
72 It is now being maintained by Martijn Pieters.
73
74 It's *Apache 2* licensed and freely available.
75
76 Feel free to improve this package and send a pull request to GitHub_.
77
78
79 .. toctree::
80 :maxdepth: 2
81
82 .. toctree::
83 :caption: What's new
84
85 changes
86
87 .. toctree::
88 :caption: Contributing
89
90 contributing/guidelines
91
92 .. toctree::
93 :caption: Maintenance
94
95 contributing/release_guide
96
97
98 Indices and tables
99 ==================
100
101 * :ref:`genindex`
102 * :ref:`search`
103
104
105 .. _GitHub: https://github.com/aio-libs/frozenlist